forked from jitsi/lib-jitsi-meet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ts) TypeScript enum for SignalingEvents
- Loading branch information
1 parent
74e7e03
commit c33f7c2
Showing
3 changed files
with
37 additions
and
27 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export enum SignalingEvents { | ||
/** | ||
* Event triggered when participant's muted status changes. | ||
* @param {string} endpointId the track owner's identifier (MUC nickname) | ||
* @param {MediaType} mediaType "audio" or "video" | ||
* @param {boolean} isMuted the new muted state | ||
*/ | ||
PEER_MUTED_CHANGED = 'signaling.peerMuted', | ||
|
||
/** | ||
* Event triggered when participant's video type changes. | ||
* @param {string} endpointId the video owner's ID (MUC nickname) | ||
* @param {VideoType} videoType the new value | ||
*/ | ||
PEER_VIDEO_TYPE_CHANGED = 'signaling.peerVideoType' | ||
} | ||
|
||
// exported for backward compatibility | ||
export const PEER_MUTED_CHANGED = SignalingEvents.PEER_MUTED_CHANGED; | ||
export const PEER_VIDEO_TYPE_CHANGED = SignalingEvents.PEER_VIDEO_TYPE_CHANGED; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
/** | ||
* Event triggered when participant's muted status changes. | ||
* @param {string} endpointId the track owner's identifier (MUC nickname) | ||
* @param {MediaType} mediaType "audio" or "video" | ||
* @param {boolean} isMuted the new muted state | ||
*/ | ||
export const PEER_MUTED_CHANGED: "signaling.peerMuted"; | ||
/** | ||
* Event triggered when participant's video type changes. | ||
* @param {string} endpointId the video owner's ID (MUC nickname) | ||
* @param {VideoType} videoType the new value | ||
*/ | ||
export const PEER_VIDEO_TYPE_CHANGED: "signaling.peerVideoType"; | ||
export declare enum SignalingEvents { | ||
/** | ||
* Event triggered when participant's muted status changes. | ||
* @param {string} endpointId the track owner's identifier (MUC nickname) | ||
* @param {MediaType} mediaType "audio" or "video" | ||
* @param {boolean} isMuted the new muted state | ||
*/ | ||
PEER_MUTED_CHANGED = "signaling.peerMuted", | ||
/** | ||
* Event triggered when participant's video type changes. | ||
* @param {string} endpointId the video owner's ID (MUC nickname) | ||
* @param {VideoType} videoType the new value | ||
*/ | ||
PEER_VIDEO_TYPE_CHANGED = "signaling.peerVideoType" | ||
} | ||
export declare const PEER_MUTED_CHANGED = SignalingEvents.PEER_MUTED_CHANGED; | ||
export declare const PEER_VIDEO_TYPE_CHANGED = SignalingEvents.PEER_VIDEO_TYPE_CHANGED; |