Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: #1346 bugfix, change device show on selection #1347

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/room/Room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
* @internal for testing
*/
async simulateScenario(scenario: SimulationScenario, arg?: any) {
let postAction = () => {};
let postAction = () => { };
let req: SimulateScenario | undefined;
switch (scenario) {
case 'signal-reconnect':
Expand Down Expand Up @@ -1160,7 +1160,7 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
throw e;
}
}
if (deviceHasChanged && success) {
if (deviceHasChanged) {
this.localParticipant.activeDeviceMap.set(kind, deviceId);
this.emit(RoomEvent.ActiveDeviceChanged, kind, deviceId);
}
Expand Down Expand Up @@ -2104,14 +2104,14 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
new LocalVideoTrack(
publishOptions.useRealTracks
? (
await window.navigator.mediaDevices.getUserMedia({ video: true })
).getVideoTracks()[0]
await window.navigator.mediaDevices.getUserMedia({ video: true })
).getVideoTracks()[0]
: createDummyVideoStreamTrack(
160 * (participantOptions.aspectRatios[0] ?? 1),
160,
true,
true,
),
160 * (participantOptions.aspectRatios[0] ?? 1),
160,
true,
true,
),
undefined,
false,
{ loggerName: this.options.loggerName, loggerContextCb: () => this.logContext },
Expand Down
Loading