[Webkit-unassigned] [Bug 210285] MediaStream can only be used ~10 times on new video elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 10 07:20:15 PDT 2020


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

--- Comment #2 from youenn fablet <youennf at gmail.com> ---
Thanks for the report, I also reproduced it.
I changed it a bit in https://jsfiddle.net/8r0czdus/

This does not repro for mock video capture source.
This probably does not repro for RTCPeerConnection remote video tracks either.

>From logging, it seems that video capture stops without WebKit getting any notification except than not receiving any video frame.
Capture sometimes restarts, according logging, it seems that some video elements are GCed. So it seems there is a conflict of resources.

Destroying the underlying player seems to fix it, which probably goes well with a resource conflict issue.

As a temporary workaround, the video element srcObject attribute could be set to null when moved out of the DOM.
If I change the fiddle to do that (https://jsfiddle.net/ud7w64hy/) this is working for me.

-- 
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/20200410/a7fd032a/attachment.htm>


More information about the webkit-unassigned mailing list