com.fluendo.plugin

Interface OggPayload

public interface OggPayload

Method Summary
longgetFirstTs(Vector packets)
Get the first timestamp of the list of packets
StringgetMime()
Get mime type
StringgetMime(Packet op)
Get mime type from the given packet
longgranuleToTime(long gp)
Convert the granule pos to a timestamp
booleanisDiscontinuous()
Check if the stream is discontinuous (eg, no need to wait for data on this stream before playing)
booleanisHeader(Packet op)
Check if the packet contains a header packet
booleanisKeyFrame(Packet op)
Check if the packet contains a keyframe
booleanisType(Packet op)
Check if the packet contains the signature of the payload.
inttakeHeader(Packet op)
Initialize the payload with a header packet.

Method Detail

getFirstTs

public long getFirstTs(Vector packets)
Get the first timestamp of the list of packets

getMime

public String getMime()
Get mime type

getMime

public String getMime(Packet op)
Get mime type from the given packet

granuleToTime

public long granuleToTime(long gp)
Convert the granule pos to a timestamp

isDiscontinuous

public boolean isDiscontinuous()
Check if the stream is discontinuous (eg, no need to wait for data on this stream before playing)

isHeader

public boolean isHeader(Packet op)
Check if the packet contains a header packet

isKeyFrame

public boolean isKeyFrame(Packet op)
Check if the packet contains a keyframe

isType

public boolean isType(Packet op)
Check if the packet contains the signature of the payload.

takeHeader

public int takeHeader(Packet op)
Initialize the payload with a header packet. Returns < 0 for error, 0 if OK, 1 if OK and ready for decoding data.