public class StreamBitratePropertiesChunk extends Chunk
chunkLength, guid, position
Constructor and Description |
---|
StreamBitratePropertiesChunk(BigInteger chunkLen)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addBitrateRecord(int streamNum,
long averageBitrate)
Adds the public values of a stream-record.
|
long |
getAvgBitrate(int streamNumber)
Returns the average bitrate of the given stream.
|
String |
prettyPrint(String prefix)
(overridden)
|
getChunckEnd, getChunkEnd, getChunkLength, getGuid, getPosition, setPosition, toString
public StreamBitratePropertiesChunk(BigInteger chunkLen)
chunkLen
- Length of current chunk.public void addBitrateRecord(int streamNum, long averageBitrate)
streamNum
- The number of the referred stream.averageBitrate
- Its average bitrate.public long getAvgBitrate(int streamNumber)
streamNumber
- Number of the stream whose bitrate to determine.-1
if no
information was given.public String prettyPrint(String prefix)
prettyPrint
in class Chunk
prefix
- each line gets this string prepended.Chunk.prettyPrint(String)
Copyright © 2005–2020 jthink.net. All rights reserved.