瀏覽代碼

ref(RTCEvents) Fix comments

dev0
Jaya Allamsetty 6 月之前
父節點
當前提交
0a3ce2be7e
共有 1 個文件被更改,包括 38 次插入13 次删除
  1. 38
    13
      service/RTC/RTCEvents.ts

+ 38
- 13
service/RTC/RTCEvents.ts 查看文件

@@ -1,10 +1,12 @@
1 1
 export enum RTCEvents {
2
-
2
+    /**
3
+     * Designates an event indicating that the audio output device has changed.
4
+     */
3 5
     AUDIO_OUTPUT_DEVICE_CHANGED = 'rtc.audio_output_device_changed',
4 6
 
5 7
     /**
6
-     * Designates an event indicating that some received audio SSRCs will now map to
7
-     * new remote sources.
8
+     * Designates an event indicating that some audio SSRCs that have already been signaled will now map to new remote
9
+     * sources.
8 10
      */
9 11
     AUDIO_SSRCS_REMAPPED = 'rtc.audio_ssrcs_remapped',
10 12
 
@@ -17,10 +19,25 @@ export enum RTCEvents {
17 19
      * Indicates error while create offer call.
18 20
      */
19 21
     CREATE_OFFER_FAILED = 'rtc.create_offer_failed',
22
+
23
+    /**
24
+     * Indicates that the data channel has been closed.
25
+     */
20 26
     DATA_CHANNEL_CLOSED = 'rtc.data_channel_closed',
27
+
28
+    /**
29
+     * Indicates that the data channel has been opened.
30
+     */
21 31
     DATA_CHANNEL_OPEN = 'rtc.data_channel_open',
32
+
33
+    /**
34
+     * Indicates that the list with available devices is now available.
35
+     */
22 36
     DEVICE_LIST_AVAILABLE = 'rtc.device_list_available',
23 37
 
38
+    /**
39
+     * Indicates that the list with available devices has changed.
40
+     */
24 41
     DEVICE_LIST_CHANGED = 'rtc.device_list_changed',
25 42
 
26 43
     /**
@@ -28,13 +45,18 @@ export enum RTCEvents {
28 45
      */
29 46
     DEVICE_LIST_WILL_CHANGE = 'rtc.device_list_will_change',
30 47
 
48
+    /**
49
+     * Indicates that the dominant speaker has changed.
50
+     */
31 51
     DOMINANT_SPEAKER_CHANGED = 'rtc.dominant_speaker_changed',
32 52
 
53
+    /**
54
+     * Indicates that the connection status of the endpoint has changed.
55
+     */
33 56
     ENDPOINT_CONN_STATUS_CHANGED = 'rtc.endpoint_conn_status_changed',
34 57
 
35 58
     /**
36
-     * Indicates that a message from another participant is received on
37
-     * data channel.
59
+     * Indicates that a message from another participant is received on data channel.
38 60
      */
39 61
     ENDPOINT_MESSAGE_RECEIVED = 'rtc.endpoint_message_received',
40 62
 
@@ -43,11 +65,13 @@ export enum RTCEvents {
43 65
      */
44 66
     ENDPOINT_STATS_RECEIVED = 'rtc.endpoint_stats_received',
45 67
 
68
+    /**
69
+     * Indicates that the list of sources currently being forwarded by the bridge has changed.
70
+     */
46 71
     FORWARDED_SOURCES_CHANGED = 'rtc.forwarded_sources_changed',
47 72
 
48 73
     /**
49
-     * Event emitted when {@link RTC.setLastN} method is called to update with
50
-     * the new value set.
74
+     * Event emitted when {@link RTC.setLastN} method is called to update with the new value set.
51 75
      * The first argument is the value passed to {@link RTC.setLastN}.
52 76
      */
53 77
     LASTN_VALUE_CHANGED = 'rtc.lastn_value_changed',
@@ -94,14 +118,15 @@ export enum RTCEvents {
94 118
     REMOTE_TRACK_UNMUTE = 'rtc.remote_track_unmute',
95 119
 
96 120
     /**
97
-     * Designates an event indicating that the local ICE username fragment of
98
-     * the jingle session has changed.
99
-     * The first argument of the vent is <tt>TraceablePeerConnection</tt> which
100
-     * is the source of the event.
121
+     * Designates an event indicating that the local ICE username fragment of the jingle session has changed.
122
+     * The first argument of the vent is <tt>TraceablePeerConnection</tt> which is the source of the event.
101 123
      * The second argument is the actual "ufrag" string.
102 124
      */
103 125
     REMOTE_UFRAG_CHANGED = 'rtc.remote_ufrag_changed',
104 126
 
127
+    /**
128
+     * Indicates that sender constraints requested by the bridge for this endpoint have changed.
129
+     */
105 130
     SENDER_VIDEO_CONSTRAINTS_CHANGED = 'rtc.sender_video_constraints_changed',
106 131
 
107 132
     /**
@@ -115,8 +140,8 @@ export enum RTCEvents {
115 140
     SET_REMOTE_DESCRIPTION_FAILED = 'rtc.set_remote_description_failed',
116 141
 
117 142
     /**
118
-     * Designates an event indicating that some received video SSRCs will now map to
119
-     * new remote sources.
143
+     * Designates an event indicating that some video SSRCs that have already been signaled will now map to new remote
144
+     * sources.
120 145
      */
121 146
     VIDEO_SSRCS_REMAPPED = 'rtc.video_ssrcs_remapped'
122 147
 }

Loading…
取消
儲存