java.lang.Object
uk.co.caprica.vlcj.media.MediaRef
-
Constructor Summary
ConstructorsConstructorDescriptionMediaRef
(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, uk.co.caprica.vlcj.binding.internal.libvlc_media_t mediaInstance) Create a new media reference. -
Method Summary
-
Constructor Details
-
MediaRef
public MediaRef(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, uk.co.caprica.vlcj.binding.internal.libvlc_media_t mediaInstance) Create a new media reference.- Parameters:
libvlcInstance
- native library instancemediaInstance
- native media instance
-
-
Method Details
-
newMedia
-
newMediaRef
-
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 is of no further use.
- Returns:
- duplicated media
-
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
Media
when it has no further use for it.- Returns:
- duplicated media reference
-
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 native media instance.- Returns:
- media instance
-