Interface MediaDuration

All Superinterfaces:
XmlElement
All Known Implementing Classes:
MediaDurationImpl

public interface MediaDuration extends 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 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