feat(external-api): Add recording download link available event (#10229)

pull/10232/head jitsi-meet_6503
Horatiu Muresan 4 years ago committed by GitHub
parent 81dfbaeb81
commit e273a05dd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      modules/API/API.js
  2. 1
      modules/API/external/external_api.js
  3. 6
      react/features/recording/actions.any.js

@ -1462,6 +1462,20 @@ class API {
});
}
/**
* Notify external application (if API is enabled) that the current recording link is
* available.
*
* @param {string} link - The recording download link.
* @returns {void}
*/
notifyRecordingLinkAvailable(link: string) {
this._sendEvent({
name: 'recording-link-available',
link
});
}
/**
* Notify external application (if API is enabled) that a participant is knocking in the lobby.
*

@ -112,6 +112,7 @@ const events = {
'password-required': 'passwordRequired',
'proxy-connection-event': 'proxyConnectionEvent',
'raise-hand-updated': 'raiseHandUpdated',
'recording-link-available': 'recordingLinkAvailable',
'recording-status-changed': 'recordingStatusChanged',
'video-ready-to-close': 'readyToClose',
'video-conference-joined': 'videoConferenceJoined',

@ -22,6 +22,8 @@ import {
import { getRecordingLink, getResourceId, isSavingRecordingOnDropbox } from './functions';
import logger from './logger';
declare var APP: Object;
/**
* Clears the data of every recording sessions.
*
@ -188,6 +190,10 @@ export function showStartedRecordingNotification(
try {
const link = await getRecordingLink(recordingSharingUrl, sessionId, region, tenant);
if (typeof APP === 'object') {
APP.API.notifyRecordingLinkAvailable(link);
}
// add the option to copy recording link
dialogProps.customActionNameKey = 'recording.copyLink';
dialogProps.customActionHandler = () => copyText(link);

Loading…
Cancel
Save