Class MediaRelTimeImpl
java.lang.Object
org.opencastproject.metadata.mpeg7.MediaTimeImpl
org.opencastproject.metadata.mpeg7.MediaRelTimeImpl
- All Implemented Interfaces:
org.opencastproject.mediapackage.XmlElement,MediaTime
MediaTime that contains a relative MediaTimePoint.-
Field Summary
Fields inherited from class org.opencastproject.metadata.mpeg7.MediaTimeImpl
mediaDuration, mediaTimePoint -
Constructor Summary
ConstructorsConstructorDescriptionMediaRelTimeImpl(int hour, int minute, int second, int fraction, int fractionsPerSecond, long duration) Creates a new media time instance, representing a time and duration that is relative toreferenceTimePoint.MediaRelTimeImpl(long time, long duration) Creates a new media time instance, representing a time and duration that is relative toreferenceTimePoint. -
Method Summary
Methods inherited from class org.opencastproject.metadata.mpeg7.MediaTimeImpl
getMediaDuration, getMediaTimePoint, parse, toXml
-
Constructor Details
-
MediaRelTimeImpl
public MediaRelTimeImpl(long time, long duration) Creates a new media time instance, representing a time and duration that is relative toreferenceTimePoint.- Parameters:
time- the time point relative to referenceTimePointduration- the duration in miliseconds
-
MediaRelTimeImpl
public MediaRelTimeImpl(int hour, int minute, int second, int fraction, int fractionsPerSecond, long duration) Creates a new media time instance, representing a time and duration that is relative toreferenceTimePoint.- Parameters:
hour- the number of hoursminute- the number of minutessecond- the number of secondsfraction- the number of millisecondsfractionsPerSecond- the number of fractionsduration- the duration
-