Bug 225612
Summary: | Don't fire 'loadedmetadata' and 'canplay' events when re-attaching a video track to a MediaStream | ||
---|---|---|---|
Product: | WebKit | Reporter: | Eric Carlson <eric.carlson> |
Component: | WebRTC | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | webkit-bug-importer, youennf |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Eric Carlson
As noted in https://github.com/w3c/mediacapture-main/issues/453#issuecomment-837051373, if a page:
1. Assigns a MediaStream with an audio track and no video track to a video element.
2. Adds a video track to the MediaStream assigned in step 1.
3. Removes the video track from the MediaStream assigned in step 1.
4. Adds the same video track again to the MediaStream assigned in step 1.
WebKit fires "resize", "loadedmetadata" and "canplay" events on step 4.
readyState should not drop below HAVE_METADATA when the video track is removed, so it should not fire "loadedmetadata" when it is re-added.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/78121674>