Package com.igrium.videolib.vlc
Class VLCVideoPlayer.VLCMediaInterface
java.lang.Object
com.igrium.videolib.vlc.VLCVideoPlayer.VLCMediaInterface
- All Implemented Interfaces:
MediaInterface
- Enclosing class:
- VLCVideoPlayer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the handle of the currently loaded video.Get the factory that should be used to generate video handles for this player.boolean
hasMedia()
Check whether there is currently a video loaded.boolean
load
(VideoHandle handle) Load a video and prepare it for playback.boolean
play
(VideoHandle handle) Load a video and play it.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.igrium.videolib.api.playback.MediaInterface
load, load, play, play
-
Constructor Details
-
VLCMediaInterface
public VLCMediaInterface()
-
-
Method Details
-
load
Description copied from interface:MediaInterface
Load a video and prepare it for playback.- Specified by:
load
in interfaceMediaInterface
- Parameters:
handle
- Video handle.- Returns:
- Success.
-
play
Description copied from interface:MediaInterface
Load a video and play it.- Specified by:
play
in interfaceMediaInterface
- Parameters:
handle
- Video handle.- Returns:
- Success.
- Throws:
IllegalArgumentException
- If this this video player is incompatible with this handle. UsegetHandle()
to get a handle guarenteed to work with this player.
-
hasMedia
public boolean hasMedia()Description copied from interface:MediaInterface
Check whether there is currently a video loaded.- Specified by:
hasMedia
in interfaceMediaInterface
- Returns:
- Is there a video loaded?
-
currentMedia
Description copied from interface:MediaInterface
Get the handle of the currently loaded video. Note: most implementations will attempt to reverse-engineer the handle from the native player. If you need the original handle, keep track of it yourself.- Specified by:
currentMedia
in interfaceMediaInterface
- Returns:
- An optional with the handle.
-
getVideoHandleFactory
Description copied from interface:MediaInterface
Get the factory that should be used to generate video handles for this player.- Specified by:
getVideoHandleFactory
in interfaceMediaInterface
- Returns:
- Video handle factory.
-