org.mobicents.media.server.impl.resource.video
Class MediaHeaderBox

java.lang.Object
  extended by org.mobicents.media.server.impl.resource.video.Box
      extended by org.mobicents.media.server.impl.resource.video.FullBox
          extended by org.mobicents.media.server.impl.resource.video.MediaHeaderBox

public class MediaHeaderBox
extends FullBox

The media header declares overall information that is media-independent, and relevant to characteristics of the media in a track. Box Type: mdhd Container: Media Box (mdia) Mandatory: Yes Quantity: Exactly one

Author:
kulikov

Constructor Summary
MediaHeaderBox(long size, java.lang.String type)
           
 
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.
 java.util.Date getModificationTime()
          Gets the modification time of the media in this track.
 int 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.video.FullBox
getFlags, getVersion, read64
 
Methods inherited from class org.mobicents.media.server.impl.resource.video.Box
getSize, getType, readLen, readText, readType
 
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,
                      java.lang.String type)
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

getTimeScale

public int 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.

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.


Copyright © 2009. All Rights Reserved.