Class VLCVideoPlayer.VLCControlsInterface

java.lang.Object
com.igrium.videolib.vlc.VLCVideoPlayer.VLCControlsInterface
All Implemented Interfaces:
ControlsInterface
Enclosing class:
VLCVideoPlayer

public class VLCVideoPlayer.VLCControlsInterface extends Object implements ControlsInterface
  • Constructor Details

    • VLCControlsInterface

      public VLCControlsInterface()
  • Method Details

    • play

      public void play()
      Description copied from interface: ControlsInterface
      Begin (or resume) playback.
      Specified by:
      play in interface ControlsInterface
    • stop

      public void stop()
      Description copied from interface: ControlsInterface
      Stop playback. Subsequent play will start from the beginning.
      Specified by:
      stop in interface ControlsInterface
    • setPause

      public void setPause(boolean pause)
      Description copied from interface: ControlsInterface
      Pause or resume.
      Specified by:
      setPause in interface ControlsInterface
      Parameters:
      pause - True to pause; false to resume.
    • setTime

      public void setTime(long time)
      Description copied from interface: ControlsInterface
      Jump to a specific time.
      Specified by:
      setTime in interface ControlsInterface
      Parameters:
      time - Time since the beginning in milliseconds.
    • getTime

      public long getTime()
      Description copied from interface: ControlsInterface
      Get the current time of the playhead.
      Specified by:
      getTime in interface ControlsInterface
      Returns:
      Time since the beginning in milliseconds.
    • getLength

      public long getLength()
      Description copied from interface: ControlsInterface
      Get the length of the current video.
      Specified by:
      getLength in interface ControlsInterface
      Returns:
      Video length in milliseconds.
    • setRepeat

      public void setRepeat(boolean repeat)
      Description copied from interface: ControlsInterface
      Set whether this video should loop back to the beginning when its finished.
      Specified by:
      setRepeat in interface ControlsInterface
      Parameters:
      repeat - Should repeat
    • repeat

      public boolean repeat()
      Description copied from interface: ControlsInterface
      Get whether this video will loop back to the beginning when its finished.
      Specified by:
      repeat in interface ControlsInterface
      Returns:
      Should repeat.