org.mobicents.media.server.impl.resource.mediaplayer.mpeg
Class MovieHeaderBox

java.lang.Object
  extended by org.mobicents.media.server.impl.resource.mediaplayer.mpeg.Box
      extended by org.mobicents.media.server.impl.resource.mediaplayer.mpeg.FullBox
          extended by org.mobicents.media.server.impl.resource.mediaplayer.mpeg.MovieHeaderBox

public class MovieHeaderBox
extends FullBox

8.2.2.1 Definition

This box defines overall information which is media-independent, and relevant to the entire presentation considered as a whole.

Author:
kulikov, amit bhayani

Field Summary
 
Fields inherited from class org.mobicents.media.server.impl.resource.mediaplayer.mpeg.Box
bytetoTypeMap
 
Constructor Summary
MovieHeaderBox(long size)
           
 
Method Summary
 java.util.Date getCreationTime()
          Gets the creation time of this presentation.
 long getDuration()
          Gets duration of this presentation.
 int[] getMatrix()
           
 java.util.Date getModificationTime()
          Gets the modification time of this presentation.
 int getNextTrackID()
          Gets identifier of next track to use.
 double getRate()
          Gets the preffered rate to play the presentation.
 long getTimeScale()
          Gets the time scale of this presentation.
 double getVolume()
          Gets the preffered volume to play the presentation.
protected  int load(java.io.DataInputStream fin)
          Loads Box from stream.
 
Methods inherited from class org.mobicents.media.server.impl.resource.mediaplayer.mpeg.FullBox
getFlags, getVersion, read64
 
Methods inherited from class org.mobicents.media.server.impl.resource.mediaplayer.mpeg.Box
comparebytes, getSize, getType, read, read16, read24, read32, readFixedPoint1616, readText, readType, readU32, readU64
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MovieHeaderBox

public MovieHeaderBox(long size)
Method Detail

getCreationTime

public java.util.Date getCreationTime()
Gets the creation time of this presentation.

Returns:
creation time

getModificationTime

public java.util.Date getModificationTime()
Gets the modification time of this presentation.

Returns:
creation time

getTimeScale

public long getTimeScale()
Gets the time scale of this presentation.

Returns:
the number of time units that pass in one second. For example, a time coordinate system that measures time in sixtieths of a second has a time scale of 60.

getDuration

public long getDuration()
Gets duration of this presentation.

Returns:
an integer that declares length of the presentation (in the indicated timescale). This property is derived from the presentation�s tracks: the value of this field corresponds to the duration of the longest track in the presentation

getRate

public double getRate()
Gets the preffered rate to play the presentation.

Returns:
the rate value, value 1.0 is normal forward playback

getVolume

public double getVolume()
Gets the preffered volume to play the presentation.

Returns:
the rate value, value 1.0 is full volume

getMatrix

public int[] getMatrix()

getNextTrackID

public int getNextTrackID()
Gets identifier of next track to use.

Returns:
a non-zero integer that indicates a value to use for the track ID

load

protected int load(java.io.DataInputStream fin)
            throws java.io.IOException
Description copied from class: Box
Loads Box from stream.

Overrides:
load in class FullBox
Parameters:
fin - the stream to load box from
Returns:
the number of bytes readed from stream; *
Throws:
java.io.IOException - if some I/O error occured.


Copyright © 2010. All Rights Reserved.