diff --git a/web/app/assets/javascripts/globals.js b/web/app/assets/javascripts/globals.js index 3708021cb..75f56ecd6 100644 --- a/web/app/assets/javascripts/globals.js +++ b/web/app/assets/javascripts/globals.js @@ -36,6 +36,10 @@ CHAT: "1" }; + context.JK.AUDIO_FORMATS = ['ogg', 'mp3', 'wma']; + + context.JK.VIDEO_FORMATS = ['mp4', 'wmv', 'mov', 'vob'] + context.JK.AVAILABILITY_US = "United States"; context.JK.MASTER_TRACK = "Master"; diff --git a/web/app/assets/javascripts/react-components/SessionRecordingSettings.js.jsx.coffee b/web/app/assets/javascripts/react-components/SessionRecordingSettings.js.jsx.coffee index c0e28d781..67a9b4b26 100644 --- a/web/app/assets/javascripts/react-components/SessionRecordingSettings.js.jsx.coffee +++ b/web/app/assets/javascripts/react-components/SessionRecordingSettings.js.jsx.coffee @@ -1,7 +1,7 @@ context = window mixins = [] -AUDIO_FORMATS = ['ogg', 'mp3', 'wma'] + #mixins.push(Reflux.listenTo(@AppStore,"onAppInit")) @@ -51,9 +51,16 @@ AUDIO_FORMATS = ['ogg', 'mp3', 'wma'] handleStartRecording: () -> - - render: () -> + audioFormatOptions = [] + videoFormatOptions = [] + + for format, i in context.JK.AUDIO_FORMATS + audioFormatOptions.push `` + + for format, i in context.JK.VIDEO_FORMATS + videoFormatOptions.push `` + `