We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 375dcd0 commit 14ddf12Copy full SHA for 14ddf12
1 file changed
src/sessions/session-manager.ts
@@ -227,10 +227,10 @@ export class SessionManager {
227
});
228
229
const promises = sessions.map(session => {
230
- const updateOptions: any = {session};
231
- if ('videoDeviceId' in opts) updateOptions.videoDeviceId = opts.videoDeviceId;
232
- if ('audioDeviceId' in opts) updateOptions.audioDeviceId = opts.audioDeviceId;
233
- return this.updateOutgoingMedia(updateOptions);
+ return this.updateOutgoingMedia({
+ session,
+ ...opts
+ });
234
235
return Promise.all(promises);
236
}
0 commit comments