Class MediaRelTimeImpl

java.lang.Object
org.opencastproject.metadata.mpeg7.MediaTimeImpl
org.opencastproject.metadata.mpeg7.MediaRelTimeImpl
All Implemented Interfaces:
org.opencastproject.mediapackage.XmlElement, MediaTime

public class MediaRelTimeImpl extends MediaTimeImpl
MediaTime that contains a relative MediaTimePoint.
  • Constructor Details

    • MediaRelTimeImpl

      public MediaRelTimeImpl(long time, long duration)
      Creates a new media time instance, representing a time and duration that is relative to referenceTimePoint.
      Parameters:
      time - the time point relative to referenceTimePoint
      duration - 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 to referenceTimePoint.
      Parameters:
      hour - the number of hours
      minute - the number of minutes
      second - the number of seconds
      fraction - the number of milliseconds
      fractionsPerSecond - the number of fractions
      duration - the duration