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: WebRTCAssignee: 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
Reported 2021-05-10 14:12:45 PDT
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
Radar WebKit Bug Importer
Comment 1 2021-05-17 14:13:18 PDT
Note You need to log in before you can comment on or make changes to this bug.