Class VLCVideoPlayer.VLCMediaInterface

java.lang.Object
com.igrium.videolib.vlc.VLCVideoPlayer.VLCMediaInterface
All Implemented Interfaces:
MediaInterface
Enclosing class:
VLCVideoPlayer

public class VLCVideoPlayer.VLCMediaInterface extends Object implements MediaInterface
  • Constructor Details

    • VLCMediaInterface

      public VLCMediaInterface()
  • Method Details

    • load

      public boolean load(VideoHandle handle)
      Description copied from interface: MediaInterface
      Load a video and prepare it for playback.
      Specified by:
      load in interface MediaInterface
      Parameters:
      handle - Video handle.
      Returns:
      Success.
    • play

      public boolean play(VideoHandle handle) throws IllegalArgumentException
      Description copied from interface: MediaInterface
      Load a video and play it.
      Specified by:
      play in interface MediaInterface
      Parameters:
      handle - Video handle.
      Returns:
      Success.
      Throws:
      IllegalArgumentException - If this this video player is incompatible with this handle. Use getHandle() 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 interface MediaInterface
      Returns:
      Is there a video loaded?
    • currentMedia

      public Optional<VideoHandle> 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 interface MediaInterface
      Returns:
      An optional with the handle.
    • getVideoHandleFactory

      public VideoHandleFactory getVideoHandleFactory()
      Description copied from interface: MediaInterface
      Get the factory that should be used to generate video handles for this player.
      Specified by:
      getVideoHandleFactory in interface MediaInterface
      Returns:
      Video handle factory.