We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2575a80 commit ff26ecdCopy full SHA for ff26ecd
src/room/track/LocalTrack.ts
@@ -232,9 +232,8 @@ export default abstract class LocalTrack<
232
) {
233
return true;
234
}
235
- const { deviceId: oldDeviceId, ...prevConstraints } = this._constraints;
236
- // try to re-order constraints as spec says
237
- this._constraints = { deviceId, ...prevConstraints };
+
+ this._constraints.deviceId = deviceId;
238
239
// when track is muted, underlying media stream track is stopped and
240
// will be restarted later
0 commit comments