Interface OggPayload
public interface OggPayload
-
Method Summary
Modifier and TypeMethodDescriptionlonggetFirstTs(Vector packets) Get the first timestamp of the list of packetsgetMime()Get mime typegetMime(com.jcraft.jogg.Packet op) Get mime type from the given packetlonggranuleToTime(long gp) Convert the granule pos to a timestampbooleanCheck if the stream is discontinuous (eg, no need to wait for data on this stream before playing)booleanisHeader(com.jcraft.jogg.Packet op) Check if the packet contains a header packetbooleanisKeyFrame(com.jcraft.jogg.Packet op) Check if the packet contains a keyframebooleanisType(com.jcraft.jogg.Packet op) Check if the packet contains the signature of the payload.inttakeHeader(com.jcraft.jogg.Packet op) Initialize the payload with a header packet.
-
Method Details
-
isType
boolean isType(com.jcraft.jogg.Packet op) Check if the packet contains the signature of the payload. -
takeHeader
int takeHeader(com.jcraft.jogg.Packet op) Initialize the payload with a header packet. Returns a negative value for error, 0 if OK, 1 if OK and ready for decoding data. -
isHeader
boolean isHeader(com.jcraft.jogg.Packet op) Check if the packet contains a header packet -
isKeyFrame
boolean isKeyFrame(com.jcraft.jogg.Packet op) Check if the packet contains a keyframe -
getFirstTs
Get the first timestamp of the list of packets -
granuleToTime
long granuleToTime(long gp) Convert the granule pos to a timestamp -
getMime
String getMime()Get mime type -
getMime
Get mime type from the given packet -
isDiscontinuous
boolean isDiscontinuous()Check if the stream is discontinuous (eg, no need to wait for data on this stream before playing)
-