import debug from "debug" ; import RootStore from "../stores" ; const log = debug ( "effect:local-stream" ) ; export const castVideo = ( { room } ) => ( ) => { log ( "castVideo()" ) ; room . castRequestCount = room . castRequestCount + 1 ; } ; export const openSettings = ( { ui } ) => ( ) => { log ( "openSettings()" ) ; ui . isSettingsOpen = true ; } ; export const toggleAudioMuted = ( { media } ) => ( ) => { log ( "toggleAudioMuted()" ) ; media . toggleMuted ( "audio" ) ; } ; export const toggleVideoMuted = ( { media } ) => ( ) => { log ( "toggleVideoMuted()" ) ; media . toggleMuted ( "video" ) ; } ;