[Webkit-unassigned] [Bug 174152] New: loadedmetadata is not emitted when video plays stream with disabled video track

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 4 23:52:05 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=174152

            Bug ID: 174152
           Summary: loadedmetadata is not emitted when video plays stream
                    with disabled video track
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Media Elements
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: andrew at tokbox.com

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170705/9a50c52b/attachment.html>


More information about the webkit-unassigned mailing list