unbindVideoElement API does not remove MediaStream #1076
Labels
feature-request
New feature or request
video
Issues related to quality of the video stream - blurry, jerky, freezes, black screens or unable to s
Describe the bug
The
unbindVideoElement
API does not remove the MediaStream from the video element. Since thebindVideoElement
is responsible for attaching the stream, theunbindVideoElement
call should remove it.This is needed when moving video elements around the DOM. Currently, unbinding and rebinding the same
VideoTile
will create two videos playing the same stream.Workaround
You can workaround this by manually remove the
srcObject
of the video element, or disposing of the video element altogether.Fix
To not break backwards compatability, allow passing some optional config when calling
unbindVideoElement
that will detach theMediaStream
.Platform
The text was updated successfully, but these errors were encountered: