Pause stream when exiting sketch or extruding (#2900)
* Pause when exiting sketch or extruding * tsc
This commit is contained in:
@ -68,6 +68,13 @@ export const Stream = () => {
|
||||
if (!videoRef.current) return
|
||||
if (!context.store?.mediaStream) return
|
||||
videoRef.current.srcObject = context.store.mediaStream
|
||||
|
||||
send({
|
||||
type: 'Set context',
|
||||
data: {
|
||||
videoElement: videoRef.current,
|
||||
},
|
||||
})
|
||||
}, [context.store?.mediaStream])
|
||||
|
||||
const handleMouseDown: MouseEventHandler<HTMLDivElement> = (e) => {
|
||||
|
Reference in New Issue
Block a user