-
Constructor Summary
ConstructorsConstructorDescriptionMedia
(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, uk.co.caprica.vlcj.binding.internal.libvlc_media_t media) Create a new media item. -
Method Summary
Modifier and TypeMethodDescriptionevents()
Behaviour pertaining to events.info()
Behaviour pertaining to information about the media.uk.co.caprica.vlcj.binding.internal.libvlc_media_t
Get the associated native media instance.meta()
Behaviour pertaining to media meta data.newMedia()
Create a newMedia
from this media.Create a newMediaRef
from this media.options()
Behaviour pertaining to media options.parsing()
Behaviour pertaining to parsing of the media.void
release()
Release this component and the associated native resources.slaves()
Behaviour pertaining to media slaves.subitems()
Behaviour pertianing to media subitems.
-
Constructor Details
-
Media
public Media(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, uk.co.caprica.vlcj.binding.internal.libvlc_media_t media) Create a new media item.This component will "own" the supplied native media instance and will take care of releasing it during
release()
.The caller should not release the native media instance.
- Parameters:
libvlcInstance
- native library instancemedia
- native media instance
-
-
Method Details
-
events
-
info
Behaviour pertaining to information about the media.- Returns:
- information behaviour
-
meta
-
options
-
parsing
-
slaves
-
subitems
-
newMediaRef
-
newMedia
-
duplicateMediaRef
Return a duplicateMediaRef
for thisMediaRef
.Unlike
newMediaRef()
, this function will duplicate the native media instance, meaning it is separate from the native media instance in this component and any changes made to it (such as adding new media options) will not be reflected on the original media.The caller must release the returned
MediaRef
when it has no further use for it.- Returns:
- duplicated media reference
-
duplicateMedia
Return a duplicateMedia
component for thisMediaRef
.Unlike
newMedia()
, this function will duplicate the native media instance, meaning it is separate from the native media instance in this component and any changes made to it (such as adding new media options) will not be reflected on the original media.The caller must release the returned
Media
when it has no further use for it.- Returns:
- duplicated media
-
release
public void release()Release this component and the associated native resources.The component must no longer be used.
-
mediaInstance
public uk.co.caprica.vlcj.binding.internal.libvlc_media_t mediaInstance()Get the associated native media instance.- Returns:
- media instance
-