Use 4-byte ecmascriptarray terminator to match acstionscript. Fix writeBytes.
The actionscript segment parser uses a 4-byte terminator for "ecmascriptarray" objects in script tags. This doesn't match my reading of the spec but we'll go with it for now to get these things binary-compatible. The writeBytes method on FlvTag defaults the length argument to zero but in that case, the entire bytes argument should be written out instead of nothing.
Showing
4 changed files
with
51 additions
and
9 deletions
test/flv-tag_test.js
0 → 100644
-
Please register or sign in to post a comment