public class FLVReader extends Object
Modifier and Type | Field and Description |
---|---|
static Codec[] |
audioCodecMapping |
static int[] |
sampleRates |
static Codec[] |
videoCodecMapping |
Constructor and Description |
---|
FLVReader(SeekableByteChannel ch) |
Modifier and Type | Method and Description |
---|---|
static FLVTag.TagHeader |
parseAudioTagHeader(ByteBuffer dup) |
static FLVMetadata |
parseMetadata(ByteBuffer bb) |
FLVTag |
parsePacket(ByteBuffer readBuf) |
static FLVTag.VideoTagHeader |
parseVideoTagHeader(ByteBuffer dup) |
static boolean |
positionAtPacket(ByteBuffer readBuf) |
static int |
probe(ByteBuffer buf) |
static boolean |
readHeader(ByteBuffer readBuf) |
FLVTag |
readNextPacket() |
FLVTag |
readPrevPacket() |
void |
reposition() |
boolean |
repositionFile()
Searching for the next tag in a file after corrupt segment
|
void |
reset() |
public static Codec[] audioCodecMapping
public static Codec[] videoCodecMapping
public static int[] sampleRates
public FLVReader(SeekableByteChannel ch) throws IOException
IOException
public FLVTag readNextPacket() throws IOException
IOException
public FLVTag readPrevPacket() throws IOException
IOException
public FLVTag parsePacket(ByteBuffer readBuf) throws IOException
IOException
public static boolean readHeader(ByteBuffer readBuf)
public static FLVMetadata parseMetadata(ByteBuffer bb)
public static FLVTag.VideoTagHeader parseVideoTagHeader(ByteBuffer dup)
public static FLVTag.TagHeader parseAudioTagHeader(ByteBuffer dup)
public static int probe(ByteBuffer buf)
public void reset() throws IOException
IOException
public void reposition() throws IOException
IOException
public static boolean positionAtPacket(ByteBuffer readBuf)
public boolean repositionFile() throws IOException
IOException
Copyright © 2019. All rights reserved.