mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-10 12:03:18 +02:00
LocalVideo: close previous device when switching device
Change-Id: Ia6a8c56e1b259dd33d85734a85f1a3a652da5206 GitLab: #1446
This commit is contained in:
parent
850decf38e
commit
0af4af1685
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue