* check for video enabled better

This commit is contained in:
Seth Call 2015-09-09 07:13:51 -05:00
parent b483dd537f
commit 3976707b14
2 changed files with 7 additions and 1 deletions

View File

@ -394,7 +394,7 @@
if (success) {
if(window.VideoStore.videoEnabled) {
if(window.VideoStore.isVideoEnabled()) {
startVideoTest();
}
else {

View File

@ -48,6 +48,8 @@ BackendToFrontendFPS = {
videoEnabled = context.jamClient.FTUEGetVideoShareEnable()
@videoEnabled = videoEnabled
if videoEnabled
currentDevice = context.jamClient.FTUECurrentSelectedVideoDevice()
deviceNames = context.jamClient.FTUEGetVideoCaptureDeviceNames()
@ -238,5 +240,9 @@ BackendToFrontendFPS = {
if shouldShow
@configureWindow = window.open("/popups/configure-video", 'Configure Video', 'scrollbars=yes,toolbar=no,status=no,height=395,width=444')
)
isVideoEnabled:() ->
return @videoEnabled
}
)