flv

flv 不像 RTMP 那样繁文缛节

1
2
3
4
5
6
7
8
9
10
11
12
constructor() {
this.parserBuffer = Buffer.alloc(13);
this.parserState = FLV_PARSE_INIT;
this.parserHeaderBytes = 0;
this.parserTagBytes = 0;
this.parserTagType = 0;
this.parserTagSize = 0;
this.parserTagTime = 0;
this.parserTagCapacity = 1024 * 1024;
this.parserTagData = Buffer.alloc(this.parserTagCapacity);
this.parserPreviousBytes = 0;
}