Package com.igrium.videolib.vlc
Class VLCVideoPlayer.VLCControlsInterface
java.lang.Object
com.igrium.videolib.vlc.VLCVideoPlayer.VLCControlsInterface
- All Implemented Interfaces:
ControlsInterface
- Enclosing class:
- VLCVideoPlayer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Get the length of the current video.long
getTime()
Get the current time of the playhead.void
play()
Begin (or resume) playback.boolean
repeat()
Get whether this video will loop back to the beginning when its finished.void
setPause
(boolean pause) Pause or resume.void
setRepeat
(boolean repeat) Set whether this video should loop back to the beginning when its finished.void
setTime
(long time) Jump to a specific time.void
stop()
Stop playback.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.ControlsInterface
getRate, pause, resume, setRate
-
Constructor Details
-
VLCControlsInterface
public VLCControlsInterface()
-
-
Method Details
-
play
public void play()Description copied from interface:ControlsInterface
Begin (or resume) playback.- Specified by:
play
in interfaceControlsInterface
-
stop
public void stop()Description copied from interface:ControlsInterface
Stop playback. Subsequent play will start from the beginning.- Specified by:
stop
in interfaceControlsInterface
-
setPause
public void setPause(boolean pause) Description copied from interface:ControlsInterface
Pause or resume.- Specified by:
setPause
in interfaceControlsInterface
- 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 interfaceControlsInterface
- 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 interfaceControlsInterface
- 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 interfaceControlsInterface
- 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 interfaceControlsInterface
- 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 interfaceControlsInterface
- Returns:
- Should repeat.
-