Interface MediaDuration

All Superinterfaces:
org.opencastproject.mediapackage.XmlElement
All Known Implementing Classes:
MediaDurationImpl

public interface MediaDuration extends org.opencastproject.mediapackage.XmlElement
This interface describes a media duration.
 <simpleType name="mediaDurationType">
   <restriction base="mpeg7:basicDurationType">
       <pattern value="\-?P(\d+D)?(T(\d+H)?(\d+M)?(\d+S)?(\d+N)?)?(\d+F)?"/>
   </restriction>
 </simpleType>
 
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the number of days.
    long
    Returns the duration in milliseconds.
    int
    Returns the fractions.
    int
    Returns the fractions per second.
    int
    Returns the number of hours.
    int
    Returns the number of minutes.
    int
    Returns the number of seconds.

    Methods inherited from interface org.opencastproject.mediapackage.XmlElement

    toXml
  • Method Details

    • getDays

      int getDays()
      Returns the number of days.
      Returns:
      the days
    • getFractions

      int getFractions()
      Returns the fractions.
      Returns:
      the fractions
    • getFractionsPerSecond

      int getFractionsPerSecond()
      Returns the fractions per second.
      Returns:
      the fractions per second
    • getHours

      int getHours()
      Returns the number of hours.
      Returns:
      the hours
    • getMinutes

      int getMinutes()
      Returns the number of minutes.
      Returns:
      the minutes
    • getSeconds

      int getSeconds()
      Returns the number of seconds.
      Returns:
      the seconds
    • getDurationInMilliseconds

      long getDurationInMilliseconds()
      Returns the duration in milliseconds.
      Returns:
      the number of milliseconds