mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-14 19:36:15 +00:00
fix: fix cam/mic init in love
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
parent
3f0a2f214a
commit
19f8f1823f
@ -436,8 +436,8 @@ lk.on(RoomEvent.Connected, () => {
|
|||||||
|
|
||||||
const session = useMedia({
|
const session = useMedia({
|
||||||
state: {
|
state: {
|
||||||
camera: { enabled: false },
|
camera: current?.type === RoomType.Video ? { enabled: false } : undefined,
|
||||||
microphone: current?.type === RoomType.Video ? { enabled: false } : undefined
|
microphone: { enabled: false }
|
||||||
},
|
},
|
||||||
autoDestroy: false
|
autoDestroy: false
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user