WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
174152
loadedmetadata is not emitted when video plays stream with disabled video track
https://bugs.webkit.org/show_bug.cgi?id=174152
Summary
loadedmetadata is not emitted when video plays stream with disabled video track
Andrew Morris
Reported
2017-07-04 23:52:05 PDT
Using this code in the console: (async function() { const vid = document.createElement('video'); const stream = await navigator.mediaDevices.getUserMedia({ video: true, audio: true }); stream.getVideoTracks()[0].enabled = false; ['timeupdate', 'loadedmetadata'].forEach(evtName => vid.addEventListener(evtName, () => console.log(evtName))); document.body.appendChild(vid); vid.srcObject = stream; })(); I expect that loadedmetadata should still occur for a stream with a disabled video track. 'loadedmetadata' is printed to the console in Chrome, Firefox, and Edge for this code (Edge code modified to not use await). I'd also expect this to work when the <video> is muted as well, although I discovered that part was not necessary to repro loadedmetadata not getting emitted.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2017-07-07 13:27:06 PDT
<
rdar://problem/33188613
>
Eric Carlson
Comment 2
2017-07-12 11:19:18 PDT
***
Bug 174408
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug