com.coremedia.iso.boxes.rtp.LargestHintPacketDurationBox Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of isoparser Show documentation
Show all versions of isoparser Show documentation
A generic parser and writer for all ISO 14496 based files (MP4, Quicktime, DCF, PDCF, ...)
package com.coremedia.iso.boxes.rtp;
import com.coremedia.iso.BoxParser;
import com.coremedia.iso.IsoBufferWrapper;
import com.coremedia.iso.IsoFile;
import com.coremedia.iso.IsoOutputStream;
import com.coremedia.iso.boxes.AbstractBox;
import com.coremedia.iso.boxes.Box;
import java.io.IOException;
/**
* The largest packet, in bytes; includes 12-byte RTP header.
*/
public class LargestHintPacketDurationBox extends AbstractBox {
public static final String TYPE = "dmax";
long milliSeconds;
public LargestHintPacketDurationBox() {
super(IsoFile.fourCCtoBytes(TYPE));
}
protected long getContentSize() {
return 4;
}
public void parse(IsoBufferWrapper in, long size, BoxParser boxParser, Box lastMovieFragmentBox) throws IOException {
milliSeconds = in.readUInt32();
}
protected void getContent(IsoOutputStream os) throws IOException {
os.writeUInt32(milliSeconds);
}
public long getMilliSeconds() {
return milliSeconds;
}
public void setMilliSeconds(long milliSeconds) {
this.milliSeconds = milliSeconds;
}
}