2022-11-11 08:20:33 +00:00
|
|
|
import { createRecordingEvent } from '../analytics/AnalyticsEvents';
|
|
|
|
import { sendAnalytics } from '../analytics/functions';
|
|
|
|
import { IStore } from '../app/types';
|
|
|
|
import { APP_WILL_MOUNT, APP_WILL_UNMOUNT } from '../base/app/actionTypes';
|
|
|
|
import { CONFERENCE_JOIN_IN_PROGRESS } from '../base/conference/actionTypes';
|
|
|
|
import { getCurrentConference } from '../base/conference/functions';
|
2018-06-14 09:15:36 +00:00
|
|
|
import JitsiMeetJS, {
|
2018-06-05 18:20:43 +00:00
|
|
|
JitsiConferenceEvents,
|
|
|
|
JitsiRecordingConstants
|
|
|
|
} from '../base/lib-jitsi-meet';
|
2022-11-11 08:20:33 +00:00
|
|
|
import { MEDIA_TYPE } from '../base/media/constants';
|
|
|
|
import { updateLocalRecordingStatus } from '../base/participants/actions';
|
|
|
|
import { getParticipantDisplayName } from '../base/participants/functions';
|
|
|
|
import MiddlewareRegistry from '../base/redux/MiddlewareRegistry';
|
|
|
|
import StateListenerRegistry from '../base/redux/StateListenerRegistry';
|
2018-06-05 18:20:43 +00:00
|
|
|
import {
|
|
|
|
playSound,
|
|
|
|
registerSound,
|
|
|
|
stopSound,
|
|
|
|
unregisterSound
|
2022-11-11 08:20:33 +00:00
|
|
|
} from '../base/sounds/actions';
|
|
|
|
import { TRACK_ADDED } from '../base/tracks/actionTypes';
|
|
|
|
import { showErrorNotification, showNotification } from '../notifications/actions';
|
|
|
|
import { NOTIFICATION_TIMEOUT_TYPE } from '../notifications/constants';
|
2018-06-05 18:20:43 +00:00
|
|
|
|
2022-06-03 11:45:27 +00:00
|
|
|
import { RECORDING_SESSION_UPDATED, START_LOCAL_RECORDING, STOP_LOCAL_RECORDING } from './actionTypes';
|
2018-06-14 09:15:36 +00:00
|
|
|
import {
|
|
|
|
clearRecordingSessions,
|
|
|
|
hidePendingRecordingNotification,
|
|
|
|
showPendingRecordingNotification,
|
|
|
|
showRecordingError,
|
2020-05-28 22:42:02 +00:00
|
|
|
showRecordingLimitNotification,
|
2021-11-09 18:58:49 +00:00
|
|
|
showRecordingWarning,
|
2019-10-03 19:35:21 +00:00
|
|
|
showStartedRecordingNotification,
|
2018-06-14 09:15:36 +00:00
|
|
|
showStoppedRecordingNotification,
|
|
|
|
updateRecordingSessionData
|
|
|
|
} from './actions';
|
2022-06-03 11:45:27 +00:00
|
|
|
import LocalRecordingManager from './components/Recording/LocalRecordingManager';
|
2019-08-12 15:34:38 +00:00
|
|
|
import {
|
|
|
|
LIVE_STREAMING_OFF_SOUND_ID,
|
|
|
|
LIVE_STREAMING_ON_SOUND_ID,
|
|
|
|
RECORDING_OFF_SOUND_ID,
|
|
|
|
RECORDING_ON_SOUND_ID
|
|
|
|
} from './constants';
|
2022-06-03 11:45:27 +00:00
|
|
|
import {
|
2022-09-27 07:10:28 +00:00
|
|
|
getResourceId,
|
|
|
|
getSessionById
|
2022-06-03 11:45:27 +00:00
|
|
|
} from './functions';
|
|
|
|
import logger from './logger';
|
2018-06-05 18:20:43 +00:00
|
|
|
import {
|
2019-08-12 15:34:38 +00:00
|
|
|
LIVE_STREAMING_OFF_SOUND_FILE,
|
|
|
|
LIVE_STREAMING_ON_SOUND_FILE,
|
2018-06-05 18:20:43 +00:00
|
|
|
RECORDING_OFF_SOUND_FILE,
|
|
|
|
RECORDING_ON_SOUND_FILE
|
|
|
|
} from './sounds';
|
2018-05-23 14:20:10 +00:00
|
|
|
|
2018-06-14 09:15:36 +00:00
|
|
|
/**
|
|
|
|
* StateListenerRegistry provides a reliable way to detect the leaving of a
|
|
|
|
* conference, where we need to clean up the recording sessions.
|
|
|
|
*/
|
|
|
|
StateListenerRegistry.register(
|
|
|
|
/* selector */ state => getCurrentConference(state),
|
|
|
|
/* listener */ (conference, { dispatch }) => {
|
|
|
|
if (!conference) {
|
|
|
|
dispatch(clearRecordingSessions());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2018-05-23 14:20:10 +00:00
|
|
|
/**
|
|
|
|
* The redux middleware to handle the recorder updates in a React way.
|
|
|
|
*
|
|
|
|
* @param {Store} store - The redux store.
|
|
|
|
* @returns {Function}
|
|
|
|
*/
|
2022-06-03 11:45:27 +00:00
|
|
|
MiddlewareRegistry.register(({ dispatch, getState }) => next => async action => {
|
2018-06-05 18:20:43 +00:00
|
|
|
let oldSessionData;
|
|
|
|
|
|
|
|
if (action.type === RECORDING_SESSION_UPDATED) {
|
|
|
|
oldSessionData
|
2018-06-14 09:15:36 +00:00
|
|
|
= getSessionById(getState(), action.sessionData.id);
|
2018-06-05 18:20:43 +00:00
|
|
|
}
|
|
|
|
|
2018-05-23 14:20:10 +00:00
|
|
|
const result = next(action);
|
|
|
|
|
|
|
|
switch (action.type) {
|
2018-06-05 18:20:43 +00:00
|
|
|
case APP_WILL_MOUNT:
|
2019-08-12 15:34:38 +00:00
|
|
|
dispatch(registerSound(
|
|
|
|
LIVE_STREAMING_OFF_SOUND_ID,
|
|
|
|
LIVE_STREAMING_OFF_SOUND_FILE));
|
|
|
|
|
|
|
|
dispatch(registerSound(
|
|
|
|
LIVE_STREAMING_ON_SOUND_ID,
|
|
|
|
LIVE_STREAMING_ON_SOUND_FILE));
|
|
|
|
|
2018-06-14 09:15:36 +00:00
|
|
|
dispatch(registerSound(
|
2018-06-05 18:20:43 +00:00
|
|
|
RECORDING_OFF_SOUND_ID,
|
|
|
|
RECORDING_OFF_SOUND_FILE));
|
|
|
|
|
2018-06-14 09:15:36 +00:00
|
|
|
dispatch(registerSound(
|
2018-06-05 18:20:43 +00:00
|
|
|
RECORDING_ON_SOUND_ID,
|
|
|
|
RECORDING_ON_SOUND_FILE));
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case APP_WILL_UNMOUNT:
|
2019-08-12 15:34:38 +00:00
|
|
|
dispatch(unregisterSound(LIVE_STREAMING_OFF_SOUND_ID));
|
|
|
|
dispatch(unregisterSound(LIVE_STREAMING_ON_SOUND_ID));
|
2018-06-14 09:15:36 +00:00
|
|
|
dispatch(unregisterSound(RECORDING_OFF_SOUND_ID));
|
|
|
|
dispatch(unregisterSound(RECORDING_ON_SOUND_ID));
|
2018-06-05 18:20:43 +00:00
|
|
|
|
|
|
|
break;
|
|
|
|
|
2022-04-06 02:13:39 +00:00
|
|
|
case CONFERENCE_JOIN_IN_PROGRESS: {
|
2018-05-23 14:20:10 +00:00
|
|
|
const { conference } = action;
|
|
|
|
|
|
|
|
conference.on(
|
|
|
|
JitsiConferenceEvents.RECORDER_STATE_CHANGED,
|
2022-11-11 08:20:33 +00:00
|
|
|
(recorderSession: any) => {
|
2018-06-14 09:15:36 +00:00
|
|
|
if (recorderSession) {
|
2022-04-06 02:13:39 +00:00
|
|
|
recorderSession.getID() && dispatch(updateRecordingSessionData(recorderSession));
|
|
|
|
recorderSession.getError() && _showRecordingErrorNotification(recorderSession, dispatch);
|
2018-05-23 14:20:10 +00:00
|
|
|
}
|
2018-06-14 09:15:36 +00:00
|
|
|
|
|
|
|
return;
|
2018-05-23 14:20:10 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
2018-06-05 18:20:43 +00:00
|
|
|
|
2022-06-03 11:45:27 +00:00
|
|
|
case START_LOCAL_RECORDING: {
|
2022-06-22 09:52:22 +00:00
|
|
|
const { localRecording } = getState()['features/base/config'];
|
2022-06-24 12:07:40 +00:00
|
|
|
const { onlySelf } = action;
|
2022-06-22 09:52:22 +00:00
|
|
|
|
2022-06-03 11:45:27 +00:00
|
|
|
try {
|
|
|
|
await LocalRecordingManager.startLocalRecording({ dispatch,
|
2022-06-24 12:07:40 +00:00
|
|
|
getState }, action.onlySelf);
|
2022-06-03 11:45:27 +00:00
|
|
|
const props = {
|
|
|
|
descriptionKey: 'recording.on',
|
|
|
|
titleKey: 'dialog.recording'
|
|
|
|
};
|
|
|
|
|
2022-06-24 12:07:40 +00:00
|
|
|
if (localRecording?.notifyAllParticipants && !onlySelf) {
|
2022-06-22 09:52:22 +00:00
|
|
|
dispatch(playSound(RECORDING_ON_SOUND_ID));
|
|
|
|
}
|
2022-06-03 11:45:27 +00:00
|
|
|
dispatch(showNotification(props, NOTIFICATION_TIMEOUT_TYPE.MEDIUM));
|
2022-06-29 07:05:55 +00:00
|
|
|
dispatch(showNotification({
|
|
|
|
titleKey: 'recording.localRecordingStartWarningTitle',
|
|
|
|
descriptionKey: 'recording.localRecordingStartWarning'
|
|
|
|
}, NOTIFICATION_TIMEOUT_TYPE.STICKY));
|
2022-06-24 12:07:40 +00:00
|
|
|
dispatch(updateLocalRecordingStatus(true, onlySelf));
|
|
|
|
sendAnalytics(createRecordingEvent('started', `local${onlySelf ? '.self' : ''}`));
|
2022-07-20 15:08:52 +00:00
|
|
|
if (typeof APP !== 'undefined') {
|
|
|
|
APP.API.notifyRecordingStatusChanged(true, 'local');
|
|
|
|
}
|
2022-11-11 08:20:33 +00:00
|
|
|
} catch (err: any) {
|
2022-06-03 11:45:27 +00:00
|
|
|
logger.error('Capture failed', err);
|
|
|
|
|
2022-06-24 12:07:40 +00:00
|
|
|
let descriptionKey = 'recording.error';
|
|
|
|
|
|
|
|
if (err.message === 'WrongSurfaceSelected') {
|
|
|
|
descriptionKey = 'recording.surfaceError';
|
|
|
|
|
|
|
|
} else if (err.message === 'NoLocalStreams') {
|
|
|
|
descriptionKey = 'recording.noStreams';
|
2023-02-03 09:34:07 +00:00
|
|
|
} else if (err.message === 'NoMicTrack') {
|
|
|
|
descriptionKey = 'recording.noMicPermission';
|
2022-06-24 12:07:40 +00:00
|
|
|
}
|
2022-06-03 11:45:27 +00:00
|
|
|
const props = {
|
2022-06-24 12:07:40 +00:00
|
|
|
descriptionKey,
|
2022-06-03 11:45:27 +00:00
|
|
|
titleKey: 'recording.failedToStart'
|
|
|
|
};
|
|
|
|
|
2022-07-20 15:08:52 +00:00
|
|
|
if (typeof APP !== 'undefined') {
|
|
|
|
APP.API.notifyRecordingStatusChanged(false, 'local', err.message);
|
|
|
|
}
|
|
|
|
|
2022-06-03 11:45:27 +00:00
|
|
|
dispatch(showErrorNotification(props, NOTIFICATION_TIMEOUT_TYPE.MEDIUM));
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case STOP_LOCAL_RECORDING: {
|
2022-06-22 09:52:22 +00:00
|
|
|
const { localRecording } = getState()['features/base/config'];
|
|
|
|
|
2022-06-03 11:45:27 +00:00
|
|
|
if (LocalRecordingManager.isRecordingLocally()) {
|
|
|
|
LocalRecordingManager.stopLocalRecording();
|
|
|
|
dispatch(updateLocalRecordingStatus(false));
|
2022-07-12 11:25:56 +00:00
|
|
|
if (localRecording?.notifyAllParticipants && !LocalRecordingManager.selfRecording) {
|
2022-06-22 09:52:22 +00:00
|
|
|
dispatch(playSound(RECORDING_OFF_SOUND_ID));
|
|
|
|
}
|
2022-07-20 15:08:52 +00:00
|
|
|
if (typeof APP !== 'undefined') {
|
|
|
|
APP.API.notifyRecordingStatusChanged(false, 'local');
|
|
|
|
}
|
2022-06-03 11:45:27 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2018-06-05 18:20:43 +00:00
|
|
|
case RECORDING_SESSION_UPDATED: {
|
2019-05-08 16:55:18 +00:00
|
|
|
// When in recorder mode no notifications are shown
|
|
|
|
// or extra sounds are also not desired
|
2020-01-27 15:13:59 +00:00
|
|
|
// but we want to indicate those in case of sip gateway
|
|
|
|
const {
|
|
|
|
iAmRecorder,
|
2020-04-01 15:32:13 +00:00
|
|
|
iAmSipGateway,
|
2020-05-28 22:42:02 +00:00
|
|
|
recordingLimit
|
2020-01-27 15:13:59 +00:00
|
|
|
} = getState()['features/base/config'];
|
|
|
|
|
|
|
|
if (iAmRecorder && !iAmSipGateway) {
|
2019-05-08 16:55:18 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2018-06-05 18:20:43 +00:00
|
|
|
const updatedSessionData
|
2018-06-14 09:15:36 +00:00
|
|
|
= getSessionById(getState(), action.sessionData.id);
|
2022-11-11 08:20:33 +00:00
|
|
|
const { initiator, mode = '', terminator } = updatedSessionData ?? {};
|
2018-07-05 11:17:45 +00:00
|
|
|
const { PENDING, OFF, ON } = JitsiRecordingConstants.status;
|
|
|
|
|
2022-11-11 08:20:33 +00:00
|
|
|
if (updatedSessionData?.status === PENDING
|
2018-07-05 11:17:45 +00:00
|
|
|
&& (!oldSessionData || oldSessionData.status !== PENDING)) {
|
2019-08-12 15:34:38 +00:00
|
|
|
dispatch(showPendingRecordingNotification(mode));
|
2022-11-11 08:20:33 +00:00
|
|
|
} else if (updatedSessionData?.status !== PENDING) {
|
2019-08-12 15:34:38 +00:00
|
|
|
dispatch(hidePendingRecordingNotification(mode));
|
2018-07-05 11:17:45 +00:00
|
|
|
|
2022-11-11 08:20:33 +00:00
|
|
|
if (updatedSessionData?.status === ON) {
|
2022-10-21 00:17:10 +00:00
|
|
|
|
|
|
|
// We receive 2 updates of the session status ON. The first one is from jibri when it joins.
|
|
|
|
// The second one is from jicofo which will deliever the initiator value. Since the start
|
|
|
|
// recording notification uses the initiator value we skip the jibri update and show the
|
|
|
|
// notification on the update from jicofo.
|
|
|
|
// FIXE: simplify checks when the backend start sending only one status ON update containing the
|
|
|
|
// initiator.
|
|
|
|
if (initiator && (!oldSessionData || !oldSessionData.initiator)) {
|
|
|
|
if (typeof recordingLimit === 'object') {
|
|
|
|
dispatch(showRecordingLimitNotification(mode));
|
|
|
|
} else {
|
|
|
|
dispatch(showStartedRecordingNotification(mode, initiator, action.sessionData.id));
|
|
|
|
}
|
2020-05-28 22:42:02 +00:00
|
|
|
}
|
2022-10-21 00:17:10 +00:00
|
|
|
if (!oldSessionData || oldSessionData.status !== ON) {
|
|
|
|
sendAnalytics(createRecordingEvent('start', mode));
|
2020-05-28 22:42:02 +00:00
|
|
|
|
2022-10-21 00:17:10 +00:00
|
|
|
let soundID;
|
2020-04-01 15:32:13 +00:00
|
|
|
|
2022-10-21 00:17:10 +00:00
|
|
|
if (mode === JitsiRecordingConstants.mode.FILE) {
|
|
|
|
soundID = RECORDING_ON_SOUND_ID;
|
|
|
|
} else if (mode === JitsiRecordingConstants.mode.STREAM) {
|
|
|
|
soundID = LIVE_STREAMING_ON_SOUND_ID;
|
|
|
|
}
|
2019-08-12 15:34:38 +00:00
|
|
|
|
2022-10-21 00:17:10 +00:00
|
|
|
if (soundID) {
|
|
|
|
dispatch(playSound(soundID));
|
|
|
|
}
|
2021-03-23 16:35:46 +00:00
|
|
|
|
2022-10-21 00:17:10 +00:00
|
|
|
if (typeof APP !== 'undefined') {
|
|
|
|
APP.API.notifyRecordingStatusChanged(true, mode);
|
|
|
|
}
|
2021-03-23 16:35:46 +00:00
|
|
|
}
|
2022-11-11 08:20:33 +00:00
|
|
|
} else if (updatedSessionData?.status === OFF
|
2018-07-05 11:17:45 +00:00
|
|
|
&& (!oldSessionData || oldSessionData.status !== OFF)) {
|
2021-06-21 08:36:18 +00:00
|
|
|
if (terminator) {
|
|
|
|
dispatch(
|
|
|
|
showStoppedRecordingNotification(
|
|
|
|
mode, getParticipantDisplayName(getState, getResourceId(terminator))));
|
|
|
|
}
|
|
|
|
|
2019-08-12 15:34:38 +00:00
|
|
|
let duration = 0, soundOff, soundOn;
|
|
|
|
|
2022-11-11 08:20:33 +00:00
|
|
|
if (oldSessionData?.timestamp) {
|
2019-08-12 15:34:38 +00:00
|
|
|
duration
|
|
|
|
= (Date.now() / 1000) - oldSessionData.timestamp;
|
|
|
|
}
|
2020-04-01 15:32:13 +00:00
|
|
|
sendAnalytics(createRecordingEvent('stop', mode, duration));
|
|
|
|
|
2019-08-12 15:34:38 +00:00
|
|
|
if (mode === JitsiRecordingConstants.mode.FILE) {
|
|
|
|
soundOff = RECORDING_OFF_SOUND_ID;
|
|
|
|
soundOn = RECORDING_ON_SOUND_ID;
|
|
|
|
} else if (mode === JitsiRecordingConstants.mode.STREAM) {
|
|
|
|
soundOff = LIVE_STREAMING_OFF_SOUND_ID;
|
|
|
|
soundOn = LIVE_STREAMING_ON_SOUND_ID;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (soundOff && soundOn) {
|
|
|
|
dispatch(stopSound(soundOn));
|
|
|
|
dispatch(playSound(soundOff));
|
2018-06-14 09:15:36 +00:00
|
|
|
}
|
2021-03-23 16:35:46 +00:00
|
|
|
|
|
|
|
if (typeof APP !== 'undefined') {
|
|
|
|
APP.API.notifyRecordingStatusChanged(false, mode);
|
|
|
|
}
|
2018-06-05 18:20:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
2022-06-03 11:45:27 +00:00
|
|
|
case TRACK_ADDED: {
|
|
|
|
const { track } = action;
|
|
|
|
|
|
|
|
if (LocalRecordingManager.isRecordingLocally() && track.mediaType === MEDIA_TYPE.AUDIO) {
|
|
|
|
const audioTrack = track.jitsiTrack.track;
|
|
|
|
|
|
|
|
LocalRecordingManager.addAudioTrackToLocalRecording(audioTrack);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
2018-05-23 14:20:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return result;
|
|
|
|
});
|
2018-06-14 09:15:36 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Shows a notification about an error in the recording session. A
|
|
|
|
* default notification will display if no error is specified in the passed
|
|
|
|
* in recording session.
|
|
|
|
*
|
|
|
|
* @private
|
|
|
|
* @param {Object} recorderSession - The recorder session model from the
|
|
|
|
* lib.
|
|
|
|
* @param {Dispatch} dispatch - The Redux Dispatch function.
|
|
|
|
* @returns {void}
|
|
|
|
*/
|
2022-11-11 08:20:33 +00:00
|
|
|
function _showRecordingErrorNotification(recorderSession: any, dispatch: IStore['dispatch']) {
|
2021-03-23 16:35:46 +00:00
|
|
|
const mode = recorderSession.getMode();
|
|
|
|
const error = recorderSession.getError();
|
|
|
|
const isStreamMode = mode === JitsiMeetJS.constants.recording.mode.STREAM;
|
2018-06-14 09:15:36 +00:00
|
|
|
|
2021-03-23 16:35:46 +00:00
|
|
|
switch (error) {
|
2018-06-14 09:15:36 +00:00
|
|
|
case JitsiMeetJS.constants.recording.error.SERVICE_UNAVAILABLE:
|
|
|
|
dispatch(showRecordingError({
|
|
|
|
descriptionKey: 'recording.unavailable',
|
|
|
|
descriptionArguments: {
|
|
|
|
serviceName: isStreamMode
|
2019-07-22 10:10:25 +00:00
|
|
|
? '$t(liveStreaming.serviceName)'
|
|
|
|
: '$t(recording.serviceName)'
|
2018-06-14 09:15:36 +00:00
|
|
|
},
|
|
|
|
titleKey: isStreamMode
|
|
|
|
? 'liveStreaming.unavailableTitle'
|
|
|
|
: 'recording.unavailableTitle'
|
|
|
|
}));
|
|
|
|
break;
|
|
|
|
case JitsiMeetJS.constants.recording.error.RESOURCE_CONSTRAINT:
|
|
|
|
dispatch(showRecordingError({
|
|
|
|
descriptionKey: isStreamMode
|
|
|
|
? 'liveStreaming.busy'
|
|
|
|
: 'recording.busy',
|
|
|
|
titleKey: isStreamMode
|
|
|
|
? 'liveStreaming.busyTitle'
|
|
|
|
: 'recording.busyTitle'
|
|
|
|
}));
|
|
|
|
break;
|
2021-11-09 00:08:21 +00:00
|
|
|
case JitsiMeetJS.constants.recording.error.UNEXPECTED_REQUEST:
|
2021-11-09 18:58:49 +00:00
|
|
|
dispatch(showRecordingWarning({
|
|
|
|
descriptionKey: isStreamMode
|
2021-11-09 00:08:21 +00:00
|
|
|
? 'liveStreaming.sessionAlreadyActive'
|
2021-11-09 18:58:49 +00:00
|
|
|
: 'recording.sessionAlreadyActive',
|
|
|
|
titleKey: isStreamMode ? 'liveStreaming.inProgress' : 'recording.inProgress'
|
2021-11-09 00:08:21 +00:00
|
|
|
}));
|
|
|
|
break;
|
2018-06-14 09:15:36 +00:00
|
|
|
default:
|
|
|
|
dispatch(showRecordingError({
|
|
|
|
descriptionKey: isStreamMode
|
|
|
|
? 'liveStreaming.error'
|
|
|
|
: 'recording.error',
|
|
|
|
titleKey: isStreamMode
|
|
|
|
? 'liveStreaming.failedToStart'
|
|
|
|
: 'recording.failedToStart'
|
|
|
|
}));
|
|
|
|
break;
|
|
|
|
}
|
2021-03-23 16:35:46 +00:00
|
|
|
|
|
|
|
if (typeof APP !== 'undefined') {
|
|
|
|
APP.API.notifyRecordingStatusChanged(false, mode, error);
|
|
|
|
}
|
2018-06-14 09:15:36 +00:00
|
|
|
}
|