-
Method Summary
Modifier and TypeMethodDescriptionstatic MediaduplicateMedia(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, Media media, String... options) static MediaRefduplicateMediaRef(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, MediaRef mediaRef, String... options) static MedianewMedia(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, String mrl, String... options) Create a newMediacomponent for a media resource locator.static MedianewMedia(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, uk.co.caprica.vlcj.binding.internal.libvlc_media_t mediaInstance, String... options) Create a newMediacomponent for a native media instance.static MedianewMedia(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, CallbackMedia callbackMedia, String... options) Create a newMediacomponent for callback media.static MedianewMedia(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, MediaRef mediaRef, String... options) static MedianewMedia(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, Media media, String... options) static MediaRefnewMediaRef(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, String mrl, String... options) Create a newMediaReffor a media resource locator.static MediaRefnewMediaRef(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, uk.co.caprica.vlcj.binding.internal.libvlc_media_t mediaInstance, String... options) Create a newMediaReffor a native media instance.static MediaRefnewMediaRef(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, CallbackMedia callbackMedia, String... options) Create a newMediaReffor callback media.static MediaRefnewMediaRef(uk.co.caprica.vlcj.binding.internal.libvlc_instance_t libvlcInstance, MediaRef mediaRef, String... options) static MediaRefnewMediaRef(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 newMediaReffor a native media instance.The client application must release the returned
MediaRefwhen 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 newMediaReffor a media resource locator.The caller must release the returned
MediaRefwhen 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 newMediaReffor callback media.The caller must release the returned
MediaRefwhen 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 newMediaReffor aMedia.The caller must release the supplied
Mediawhen it has no further use for it.The caller must release the returned
MediaRefwhen 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 newMediaReffor aMediaRef.The caller must release the supplied
MediaRefwhen it has no further use for it.The caller must release the returned
MediaRefwhen 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 duplicateMediaReffor 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
MediaRefwhen it has no further use for it.The caller must release the returned
MediaRefwhen 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 newMediacomponent for a native media instance.The caller must release the returned
Mediawhen 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 newMediacomponent for a media resource locator.The caller must release the returned
Mediawhen 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 newMediacomponent for callback media.The caller must release the returned
Mediawhen 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 newMediacomponent for aMediaRef.The caller must release the supplied
MediaRefwhen it has no further use for it.The caller must release the returned
Mediawhen 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 newMediacomponent for aMedia.The caller must release the supplied
Mediawhen it has no further use for it.The caller must release the returned
Mediawhen 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 duplicateMediafor 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
Mediawhen it has no further use for it.The caller must release the returned
Mediawhen it has no further use for it.- Parameters:
libvlcInstance- native library instancemedia- mediaoptions- options to add to the media- Returns:
- duplicated media
-