* translate enum ids into framerates for start video recording - VRFS-3631

This commit is contained in:
Seth Call 2015-10-09 06:32:53 -05:00
parent 6ecf591520
commit eba43cf228
2 changed files with 13 additions and 1 deletions

View File

@ -2,6 +2,15 @@ $ = jQuery
context = window
logger = context.JK.logger
BackendToFrontendFPS = {
0: 30,
1: 24,
2: 20,
3: 15,
4: 10
}
@RecordingStore = Reflux.createStore(
{
listenables: @RecordingActions
@ -25,7 +34,9 @@ logger = context.JK.logger
onStartRecording: (recordVideo, recordChat) ->
frameRate = context.jamClient.GetCurrentVideoFrameRate() || 30;
frameRate = context.jamClient.GetCurrentVideoFrameRate() || 0;
frameRate = BackendToFrontendFPS[frameRate]
NoVideoRecordActive = 0
WebCamRecordActive = 1

View File

@ -96,6 +96,7 @@
// ask the backend to start the session.
var groupedTracks = groupTracksToClient(recording);
logger.debug("bridge.StartRecording recordVideo: " + recordVideo + ", recordChat: " + recordChat + ", recordFramerate: " + recordFramerate)
jamClient.StartRecording(recording["id"], groupedTracks, recordVideo, recordChat, recordFramerate);
})
.fail(function(jqXHR) {