Class VideoClip
java.lang.Object
org.opencastproject.videoeditor.impl.VideoClip
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGet the video clip's duration in milliseconds.doubleGet the video clip's duration in fractions of seconds.longGet the video clip's end time in milliseconds.doubleGet the video clip's end time in fractions of seconds.intgetSrc()longGet the video clip's start time in milliseconds.doubleGet the video clip's start time in fractions of seconds.
-
Constructor Details
-
VideoClip
public VideoClip(int id, long start, long end) Video clip constructor.- Parameters:
id- Source identifier of the video clipstart- Start time in millisecondsend- End time in milliseconds
-
-
Method Details
-
getSrc
public int getSrc() -
getStartInMilliseconds
public long getStartInMilliseconds()Get the video clip's start time in milliseconds.- Returns:
- Start time in milliseconds.
-
getStartInSeconds
public double getStartInSeconds()Get the video clip's start time in fractions of seconds.- Returns:
- Start time in seconds.
-
getEndInMilliseconds
public long getEndInMilliseconds()Get the video clip's end time in milliseconds.- Returns:
- End time in milliseconds.
-
getEndInSeconds
public double getEndInSeconds()Get the video clip's end time in fractions of seconds.- Returns:
- End time in seconds.
-
getRegion
-
getDurationInMilliseconds
public long getDurationInMilliseconds()Get the video clip's duration in milliseconds.- Returns:
- Duration in milliseconds.
-
getDurationInSeconds
public double getDurationInSeconds()Get the video clip's duration in fractions of seconds.- Returns:
- Duration in seconds.
-