feat (screen-share) Added logs and emit iframe event for video and audio sharing (#12051)

This commit is contained in:
apetrus20
2022-08-23 15:17:18 +03:00
committed by GitHub
parent e458eed931
commit 11f6b442fe
4 changed files with 51 additions and 2 deletions

View File

@@ -1770,6 +1770,24 @@ class API {
});
}
/**
* Notify the external application that the audio or video is being shared by a participant.
*
* @param {string} mediaType - Whether the content which is being shared is audio or video.
* @param {string} value - Whether the sharing is playing, pause or stop (on audio there is only playing and stop).
* @param {string} participantId - Participant id of the participant which started or ended
* the video or audio sharing.
* @returns {void}
*/
notifyAudioOrVideoSharingToggled(mediaType, value, participantId) {
this._sendEvent({
name: 'audio-or-video-sharing-toggled',
mediaType,
value,
participantId
});
}
/**
* Disposes the allocated resources.
*