feat(external-api) Forward CONFERENCE_CREATED_TIMESTAMP to iframe

pull/14736/head jitsi-meet_9499
garysmith058 1 year ago committed by GitHub
parent 383b534753
commit 8f7ab33508
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      conference.js
  2. 15
      modules/API/API.js
  3. 1
      modules/API/external/external_api.js

@ -1637,7 +1637,11 @@ export default {
room.on(
JitsiConferenceEvents.CONFERENCE_CREATED_TIMESTAMP,
conferenceTimestamp => APP.store.dispatch(conferenceTimestampChanged(conferenceTimestamp)));
conferenceTimestamp => {
APP.store.dispatch(conferenceTimestampChanged(conferenceTimestamp));
APP.API.notifyConferenceCreatedTimestamp(conferenceTimestamp);
}
);
room.on(
JitsiConferenceEvents.DISPLAY_NAME_CHANGED,

@ -2138,6 +2138,21 @@ class API {
}
/**
* Notify external application (if API is enabled) the conference
* start time.
*
* @param {number} timestamp - Timestamp conference was created.
* @returns {void}
*/
notifyConferenceCreatedTimestamp(timestamp) {
this._sendEvent({
name: 'conference-created-timestamp',
timestamp
});
}
/**
* Notify the external application (if API is enabled) if the connection type changed.
*

@ -108,6 +108,7 @@ const events = {
'camera-error': 'cameraError',
'chat-updated': 'chatUpdated',
'compute-pressure-changed': 'computePressureChanged',
'conference-created-timestamp': 'conferenceCreatedTimestamp',
'content-sharing-participants-changed': 'contentSharingParticipantsChanged',
'data-channel-closed': 'dataChannelClosed',
'data-channel-opened': 'dataChannelOpened',

Loading…
Cancel
Save