1
0
mirror of https://github.com/videojs/video.js.git synced 2025-07-13 01:30:17 +02:00

fix: need to determine featuresVideoFrameCallback before setting source (#7812)

the tech needs to know whether or not the underlying element supports requestVideoFrameCallback before calling setSource

Fixes #7807
This commit is contained in:
Joe Flateau
2022-06-28 16:01:00 -04:00
committed by GitHub
parent fb43a69e70
commit b22a08aad0
2 changed files with 6 additions and 3 deletions

View File

@ -1035,7 +1035,10 @@ QUnit.test('supports getting available media playback quality metrics', function
QUnit.test('featuresVideoFrameCallback is false for audio elements', function(assert) {
const el = document.createElement('audio');
const audioTech = new Html5({el});
const audioTech = new Html5({
el,
source: [{src: 'https://example.org/stream.m3u8'}]
});
assert.strictEqual(audioTech.featuresVideoFrameCallback, false, 'Html5 with audio element should not support rvf');