Browse Source
HLS -> FLV translation working. Fairly extensive FLV validation testing.
HLS -> FLV translation working. Fairly extensive FLV validation testing.
Fix up a couple remaining issues with the HLS->FLV translation. At this point, we've validated that the generated file can be played back in VLC if you download it to your computer. Added another ts segment for testing purposes. Added unit testing that traverses the generated FLV and validates the tags are constructed correctly and seem consistent.pull/80/head

13 changed files with 19064 additions and 52 deletions
-
31example.html
-
40hls-example.html
-
37src/aac-stream.js
-
29src/bin-utils.js
-
34src/flv-tag.js
-
9src/h264-stream.js
-
9src/segment-parser.js
-
BINtest/bc0.ts
-
BINtest/bipbop1.flv
-
BINtest/bipbop1.ts
-
18746test/tsSegment-bc.js
-
5test/video-js-hls.html
-
176test/video-js-hls_test.js
@ -0,0 +1,40 @@ |
|||
<!doctype html> |
|||
<html> |
|||
<head><title></title></head> |
|||
<body> |
|||
<!-- Start of Brightcove Player --> |
|||
|
|||
<div style="display:none"> |
|||
|
|||
</div> |
|||
|
|||
<!-- |
|||
By use of this code snippet, I agree to the Brightcove Publisher T and C |
|||
found at https://accounts.brightcove.com/en/terms-and-conditions/. |
|||
--> |
|||
|
|||
<script language="JavaScript" type="text/javascript" src="http://admin.brightcove.com/js/BrightcoveExperiences.js"></script> |
|||
|
|||
<object id="myExperience791331688001" class="BrightcoveExperience"> |
|||
<param name="bgcolor" value="#FFFFFF" /> |
|||
<param name="width" value="500" /> |
|||
<param name="height" value="470" /> |
|||
<param name="playerID" value="2498485115001" /> |
|||
<param name="playerKey" value="AQ~~,AAAAdgygTQk~,cL85eN46vuSRabEOn8tmRIgEmJahevxf" /> |
|||
<param name="isVid" value="true" /> |
|||
<param name="isUI" value="true" /> |
|||
<param name="dynamicStreaming" value="true" /> |
|||
|
|||
<param name="@videoPlayer" value="791331688001" /> |
|||
</object> |
|||
|
|||
<!-- |
|||
This script tag will cause the Brightcove Players defined above it to be created as soon |
|||
as the line is read by the browser. If you wish to have the player instantiated only after |
|||
the rest of the HTML is processed and the page load is complete, remove the line. |
|||
--> |
|||
<script type="text/javascript">brightcove.createExperiences();</script> |
|||
|
|||
<!-- End of Brightcove Player --> |
|||
</body> |
|||
</html> |
@ -0,0 +1,29 @@ |
|||
(function(window) { |
|||
var module = { |
|||
hexDump: function(data) { |
|||
var |
|||
bytes = Array.prototype.slice.call(data), |
|||
step = 16, |
|||
hex, |
|||
ascii; |
|||
for (var j = 0; j < bytes.length / step; j++) { |
|||
hex = bytes.slice(j * step, j * step + step).map(function(e) { |
|||
var value = e.toString(16); |
|||
return "00".substring(0, 2 - value.length) + value; |
|||
}).join(' '); |
|||
ascii = bytes.slice(j * step, j * step + step).map(function(e) { |
|||
if (e > 32 && e < 125) { |
|||
return String.fromCharCode(e); |
|||
} |
|||
return '.'; |
|||
}).join(''); |
|||
return hex + ' ' + ascii; |
|||
} |
|||
}, |
|||
tagDump: function(tag) { |
|||
return module.hexDump(tag.bytes); |
|||
} |
|||
}; |
|||
|
|||
window.videojs.hls.utils = module; |
|||
})(this); |
18746
test/tsSegment-bc.js
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save
Reference in new issue