We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf905cc commit 4b3e976Copy full SHA for 4b3e976
packages/core/useUserMedia/demo.vue
@@ -13,7 +13,7 @@ const { videoInputs: cameras } = useDevicesList({
13
14
const video = useTemplateRef<HTMLVideoElement>('video')
15
const { stream, enabled } = useUserMedia({
16
- constraints: reactive({ video: { deviceId: currentCamera } }),
+ constraints: reactive({ video: { deviceId: { exact: currentCamera } } }),
17
})
18
19
watchEffect(() => {
packages/core/useUserMedia/index.ts
@@ -106,7 +106,7 @@ export function useUserMedia(options: UseUserMediaOptions = {}) {
106
if (autoSwitch.value && stream.value)
107
restart()
108
},
109
- { immediate: true },
+ { immediate: true, deep: true },
110
)
111
112
tryOnScopeDispose(() => {
0 commit comments