FileDocCategorySizeDatePackage
MovieExtendsHeaderBox.javaAPI Docmp4parser 1.0-RC-172083Wed Dec 19 20:10:38 GMT 2012com.coremedia.iso.boxes.fragment

MovieExtendsHeaderBox

public class MovieExtendsHeaderBox extends com.googlecode.mp4parser.AbstractFullBox
aligned(8) class MovieExtendsHeaderBox extends FullBox('mehd', version, 0) { if (version==1) { unsigned int(64) fragment_duration; } else { // version==0 unsigned int(32) fragment_duration; } }

Fields Summary
public static final String
TYPE
private long
fragmentDuration
Constructors Summary
public MovieExtendsHeaderBox()


      
        super(TYPE);
    
Methods Summary
public void_parseDetails(java.nio.ByteBuffer content)

        parseVersionAndFlags(content);
        fragmentDuration = getVersion() == 1 ? IsoTypeReader.readUInt64(content) : IsoTypeReader.readUInt32(content);
    
protected voidgetContent(java.nio.ByteBuffer byteBuffer)

        writeVersionAndFlags(byteBuffer);
        if (getVersion() == 1) {
            IsoTypeWriter.writeUInt64(byteBuffer, fragmentDuration);
        } else {
            IsoTypeWriter.writeUInt32(byteBuffer, fragmentDuration);
        }
    
protected longgetContentSize()

        return getVersion() == 1 ? 12 : 8;
    
public longgetFragmentDuration()

        return fragmentDuration;
    
public voidsetFragmentDuration(long fragmentDuration)

        this.fragmentDuration = fragmentDuration;