Interface MediaDuration
- All Superinterfaces:
XmlElement
- All Known Implementing Classes:
MediaDurationImpl
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 TypeMethodDescriptionintgetDays()Returns the number of days.longReturns the duration in milliseconds.intReturns the fractions.intReturns the fractions per second.intgetHours()Returns the number of hours.intReturns the number of minutes.intReturns 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
-