[Webkit-unassigned] [Bug 224747] New: "A MediaStreamTrack ended due to a capture failure" if trying to show the stream in a video tag not appended to DOM

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 19 03:47:30 PDT 2021


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

            Bug ID: 224747
           Summary: "A MediaStreamTrack ended due to a capture failure" if
                    trying to show the stream in a video tag not appended
                    to DOM
           Product: WebKit
           Version: Safari 14
          Hardware: iPhone / iPad
                OS: iOS 14
            Status: NEW
          Severity: Major
          Priority: P2
         Component: WebRTC
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: francesco.durighetto at bandyer.com
                CC: youennf at gmail.com

There is a bug in safari 14 (reproducible only on mobile devices (iPhone/iPad) where a mediastream from getusermedia fires a: "A MediaStreamTrack ended due to a capture failure" if this stream is attached to a video element not present in DOM.

also, this is a bit tricky because it crashes when calling .play() on videoElement if this element is NOT attached to dom.
but if this videoElement is NOT attached. to DOM BUT it has the autoplay attribute AND you does not invoke the .play() method it seems to work.

I think the best way to describe this bug is via a simple snippet so you can try the different combinations of events and better understand the problem.

https://codepen.io/francesco-d/full/MWJqOwq

-- 
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/20210419/348b6ad8/attachment-0001.htm>


More information about the webkit-unassigned mailing list