您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

SignalingEvents.ts 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 presence for a source is received.
  26. *
  27. * @param {string} sourceName - The name of the source.
  28. * @param {string} endpointId - The endpoint id.
  29. * @param {boolean} muted - The new muted state.
  30. * @param {string} videoType - The video type of the source.
  31. */
  32. SOURCE_UPDATED = 'signaling.sourceUpdated',
  33. /**
  34. * Event triggered when source's video type changes.
  35. *
  36. * @param {string} source - The name of the source.
  37. * @param {VideoType} videoType - The new value.
  38. */
  39. SOURCE_VIDEO_TYPE_CHANGED = 'signaling.sourceVideoType'
  40. }
  41. // exported for backward compatibility
  42. export const PEER_MUTED_CHANGED = SignalingEvents.PEER_MUTED_CHANGED;
  43. export const PEER_VIDEO_TYPE_CHANGED = SignalingEvents.PEER_VIDEO_TYPE_CHANGED;
  44. export const SOURCE_MUTED_CHANGED = SignalingEvents.SOURCE_MUTED_CHANGED;
  45. export const SOURCE_UPDATED = SignalingEvents.SOURCE_UPDATED;
  46. export const SOURCE_VIDEO_TYPE_CHANGED = SignalingEvents.SOURCE_VIDEO_TYPE_CHANGED;