org.videolan.jvlc
Class Input
java.lang.Object
org.videolan.jvlc.Input
- All Implemented Interfaces:
- InputIntf
public class Input
- extends java.lang.Object
- implements InputIntf
|
Constructor Summary |
Input(long instance)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Input
public Input(long instance)
getLength
public long getLength()
throws VLCException
- Specified by:
getLength in interface InputIntf
- Returns:
- The total length of the current file playing in millis.
- Throws:
VLCException
getTime
public long getTime()
throws VLCException
- Specified by:
getTime in interface InputIntf
- Returns:
- The current position in millis within the playing item.
- Throws:
VLCException
getPosition
public float getPosition()
throws VLCException
- Specified by:
getPosition in interface InputIntf
- Returns:
- The position in %.
- Throws:
VLCException
setTime
public void setTime(long time)
throws VLCException
- Description copied from interface:
InputIntf
- Moves current input to time specified in value
- Specified by:
setTime in interface InputIntf
- Parameters:
time - The time in milliseconds to move the input to.
- Throws:
VLCException
setPosition
public void setPosition(float position)
throws VLCException
- Description copied from interface:
InputIntf
- Moves current input to position specified in a float [0-1].
- Specified by:
setPosition in interface InputIntf
- Parameters:
position - The position, from 0 to 1, to move the input to.
- Throws:
VLCException
getFPS
public double getFPS()
throws VLCException
- Specified by:
getFPS in interface InputIntf
- Returns:
- If the playing item is a video file, returns the FPS, otherwise 0.
- Throws:
VLCException
isPlaying
public boolean isPlaying()
throws VLCException
- Specified by:
isPlaying in interface InputIntf
- Returns:
- True if the current input is really playing
- Throws:
VLCException
hasVout
public boolean hasVout()
throws VLCException
- Specified by:
hasVout in interface InputIntf
- Returns:
- True if the current input has spawned a video output window
- Throws:
VLCException
getInstance
public long getInstance()