comment duplicate code
This commit is contained in:
parent
8194e4c636
commit
f41c64acc8
|
|
@ -34,39 +34,39 @@ mixins.push(Reflux.listenTo(@AppStore,"onAppInit"))
|
|||
return
|
||||
this.setState(isRecording: recordingState.isRecording, recordedOnce: this.state.recordedOnce || recordingState.isRecording)
|
||||
|
||||
handleSettingSubmit: (settings) ->
|
||||
volume = volume: @state.inputGroupMixers.mixer[0].volume_left
|
||||
settings = $.extend({}, settings, volume)
|
||||
try
|
||||
localStorage.setItem("recordSettings", JSON.stringify(settings))
|
||||
catch e
|
||||
logger.info("error while saving recordSettings to localStorage")
|
||||
logger.log(e.stack)
|
||||
# handleSettingSubmit: (settings) ->
|
||||
# volume = volume: @state.inputGroupMixers.mixer[0].volume_left
|
||||
# settings = $.extend({}, settings, volume)
|
||||
# try
|
||||
# localStorage.setItem("recordSettings", JSON.stringify(settings))
|
||||
# catch e
|
||||
# logger.info("error while saving recordSettings to localStorage")
|
||||
# logger.log(e.stack)
|
||||
|
||||
params = {
|
||||
recordingType: settings.recordingType,
|
||||
name: settings.recordingName,
|
||||
audioFormat: settings.audioFormat,
|
||||
includeChat: settings.includeChat,
|
||||
volume: settings.volume,
|
||||
}
|
||||
# params = {
|
||||
# recordingType: settings.recordingType,
|
||||
# name: settings.recordingName,
|
||||
# audioFormat: settings.audioFormat,
|
||||
# includeChat: settings.includeChat,
|
||||
# volume: settings.volume,
|
||||
# }
|
||||
|
||||
if params.recordingType == context.JK.RECORD_TYPE_BOTH
|
||||
params['videoFormat'] = settings.videoFormat
|
||||
params['audioDelay'] = settings.audioDelay
|
||||
# if params.recordingType == context.JK.RECORD_TYPE_BOTH
|
||||
# params['videoFormat'] = settings.videoFormat
|
||||
# params['audioDelay'] = settings.audioDelay
|
||||
|
||||
#TODO: check OBS has been installed
|
||||
obsAvailable = true
|
||||
# #TODO: check OBS has been installed
|
||||
# obsAvailable = true
|
||||
|
||||
unless obsAvailable
|
||||
context.JK.Banner.showAlert("To make a video recording in JamKazam, you must first install and configure OBS software. Click the link below for a help article that explains how to do this. <a href=''>View Help Article</a>")
|
||||
return
|
||||
# unless obsAvailable
|
||||
# context.JK.Banner.showAlert("To make a video recording in JamKazam, you must first install and configure OBS software. Click the link below for a help article that explains how to do this. <a href=''>View Help Article</a>")
|
||||
# return
|
||||
|
||||
unless context.JK.videoIsOngoing
|
||||
context.JK.Banner.showAlert("To make a video recording in JamKazam you must have an ongoing video. You can start a video by clicking the Video button on session tool bar.")
|
||||
return
|
||||
# unless context.JK.videoIsOngoing
|
||||
# context.JK.Banner.showAlert("To make a video recording in JamKazam you must have an ongoing video. You can start a video by clicking the Video button on session tool bar.")
|
||||
# return
|
||||
|
||||
@startStopRecording(params)
|
||||
# @startStopRecording(params)
|
||||
|
||||
handleSettingSubmit: `async function(settings) {
|
||||
const volume = {volume: this.state.inputGroupMixers.mixer[0].volume_left};
|
||||
|
|
|
|||
Loading…
Reference in New Issue