Skip to content

Commit 2b64e07

Browse files
committed
reinstate test with forced player dimension
1 parent f7545b1 commit 2b64e07

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

test/playback.test.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,15 +366,22 @@ if (!videojs.browser.IS_FIREFOX) {
366366
player.src({
367367
src: 'https://dash.akamaized.net/dash264/TestCases/10a/1/iis_forest_short_poem_multi_lang_480p_single_adapt_aaclc_sidx.mpd',
368368
type: 'application/dash+xml'
369-
});
369+
});the
370370
});
371371

372-
// TODO: investigate cause of playback failure. Source fails with VHS demo page
373-
// but plays ok with the DASH.js demo player: https://tinyurl.com/4tw77nmw
374-
QUnit.skip('DRM Dash', function(assert) {
372+
373+
QUnit.test('DRM Dash', function(assert) {
375374
const done = assert.async();
376375
const player = this.player;
377376

377+
// TODO: This is a fudge which gets around HEVC playlists being allowed by VHS
378+
// but Widevine / HEVC not being supported in Chrome. Forcing the player to a specific
379+
// resolution gets us a playlist with a supported codec.
380+
// Ideally there would be some way to detect and exclude HEVC playlists
381+
// that are encrypted.
382+
player.width(640);
383+
player.height(360);
384+
378385
player.one('ended', () => {
379386
assert.ok(true, 'triggered ended');
380387
assert.equal(player.error(), null, 'no errors');

0 commit comments

Comments
 (0)