Skip to content
Snippets Groups Projects
Commit 0af4af16 authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud
Browse files

LocalVideo: close previous device when switching device

Change-Id: Ia6a8c56e1b259dd33d85734a85f1a3a652da5206
GitLab: #1446
parent 850decf3
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,10 @@ VideoView {
rendererId = id;
} else {
const forceRestart = rendererId === id;
if (!forceRestart) {
// Stop previous device
VideoDevices.stopDevice(rendererId);
}
rendererId = VideoDevices.startDevice(id, forceRestart);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment