Skip to content

Commit

Permalink
playback test
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed Jul 28, 2021
1 parent 85c4392 commit 26a1073
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test/playback.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,32 @@ QUnit[testFn]('Live DASH', function(assert) {
});
});

QUnit[testFn]('Multiperiod dash works and can end', function(assert) {
const done = assert.async();

assert.expect(2);
const player = this.player;

playFor(player, 2, function() {
assert.ok(true, 'played for at least two seconds');
assert.equal(player.error(), null, 'has no player errors');

player.one('ended', () => {
assert.ok(true, 'triggered ended event');
done();
});

player.currentTime(player.duration() - 0.5);

done();
});

player.src({
src: 'https://media.axprod.net/TestVectors/v7-Clear/Manifest_MultiPeriod.mpd',
type: 'application/dash+xml'
});
});

// These videos don't work on firefox consistenly. Seems like
// firefox has lower performance or more aggressive throttling than chrome
// which causes a variety of issues.
Expand Down

0 comments on commit 26a1073

Please sign in to comment.