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

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.MediaHeaderBox

public class MediaHeaderBox
extends FullBox

8.4.2.1 Definition

The media header declares overall information that is media-independent, and relevant to characteristics of the media in a track.

Author:
kulikov, amit bhayani

Field Summary
 
Fields inherited from class org.mobicents.media.server.impl.resource.mediaplayer.mpeg.Box
bytetoTypeMap
 
Constructor Summary
MediaHeaderBox(long size)
           
 
Method Summary
 java.util.Date getCreationTime()
          Gets the creation time of the media in this track.
 long getDuration()
          Gets duration of the media in this track.
 int getLanguage()
           
 java.util.Date getModificationTime()
          Gets the modification time of the media in this track.
 long getTimescale()
          Gets the time scale of the media in this track.
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

MediaHeaderBox

public MediaHeaderBox(long size)
Method Detail

getCreationTime

public java.util.Date getCreationTime()
Gets the creation time of the media in this track.

Returns:
creation time

getModificationTime

public java.util.Date getModificationTime()
Gets the modification time of the media in this track.

Returns:
creation time

getDuration

public long getDuration()
Gets duration of the media in this track.

Returns:
an integer that declares length of the media in this track (in the indicated timescale).

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.

getTimescale

public long getTimescale()
Gets the time scale of the media in this track.

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.

getLanguage

public int getLanguage()


Copyright © 2010. All Rights Reserved.