Decoders and encoders for [FLV] file format.
```rust use bytecodec::io::IoDecodeExt; use flv_codec::{FileDecoder, Header, Tag};
// Reads FLV file content let mut flv = &includebytes!("../blacksilent.flv")[..]; let mut decoder = FileDecoder::new();
// Decodes the first FLV tag let tag = decoder.decodeexact(&mut flv).unwrap(); let header = decoder.header().cloned().unwrap(); asserteq!(header, Header { hasaudio: true, hasvideo: true }); asserteq!(tag.timestamp().value(), 0); asserteq!(tag.streamid().value(), 0); match tag { Tag::Audio() => println!("audio tag"), Tag::Video() => println!("video tag"), Tag::ScriptData() => println!("script data tag"), }
// Decodes the second FLV tag let tag = decoder.decode_exact(&mut flv).unwrap(); ```
See [examples/] directory for more examples.