org.mobicents.media.server.impl.resource.mediaplayer.mpeg
Class EditListBox
java.lang.Object
org.mobicents.media.server.impl.resource.mediaplayer.mpeg.Box
org.mobicents.media.server.impl.resource.mediaplayer.mpeg.FullBox
org.mobicents.media.server.impl.resource.mediaplayer.mpeg.EditListBox
public class EditListBox
- extends FullBox
8.6.6.1 Definition
- Box Type: �?elst’
- Container:
EditBox (�?edts’)
- Mandatory: No
- Quantity: Zero or one
This box contains an explicit timeline map. Each entry defines part of the track time-line: by mapping part of the
media time-line, or by indicating �?empty’ time, or by defining a �?dwell’, where a single time-point in the media is
held for a period.
NOTE Edits are not restricted to fall on sample times. This means that when entering an edit, it can be
necessary to (a) back up to a sync point, and pre-roll from there and then (b) be careful about the duration of the
first sample — it might have been truncated if the edit enters it during its normal duration. If this is audio, that
frame might need to be decoded, and then the final slicing done. Likewise, the duration of the last sample in an edit
might need slicing.
Starting offsets for tracks (streams) are represented by an initial empty edit. For example, to play a track from its
start for 30 seconds, but at 10 seconds into the presentation, we have the following edit list:
Entry-count = 2
Segment-duration = 10 seconds
Media-Time = -1
Media-Rate = 1
Segment-duration = 30 seconds
(could be the length of the whole track)
Media-Time = 0 seconds
Media-Rate = 1
- Author:
- kulikov, amit bhayani
| Fields inherited from class org.mobicents.media.server.impl.resource.mediaplayer.mpeg.Box |
bytetoTypeMap |
| 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 |
EditListBox
public EditListBox(long size)
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.
getSegmentDuration
public long[] getSegmentDuration()
getMediaTime
public long[] getMediaTime()
getRate
public int[] getRate()
getFraction
public int[] getFraction()
Copyright © 2010. All Rights Reserved.