-
Method Summary
Modifier and TypeMethodDescriptionstatic Media
duplicateMedia
(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, Media media, String... options) static MediaRef
duplicateMediaRef
(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, MediaRef mediaRef, String... options) static Media
newMedia
(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, String mrl, String... options) Create a newMedia
component for a media resource locator.static Media
newMedia
(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, uk.co.caprica.vlcj.binding.internal.libvlc_media_t mediaInstance, String... options) Create a newMedia
component for a native media instance.static Media
newMedia
(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, CallbackMedia callbackMedia, String... options) Create a newMedia
component for callback media.static Media
newMedia
(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, MediaRef mediaRef, String... options) static Media
newMedia
(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, Media media, String... options) static MediaRef
newMediaRef
(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, String mrl, String... options) Create a newMediaRef
for a media resource locator.static MediaRef
newMediaRef
(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, uk.co.caprica.vlcj.binding.internal.libvlc_media_t mediaInstance, String... options) Create a newMediaRef
for a native media instance.static MediaRef
newMediaRef
(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, CallbackMedia callbackMedia, String... options) Create a newMediaRef
for callback media.static MediaRef
newMediaRef
(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, MediaRef mediaRef, String... options) static MediaRef
newMediaRef
(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, Media media, String... options)
-
Method Details
-
newMediaRef
public static MediaRef newMediaRef(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, uk.co.caprica.vlcj.binding.internal.libvlc_media_t mediaInstance, String... options) Create a newMediaRef
for a native media instance.The client application must release the returned
MediaRef
when it no long has any use for it.- Parameters:
libvlcInstance
- native library instancemediaInstance
- native media instanceoptions
- options to add to the media- Returns:
- media reference
-
newMediaRef
public static MediaRef newMediaRef(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, String mrl, String... options) Create a newMediaRef
for a media resource locator.The caller must release the returned
MediaRef
when it has no further use for it.- Parameters:
libvlcInstance
- native library instancemrl
- media resource locatoroptions
- options to add to the media- Returns:
- media reference
-
newMediaRef
public static MediaRef newMediaRef(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, CallbackMedia callbackMedia, String... options) Create a newMediaRef
for callback media.The caller must release the returned
MediaRef
when it has no further use for it.- Parameters:
libvlcInstance
- native library instancecallbackMedia
- callback media componentoptions
- options to add to the media- Returns:
- media reference
-
newMediaRef
public static MediaRef newMediaRef(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, Media media, String... options) Create a newMediaRef
for aMedia
.The caller must release the supplied
Media
when it has no further use for it.The caller must release the returned
MediaRef
when it has no further use for it.- Parameters:
libvlcInstance
- native library instancemedia
- mediaoptions
- options to add to the media- Returns:
- media reference
-
newMediaRef
public static MediaRef newMediaRef(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, MediaRef mediaRef, String... options) Create a newMediaRef
for aMediaRef
.The caller must release the supplied
MediaRef
when it has no further use for it.The caller must release the returned
MediaRef
when it has no further use for it.- Parameters:
libvlcInstance
- native library instancemediaRef
- media referenceoptions
- options to add to the media- Returns:
- media reference
-
duplicateMediaRef
public static MediaRef duplicateMediaRef(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, MediaRef mediaRef, String... options) Create a duplicateMediaRef
for aMediaRef
.Unlike the "newMediaRef" functions, 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 supplied
MediaRef
when it has no further use for it.The caller must release the returned
MediaRef
when it has no further use for it.- Parameters:
libvlcInstance
- native library instancemediaRef
- media referenceoptions
- options to add to the media- Returns:
- duplicated media reference
-
newMedia
public static Media newMedia(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, uk.co.caprica.vlcj.binding.internal.libvlc_media_t mediaInstance, String... options) Create a newMedia
component for a native media instance.The caller must release the returned
Media
when it has no further use for it.- Parameters:
libvlcInstance
- native library instancemediaInstance
- native media instanceoptions
- options to add to the media- Returns:
- media
-
newMedia
public static Media newMedia(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, String mrl, String... options) Create a newMedia
component for a media resource locator.The caller must release the returned
Media
when it has no further use for it.- Parameters:
libvlcInstance
- native library instancemrl
- media resource locatoroptions
- options to add to the media- Returns:
- media
-
newMedia
public static Media newMedia(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, CallbackMedia callbackMedia, String... options) Create a newMedia
component for callback media.The caller must release the returned
Media
when it has no further use for it.- Parameters:
libvlcInstance
- native library instancecallbackMedia
- callback media componentoptions
- options to add to the media- Returns:
- media
-
newMedia
public static Media newMedia(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, MediaRef mediaRef, String... options) Create a newMedia
component for aMediaRef
.The caller must release the supplied
MediaRef
when it has no further use for it.The caller must release the returned
Media
when it has no further use for it.- Parameters:
libvlcInstance
- native library instancemediaRef
- media referenceoptions
- options to add to the media- Returns:
- media
-
newMedia
public static Media newMedia(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, Media media, String... options) Create a newMedia
component for aMedia
.The caller must release the supplied
Media
when it has no further use for it.The caller must release the returned
Media
when it has no further use for it.- Parameters:
libvlcInstance
- native library instancemedia
- mediaoptions
- options to add to the media- Returns:
- media
-
duplicateMedia
public static Media duplicateMedia(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, Media media, String... options) Create a duplicateMedia
for aMedia
.Unlike the "newMedia" functions, 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 supplied
Media
when it has no further use for it.The caller must release the returned
Media
when it has no further use for it.- Parameters:
libvlcInstance
- native library instancemedia
- mediaoptions
- options to add to the media- Returns:
- duplicated media
-