feat(api): add notification for when filmstrip gets toggled (#3974)
This commit is contained in:
parent
2af1e8da95
commit
22277ad799
|
@ -214,6 +214,12 @@ changes. The listener will receive an object with the following structure:
|
||||||
"email": email // the new email
|
"email": email // the new email
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
* **filmstripDisplayChanged** - event notifications about the visibility of the filmstrip being updated.
|
||||||
|
```javascript
|
||||||
|
{
|
||||||
|
"visible": visible, // Whether or not the filmstrip is displayed or hidden.
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
* **participantJoined** - event notifications about new participants who join the room. The listener will receive an object with the following structure:
|
* **participantJoined** - event notifications about new participants who join the room. The listener will receive an object with the following structure:
|
||||||
```javascript
|
```javascript
|
||||||
|
|
|
@ -551,6 +551,21 @@ class API {
|
||||||
this._sendEvent({ name: 'feedback-prompt-displayed' });
|
this._sendEvent({ name: 'feedback-prompt-displayed' });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Notify external application (if API is enabled) that the display
|
||||||
|
* configuration of the filmstrip has been changed.
|
||||||
|
*
|
||||||
|
* @param {boolean} visible - Whether or not the filmstrip has been set to
|
||||||
|
* be displayed or hidden.
|
||||||
|
* @returns {void}
|
||||||
|
*/
|
||||||
|
notifyFilmstripDisplayChanged(visible: boolean) {
|
||||||
|
this._sendEvent({
|
||||||
|
name: 'filmstrip-display-changed',
|
||||||
|
visible
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notify external application (if API is enabled) that the screen sharing
|
* Notify external application (if API is enabled) that the screen sharing
|
||||||
* has been turned on/off.
|
* has been turned on/off.
|
||||||
|
|
|
@ -44,6 +44,7 @@ const events = {
|
||||||
'email-change': 'emailChange',
|
'email-change': 'emailChange',
|
||||||
'feedback-submitted': 'feedbackSubmitted',
|
'feedback-submitted': 'feedbackSubmitted',
|
||||||
'feedback-prompt-displayed': 'feedbackPromptDisplayed',
|
'feedback-prompt-displayed': 'feedbackPromptDisplayed',
|
||||||
|
'filmstrip-display-changed': 'filmstripDisplayChanged',
|
||||||
'incoming-message': 'incomingMessage',
|
'incoming-message': 'incomingMessage',
|
||||||
'outgoing-message': 'outgoingMessage',
|
'outgoing-message': 'outgoingMessage',
|
||||||
'participant-joined': 'participantJoined',
|
'participant-joined': 'participantJoined',
|
||||||
|
|
|
@ -82,6 +82,7 @@ MiddlewareRegistry.register(store => next => action => {
|
||||||
case SET_FILMSTRIP_VISIBLE:
|
case SET_FILMSTRIP_VISIBLE:
|
||||||
VideoLayout.resizeVideoArea(true, false);
|
VideoLayout.resizeVideoArea(true, false);
|
||||||
APP.UI.emitEvent(UIEvents.TOGGLED_FILMSTRIP, action.visible);
|
APP.UI.emitEvent(UIEvents.TOGGLED_FILMSTRIP, action.visible);
|
||||||
|
APP.API.notifyFilmstripDisplayChanged(action.visible);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SET_TILE_VIEW:
|
case SET_TILE_VIEW:
|
||||||
|
|
Loading…
Reference in New Issue