modified lib-jitsi-meet dev repo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SignalingEvents.ts 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. export enum SignalingEvents {
  2. /**
  3. * Event triggered when participant's muted status changes.
  4. *
  5. * @param {string} endpointId the track owner's identifier (MUC nickname)
  6. * @param {MediaType} mediaType "audio" or "video"
  7. * @param {boolean} isMuted the new muted state
  8. */
  9. PEER_MUTED_CHANGED = 'signaling.peerMuted',
  10. /**
  11. * Event triggered when participant's video type changes.
  12. *
  13. * @param {string} endpointId the video owner's ID (MUC nickname)
  14. * @param {VideoType} videoType the new value
  15. */
  16. PEER_VIDEO_TYPE_CHANGED = 'signaling.peerVideoType',
  17. /**
  18. * Event triggered when source's muted status changes.
  19. *
  20. * @param {string} sourceName - The name of the source.
  21. * @param {boolean} isMuted - The new muted state.
  22. */
  23. SOURCE_MUTED_CHANGED = 'signaling.sourceMuted',
  24. /**
  25. * Event triggered when source's video type changes.
  26. *
  27. * @param {string} source - The name of the source.
  28. * @param {VideoType} videoType - The new value.
  29. */
  30. SOURCE_VIDEO_TYPE_CHANGED = 'signaling.sourceVideoType'
  31. }
  32. // exported for backward compatibility
  33. export const PEER_MUTED_CHANGED = SignalingEvents.PEER_MUTED_CHANGED;
  34. export const PEER_VIDEO_TYPE_CHANGED = SignalingEvents.PEER_VIDEO_TYPE_CHANGED;
  35. export const SOURCE_MUTED_CHANGED = SignalingEvents.SOURCE_MUTED_CHANGED;
  36. export const SOURCE_VIDEO_TYPE_CHANGED = SignalingEvents.SOURCE_VIDEO_TYPE_CHANGED;