WIP: end-to-end transmuxer test
Showing
1 changed file
with
5 additions
and
1 deletions
... | @@ -643,7 +643,7 @@ test('generates an init segment', function() { | ... | @@ -643,7 +643,7 @@ test('generates an init segment', function() { |
643 | }); | 643 | }); |
644 | 644 | ||
645 | test('parses an example mp2t file and generates media segments', function() { | 645 | test('parses an example mp2t file and generates media segments', function() { |
646 | var segments = []; | 646 | var segments = [], i, segment; |
647 | transmuxer.on('data', function(segment) { | 647 | transmuxer.on('data', function(segment) { |
648 | segments.push(segment); | 648 | segments.push(segment); |
649 | }); | 649 | }); |
... | @@ -651,6 +651,10 @@ test('parses an example mp2t file and generates media segments', function() { | ... | @@ -651,6 +651,10 @@ test('parses an example mp2t file and generates media segments', function() { |
651 | transmuxer.end(); | 651 | transmuxer.end(); |
652 | 652 | ||
653 | ok(segments.length, 'generated media segments'); | 653 | ok(segments.length, 'generated media segments'); |
654 | i = segments.length; | ||
655 | while (i--) { | ||
656 | segment = videojs.inspectMp4(segments[i].data); | ||
657 | } | ||
654 | console.log(segments); | 658 | console.log(segments); |
655 | }); | 659 | }); |
656 | 660 | ... | ... |
-
Please register or sign in to post a comment