Skip to content

Commit ac59a54

Browse files
committed
chore: enforce camera selection
1 parent f4e87ea commit ac59a54

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@api.stream/studio-kit",
3-
"version": "3.0.34",
3+
"version": "3.0.35",
44
"description": "Client SDK for building studio experiences with API.stream",
55
"license": "MIT",
66
"private": false,

src/core/webrtc/simple-room.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,9 @@ export const getRoom = (id: string) => {
232232

233233
const tracks = await localParticipant.createTracks({
234234
video: {
235-
deviceId: options.deviceId,
235+
deviceId: {
236+
exact: options.deviceId?.toString(),
237+
},
236238
resolution: options.resolution || {
237239
width: 1280,
238240
height: 720,

0 commit comments

Comments
 (0)