diff --git a/web/app/assets/javascripts/react-components/stores/VideoStore.js.coffee b/web/app/assets/javascripts/react-components/stores/VideoStore.js.coffee index 3cca5720e..ef1b19f8d 100644 --- a/web/app/assets/javascripts/react-components/stores/VideoStore.js.coffee +++ b/web/app/assets/javascripts/react-components/stores/VideoStore.js.coffee @@ -140,6 +140,11 @@ BackendToFrontendFPS = { @state.videoShared = @videoShared this.trigger(@state) + onBringVideoToFront: -> + if @videoShared + @logger.debug("BringVideoToFront") + context.jamClient.BringVideoWindowToFront(); + onTestVideo: () -> return unless context.jamClient.testVideoRender? @@ -150,7 +155,7 @@ BackendToFrontendFPS = { onToggleVideo: () -> if @videoShared - @onStopVideo() + @onBringVideoToFront() else @onStartVideo()