Deactivate web/video setting for now
This commit is contained in:
parent
324d34ff61
commit
e82fea8d3d
|
|
@ -12,11 +12,13 @@ mixins.push(Reflux.listenTo(RecordingStore, "onRecordingStateChanged"))
|
|||
onExternalVideoStateChanged: (videoState) ->
|
||||
console.log('_REC_ onExternalVideoStateChanged', videoState);
|
||||
$root = $(this.getDOMNode())
|
||||
console.log("recording videoEnabled", videoState.videoEnabled)
|
||||
if videoState.videoEnabled
|
||||
$root.find('#recording-input-both').attr('disabled', false).iCheck('update').iCheck('uncheck')
|
||||
$root.find('#recording-input-audio').attr('disabled',false)
|
||||
else
|
||||
$root.find('#recording-input-both').prop('disabled',true).iCheck('update').iCheck('uncheck');
|
||||
$root.find('#recording-input-audio').attr('checked', true).iCheck('update').iCheck('check')
|
||||
$root.find('#recording-input-both').attr('disabled',true).iCheck('update').iCheck('uncheck');
|
||||
$root.find('#recording-input-audio').attr('disabled',true).attr('checked', true).iCheck('update').iCheck('check')
|
||||
|
||||
# onRecordingStateChanged: (recordingState) ->
|
||||
# if recordingState.audioRecordingFormat
|
||||
|
|
@ -90,6 +92,8 @@ mixins.push(Reflux.listenTo(RecordingStore, "onRecordingStateChanged"))
|
|||
|
||||
setRecordingTypeChange: `async function(e) {
|
||||
const recordType = e.target.value;
|
||||
console.log("setRecordingTypeChange", recordType)
|
||||
|
||||
const $root = $(this.getDOMNode());
|
||||
const $recordTypeAudio = $root.find('#recording-input-audio');
|
||||
const $recordTypeBoth = $root.find('#recording-input-both');
|
||||
|
|
@ -353,13 +357,15 @@ mixins.push(Reflux.listenTo(RecordingStore, "onRecordingStateChanged"))
|
|||
context.JK.checkbox($inputRecordStoreTypeMix);
|
||||
|
||||
//only enable audio & video radio button if a video is ongoing
|
||||
console.log("context.JK.videoIsOngoing", context.JK.videoIsOngoing)
|
||||
if (!context.JK.videoIsOngoing) {
|
||||
this.setState({recordingType: context.JK.RECORD_TYPE_AUDIO});
|
||||
$inputAudioRadioBtn.attr('checked', true).iCheck('update').iCheck('check');
|
||||
$inputAudioRadioBtn.attr('checked', true).attr('disabled', true).iCheck('update').iCheck('check')
|
||||
$inputBothRadioBtn.attr('disabled',true).iCheck('update').iCheck('uncheck');
|
||||
this.toggleDisableVideoContrls(true);
|
||||
} else {
|
||||
$inputBothRadioBtn.attr('disabled', false).iCheck('update');
|
||||
$inputAudioRadioBtn.attr('disabled', false)
|
||||
if (this.state.recordingType === context.JK.RECORD_TYPE_BOTH) {
|
||||
$inputBothRadioBtn.attr('checked', true).iCheck('update').iCheck('check');
|
||||
this.toggleDisableVideoContrls(false);
|
||||
|
|
|
|||
|
|
@ -21,7 +21,10 @@ SessionActions = @SessionActions
|
|||
videoBtn = `<SessionVideoBtn />`
|
||||
|
||||
filesBtn = `<SessionFilesBtn app={this.app} lessonId={this.state.lessonId} isLesson={this.state.isLesson}/>`
|
||||
|
||||
recordingStatus = null
|
||||
console.log("gon.show_recording_debug_status", gon.show_recording_debug_status)
|
||||
if gon.show_recording_debug_status
|
||||
recordingStatus = `<SessionRecordingStatus />`
|
||||
`<div className="session-container">
|
||||
<div className="in-session-controls">
|
||||
<SessionSettingsBtn />
|
||||
|
|
@ -38,7 +41,7 @@ SessionActions = @SessionActions
|
|||
<SessionOtherTracks mode={MIX_MODES.PERSONAL} />
|
||||
<SessionMediaTracks mode={MIX_MODES.PERSONAL} />
|
||||
<SessionNotifications />
|
||||
<SessionRecordingStatus />
|
||||
{recordingStatus}
|
||||
</div>
|
||||
</div>`
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue