Skip to content

Commit ff26ecd

Browse files
committed
no reordering
1 parent 2575a80 commit ff26ecd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/room/track/LocalTrack.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,8 @@ export default abstract class LocalTrack<
232232
) {
233233
return true;
234234
}
235-
const { deviceId: oldDeviceId, ...prevConstraints } = this._constraints;
236-
// try to re-order constraints as spec says
237-
this._constraints = { deviceId, ...prevConstraints };
235+
236+
this._constraints.deviceId = deviceId;
238237

239238
// when track is muted, underlying media stream track is stopped and
240239
// will be restarted later

0 commit comments

Comments
 (0)