* translate enum ids into framerates for start video recording - VRFS-3631
This commit is contained in:
parent
6ecf591520
commit
eba43cf228
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue