Skip to content

Commit

Permalink
FLV Header : signal that both Audio and Video tags are present. this …
Browse files Browse the repository at this point in the history
…is needed as getHeader() is used when injecting discontinuity

if we don't signal both, there will be issues while switching between AV stream to Video Only or vice versa
related to #294
  • Loading branch information
mangui committed Jun 2, 2015
1 parent cbc82c7 commit 9c6a98d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/org/mangui/hls/flv/FLVTag.as
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ package org.mangui.hls.flv {
flv.writeByte(0x56);
// File version (1)
flv.writeByte(1);
// Audio + Video tags.
flv.writeByte(1);
/*
Signal that both Audio and Video tags are present. this is needed as getHeader() is used when injecting discontinuity
if we don't signal both, there will be issues while switching between AV stream to Video Only or vice versa
*/
flv.writeByte(5);
// Length of the header.
flv.writeUnsignedInt(9);
// PreviousTagSize0
Expand Down

0 comments on commit 9c6a98d

Please sign in to comment.