소스 검색

feat(ts) TypeScript version of rtcevents

tags/v0.0.2
Gary Hunt 3 년 전
부모
커밋
c9f1dbb53b
No account linked to committer's email address
4개의 변경된 파일299개의 추가작업 그리고 144개의 파일을 삭제
  1. 0
    116
      service/RTC/RTCEvents.js
  2. 32
    1
      service/RTC/RTCEvents.spec.ts
  3. 147
    0
      service/RTC/RTCEvents.ts
  4. 120
    27
      types/auto/service/RTC/RTCEvents.d.ts

+ 0
- 116
service/RTC/RTCEvents.js 파일 보기

@@ -1,116 +0,0 @@
1
-const RTCEvents = {
2
-    /**
3
-     * Indicates error while create answer call.
4
-     */
5
-    CREATE_ANSWER_FAILED: 'rtc.create_answer_failed',
6
-
7
-    /**
8
-     * Indicates error while create offer call.
9
-     */
10
-    CREATE_OFFER_FAILED: 'rtc.create_offer_failed',
11
-    DATA_CHANNEL_OPEN: 'rtc.data_channel_open',
12
-    ENDPOINT_CONN_STATUS_CHANGED: 'rtc.endpoint_conn_status_changed',
13
-    DOMINANT_SPEAKER_CHANGED: 'rtc.dominant_speaker_changed',
14
-    LASTN_ENDPOINT_CHANGED: 'rtc.lastn_endpoint_changed',
15
-    FORWARDED_SOURCES_CHANGED: 'rtc.forwarded_sources_changed',
16
-
17
-    /**
18
-     * Event emitted when the user granted/blocked a permission for the camera / mic.
19
-     * Used to keep track of the granted permissions on browsers which don't
20
-     * support the Permissions API.
21
-     */
22
-    PERMISSIONS_CHANGED: 'rtc.permissions_changed',
23
-
24
-    SENDER_VIDEO_CONSTRAINTS_CHANGED: 'rtc.sender_video_constraints_changed',
25
-
26
-    /**
27
-     * Event emitted when {@link RTC.setLastN} method is called to update with
28
-     * the new value set.
29
-     * The first argument is the value passed to {@link RTC.setLastN}.
30
-     */
31
-    LASTN_VALUE_CHANGED: 'rtc.lastn_value_changed',
32
-
33
-    /**
34
-     * Event emitted when ssrc for a local track is extracted and stored
35
-     * in {@link TraceablePeerConnection}.
36
-     * @param {JitsiLocalTrack} track which ssrc was updated
37
-     * @param {string} ssrc that was stored
38
-     */
39
-    LOCAL_TRACK_SSRC_UPDATED: 'rtc.local_track_ssrc_updated',
40
-
41
-    /**
42
-     * The max enabled resolution of a local video track was changed.
43
-     */
44
-    LOCAL_TRACK_MAX_ENABLED_RESOLUTION_CHANGED: 'rtc.local_track_max_enabled_resolution_changed',
45
-
46
-    TRACK_ATTACHED: 'rtc.track_attached',
47
-
48
-    /**
49
-     * Event fired when we remote track is added to the conference.
50
-     * 1st event argument is the added <tt>JitsiRemoteTrack</tt> instance.
51
-     **/
52
-    REMOTE_TRACK_ADDED: 'rtc.remote_track_added',
53
-
54
-    // FIXME get rid of this event in favour of NO_DATA_FROM_SOURCE event
55
-    // (currently implemented for local tracks only)
56
-    REMOTE_TRACK_MUTE: 'rtc.remote_track_mute',
57
-
58
-    /**
59
-     * Indicates that the remote track has been removed from the conference.
60
-     * 1st event argument is the removed {@link JitsiRemoteTrack} instance.
61
-     */
62
-    REMOTE_TRACK_REMOVED: 'rtc.remote_track_removed',
63
-
64
-    // FIXME get rid of this event in favour of NO_DATA_FROM_SOURCE event
65
-    // (currently implemented for local tracks only)
66
-    REMOTE_TRACK_UNMUTE: 'rtc.remote_track_unmute',
67
-
68
-    /**
69
-     * Indicates error while set local description.
70
-     */
71
-    SET_LOCAL_DESCRIPTION_FAILED: 'rtc.set_local_description_failed',
72
-
73
-    /**
74
-     * Indicates error while set remote description.
75
-     */
76
-    SET_REMOTE_DESCRIPTION_FAILED: 'rtc.set_remote_description_failed',
77
-    AUDIO_OUTPUT_DEVICE_CHANGED: 'rtc.audio_output_device_changed',
78
-    DEVICE_LIST_CHANGED: 'rtc.device_list_changed',
79
-
80
-    /**
81
-     * Indicates that the list with available devices will change.
82
-     */
83
-    DEVICE_LIST_WILL_CHANGE: 'rtc.device_list_will_change',
84
-    DEVICE_LIST_AVAILABLE: 'rtc.device_list_available',
85
-
86
-    /**
87
-     * Indicates that a message from another participant is received on
88
-     * data channel.
89
-     */
90
-    ENDPOINT_MESSAGE_RECEIVED: 'rtc.endpoint_message_received',
91
-
92
-    /**
93
-     * Indicates that the remote endpoint stats have been received on data channnel.
94
-     */
95
-    ENDPOINT_STATS_RECEIVED: 'rtc.endpoint_stats_received',
96
-
97
-    /**
98
-     * Designates an event indicating that the local ICE username fragment of
99
-     * the jingle session has changed.
100
-     * The first argument of the vent is <tt>TraceablePeerConnection</tt> which
101
-     * is the source of the event.
102
-     * The second argument is the actual "ufrag" string.
103
-     */
104
-    LOCAL_UFRAG_CHANGED: 'rtc.local_ufrag_changed',
105
-
106
-    /**
107
-     * Designates an event indicating that the local ICE username fragment of
108
-     * the jingle session has changed.
109
-     * The first argument of the vent is <tt>TraceablePeerConnection</tt> which
110
-     * is the source of the event.
111
-     * The second argument is the actual "ufrag" string.
112
-     */
113
-    REMOTE_UFRAG_CHANGED: 'rtc.remote_ufrag_changed'
114
-};
115
-
116
-module.exports = RTCEvents;

+ 32
- 1
service/RTC/RTCEvents.spec.ts 파일 보기

@@ -32,8 +32,9 @@ describe( "/service/RTC/RTCEvents members", () => {
32 32
         LOCAL_UFRAG_CHANGED,
33 33
         REMOTE_UFRAG_CHANGED,
34 34
         RTCEvents,
35
+        default: RTCEventsDefault,
35 36
         ...others
36
-    } = exported as any; // TODO: remove cast after typescript conversion
37
+    } = exported;
37 38
 
38 39
     it( "known members", () => {
39 40
         expect( CREATE_ANSWER_FAILED ).toBe( 'rtc.create_answer_failed' );
@@ -63,6 +64,7 @@ describe( "/service/RTC/RTCEvents members", () => {
63 64
         expect( ENDPOINT_STATS_RECEIVED ).toBe( 'rtc.endpoint_stats_received' );
64 65
         expect( LOCAL_UFRAG_CHANGED ).toBe( 'rtc.local_ufrag_changed' );
65 66
         expect( REMOTE_UFRAG_CHANGED ).toBe( 'rtc.remote_ufrag_changed' );
67
+
66 68
         if ( RTCEvents ) {
67 69
             expect( RTCEvents.CREATE_ANSWER_FAILED ).toBe( 'rtc.create_answer_failed' );
68 70
             expect( RTCEvents.CREATE_OFFER_FAILED ).toBe( 'rtc.create_offer_failed' );
@@ -91,6 +93,35 @@ describe( "/service/RTC/RTCEvents members", () => {
91 93
             expect( RTCEvents.LOCAL_UFRAG_CHANGED ).toBe( 'rtc.local_ufrag_changed' );
92 94
             expect( RTCEvents.REMOTE_UFRAG_CHANGED ).toBe( 'rtc.remote_ufrag_changed' );
93 95
         }
96
+
97
+        if ( RTCEventsDefault ) {
98
+            expect( RTCEventsDefault.CREATE_ANSWER_FAILED ).toBe( 'rtc.create_answer_failed' );
99
+            expect( RTCEventsDefault.CREATE_OFFER_FAILED ).toBe( 'rtc.create_offer_failed' );
100
+            expect( RTCEventsDefault.DATA_CHANNEL_OPEN ).toBe( 'rtc.data_channel_open' );
101
+            expect( RTCEventsDefault.ENDPOINT_CONN_STATUS_CHANGED ).toBe( 'rtc.endpoint_conn_status_changed' );
102
+            expect( RTCEventsDefault.DOMINANT_SPEAKER_CHANGED ).toBe( 'rtc.dominant_speaker_changed' );
103
+            expect( RTCEventsDefault.LASTN_ENDPOINT_CHANGED ).toBe( 'rtc.lastn_endpoint_changed' );
104
+            expect( RTCEventsDefault.PERMISSIONS_CHANGED ).toBe( 'rtc.permissions_changed' );
105
+            expect( RTCEventsDefault.SENDER_VIDEO_CONSTRAINTS_CHANGED ).toBe( 'rtc.sender_video_constraints_changed' );
106
+            expect( RTCEventsDefault.LASTN_VALUE_CHANGED ).toBe( 'rtc.lastn_value_changed' );
107
+            expect( RTCEventsDefault.LOCAL_TRACK_SSRC_UPDATED ).toBe( 'rtc.local_track_ssrc_updated' );
108
+            expect( RTCEventsDefault.LOCAL_TRACK_MAX_ENABLED_RESOLUTION_CHANGED ).toBe( 'rtc.local_track_max_enabled_resolution_changed' );
109
+            expect( RTCEventsDefault.TRACK_ATTACHED ).toBe( 'rtc.track_attached' );
110
+            expect( RTCEventsDefault.REMOTE_TRACK_ADDED ).toBe( 'rtc.remote_track_added' );
111
+            expect( RTCEventsDefault.REMOTE_TRACK_MUTE ).toBe( 'rtc.remote_track_mute' );
112
+            expect( RTCEventsDefault.REMOTE_TRACK_REMOVED ).toBe( 'rtc.remote_track_removed' );
113
+            expect( RTCEventsDefault.REMOTE_TRACK_UNMUTE ).toBe( 'rtc.remote_track_unmute' );
114
+            expect( RTCEventsDefault.SET_LOCAL_DESCRIPTION_FAILED ).toBe( 'rtc.set_local_description_failed' );
115
+            expect( RTCEventsDefault.SET_REMOTE_DESCRIPTION_FAILED ).toBe( 'rtc.set_remote_description_failed' );
116
+            expect( RTCEventsDefault.AUDIO_OUTPUT_DEVICE_CHANGED ).toBe( 'rtc.audio_output_device_changed' );
117
+            expect( RTCEventsDefault.DEVICE_LIST_CHANGED ).toBe( 'rtc.device_list_changed' );
118
+            expect( RTCEventsDefault.DEVICE_LIST_WILL_CHANGE ).toBe( 'rtc.device_list_will_change' );
119
+            expect( RTCEventsDefault.DEVICE_LIST_AVAILABLE ).toBe( 'rtc.device_list_available' );
120
+            expect( RTCEventsDefault.ENDPOINT_MESSAGE_RECEIVED ).toBe( 'rtc.endpoint_message_received' );
121
+            expect( RTCEventsDefault.ENDPOINT_STATS_RECEIVED ).toBe( 'rtc.endpoint_stats_received' );
122
+            expect( RTCEventsDefault.LOCAL_UFRAG_CHANGED ).toBe( 'rtc.local_ufrag_changed' );
123
+            expect( RTCEventsDefault.REMOTE_UFRAG_CHANGED ).toBe( 'rtc.remote_ufrag_changed' );
124
+        }
94 125
     } );
95 126
 
96 127
     it( "unknown members", () => {

+ 147
- 0
service/RTC/RTCEvents.ts 파일 보기

@@ -0,0 +1,147 @@
1
+export enum RTCEvents {
2
+    /**
3
+     * Indicates error while create answer call.
4
+     */
5
+    CREATE_ANSWER_FAILED = 'rtc.create_answer_failed',
6
+
7
+    /**
8
+     * Indicates error while create offer call.
9
+     */
10
+    CREATE_OFFER_FAILED = 'rtc.create_offer_failed',
11
+    DATA_CHANNEL_OPEN = 'rtc.data_channel_open',
12
+    ENDPOINT_CONN_STATUS_CHANGED = 'rtc.endpoint_conn_status_changed',
13
+    DOMINANT_SPEAKER_CHANGED = 'rtc.dominant_speaker_changed',
14
+    LASTN_ENDPOINT_CHANGED = 'rtc.lastn_endpoint_changed',
15
+    FORWARDED_SOURCES_CHANGED = 'rtc.forwarded_sources_changed',
16
+
17
+    /**
18
+     * Event emitted when the user granted/blocked a permission for the camera / mic.
19
+     * Used to keep track of the granted permissions on browsers which don't
20
+     * support the Permissions API.
21
+     */
22
+    PERMISSIONS_CHANGED = 'rtc.permissions_changed',
23
+
24
+    SENDER_VIDEO_CONSTRAINTS_CHANGED = 'rtc.sender_video_constraints_changed',
25
+
26
+    /**
27
+     * Event emitted when {@link RTC.setLastN} method is called to update with
28
+     * the new value set.
29
+     * The first argument is the value passed to {@link RTC.setLastN}.
30
+     */
31
+    LASTN_VALUE_CHANGED = 'rtc.lastn_value_changed',
32
+
33
+    /**
34
+     * Event emitted when ssrc for a local track is extracted and stored
35
+     * in {@link TraceablePeerConnection}.
36
+     * @param {JitsiLocalTrack} track which ssrc was updated
37
+     * @param {string} ssrc that was stored
38
+     */
39
+    LOCAL_TRACK_SSRC_UPDATED = 'rtc.local_track_ssrc_updated',
40
+
41
+    /**
42
+     * The max enabled resolution of a local video track was changed.
43
+     */
44
+    LOCAL_TRACK_MAX_ENABLED_RESOLUTION_CHANGED = 'rtc.local_track_max_enabled_resolution_changed',
45
+
46
+    TRACK_ATTACHED = 'rtc.track_attached',
47
+
48
+    /**
49
+     * Event fired when we remote track is added to the conference.
50
+     * 1st event argument is the added <tt>JitsiRemoteTrack</tt> instance.
51
+     **/
52
+    REMOTE_TRACK_ADDED = 'rtc.remote_track_added',
53
+
54
+    // FIXME get rid of this event in favour of NO_DATA_FROM_SOURCE event
55
+    // (currently implemented for local tracks only)
56
+    REMOTE_TRACK_MUTE = 'rtc.remote_track_mute',
57
+
58
+    /**
59
+     * Indicates that the remote track has been removed from the conference.
60
+     * 1st event argument is the removed {@link JitsiRemoteTrack} instance.
61
+     */
62
+    REMOTE_TRACK_REMOVED = 'rtc.remote_track_removed',
63
+
64
+    // FIXME get rid of this event in favour of NO_DATA_FROM_SOURCE event
65
+    // (currently implemented for local tracks only)
66
+    REMOTE_TRACK_UNMUTE = 'rtc.remote_track_unmute',
67
+
68
+    /**
69
+     * Indicates error while set local description.
70
+     */
71
+    SET_LOCAL_DESCRIPTION_FAILED = 'rtc.set_local_description_failed',
72
+
73
+    /**
74
+     * Indicates error while set remote description.
75
+     */
76
+    SET_REMOTE_DESCRIPTION_FAILED = 'rtc.set_remote_description_failed',
77
+    AUDIO_OUTPUT_DEVICE_CHANGED = 'rtc.audio_output_device_changed',
78
+    DEVICE_LIST_CHANGED = 'rtc.device_list_changed',
79
+
80
+    /**
81
+     * Indicates that the list with available devices will change.
82
+     */
83
+    DEVICE_LIST_WILL_CHANGE = 'rtc.device_list_will_change',
84
+    DEVICE_LIST_AVAILABLE = 'rtc.device_list_available',
85
+
86
+    /**
87
+     * Indicates that a message from another participant is received on
88
+     * data channel.
89
+     */
90
+    ENDPOINT_MESSAGE_RECEIVED = 'rtc.endpoint_message_received',
91
+
92
+    /**
93
+     * Indicates that the remote endpoint stats have been received on data channel.
94
+     */
95
+    ENDPOINT_STATS_RECEIVED = 'rtc.endpoint_stats_received',
96
+
97
+    /**
98
+     * Designates an event indicating that the local ICE username fragment of
99
+     * the jingle session has changed.
100
+     * The first argument of the vent is <tt>TraceablePeerConnection</tt> which
101
+     * is the source of the event.
102
+     * The second argument is the actual "ufrag" string.
103
+     */
104
+    LOCAL_UFRAG_CHANGED = 'rtc.local_ufrag_changed',
105
+
106
+    /**
107
+     * Designates an event indicating that the local ICE username fragment of
108
+     * the jingle session has changed.
109
+     * The first argument of the vent is <tt>TraceablePeerConnection</tt> which
110
+     * is the source of the event.
111
+     * The second argument is the actual "ufrag" string.
112
+     */
113
+    REMOTE_UFRAG_CHANGED = 'rtc.remote_ufrag_changed'
114
+};
115
+
116
+export const CREATE_ANSWER_FAILED = RTCEvents.CREATE_ANSWER_FAILED;
117
+export const CREATE_OFFER_FAILED = RTCEvents.CREATE_OFFER_FAILED;
118
+export const DATA_CHANNEL_OPEN = RTCEvents.DATA_CHANNEL_OPEN;
119
+export const ENDPOINT_CONN_STATUS_CHANGED = RTCEvents.ENDPOINT_CONN_STATUS_CHANGED;
120
+export const DOMINANT_SPEAKER_CHANGED = RTCEvents.DOMINANT_SPEAKER_CHANGED;
121
+export const LASTN_ENDPOINT_CHANGED = RTCEvents.LASTN_ENDPOINT_CHANGED;
122
+export const FORWARDED_SOURCES_CHANGED = RTCEvents.FORWARDED_SOURCES_CHANGED;
123
+export const PERMISSIONS_CHANGED = RTCEvents.PERMISSIONS_CHANGED;
124
+export const SENDER_VIDEO_CONSTRAINTS_CHANGED = RTCEvents.SENDER_VIDEO_CONSTRAINTS_CHANGED;
125
+export const LASTN_VALUE_CHANGED = RTCEvents.LASTN_VALUE_CHANGED;
126
+export const LOCAL_TRACK_SSRC_UPDATED = RTCEvents.LOCAL_TRACK_SSRC_UPDATED;
127
+export const LOCAL_TRACK_MAX_ENABLED_RESOLUTION_CHANGED = RTCEvents.LOCAL_TRACK_MAX_ENABLED_RESOLUTION_CHANGED;
128
+export const TRACK_ATTACHED = RTCEvents.TRACK_ATTACHED;
129
+export const REMOTE_TRACK_ADDED = RTCEvents.REMOTE_TRACK_ADDED;
130
+export const REMOTE_TRACK_MUTE = RTCEvents.REMOTE_TRACK_MUTE;
131
+export const REMOTE_TRACK_REMOVED = RTCEvents.REMOTE_TRACK_REMOVED;
132
+export const REMOTE_TRACK_UNMUTE = RTCEvents.REMOTE_TRACK_UNMUTE;
133
+export const SET_LOCAL_DESCRIPTION_FAILED = RTCEvents.SET_LOCAL_DESCRIPTION_FAILED;
134
+export const SET_REMOTE_DESCRIPTION_FAILED = RTCEvents.SET_REMOTE_DESCRIPTION_FAILED;
135
+export const AUDIO_OUTPUT_DEVICE_CHANGED = RTCEvents.AUDIO_OUTPUT_DEVICE_CHANGED;
136
+export const DEVICE_LIST_CHANGED = RTCEvents.DEVICE_LIST_CHANGED;
137
+export const DEVICE_LIST_WILL_CHANGE = RTCEvents.DEVICE_LIST_WILL_CHANGE;
138
+export const DEVICE_LIST_AVAILABLE = RTCEvents.DEVICE_LIST_AVAILABLE;
139
+export const ENDPOINT_MESSAGE_RECEIVED = RTCEvents.ENDPOINT_MESSAGE_RECEIVED;
140
+export const ENDPOINT_STATS_RECEIVED = RTCEvents.ENDPOINT_STATS_RECEIVED;
141
+export const LOCAL_UFRAG_CHANGED = RTCEvents.LOCAL_UFRAG_CHANGED;
142
+export const REMOTE_UFRAG_CHANGED = RTCEvents.REMOTE_UFRAG_CHANGED;
143
+
144
+// TODO: this was a pre-ES6 module using module.exports = RTCEvents which doesn't translate well
145
+// it is used in a number of places and should be updated to use the named export
146
+
147
+export default RTCEvents;

+ 120
- 27
types/auto/service/RTC/RTCEvents.d.ts 파일 보기

@@ -1,27 +1,120 @@
1
-export const CREATE_ANSWER_FAILED: string;
2
-export const CREATE_OFFER_FAILED: string;
3
-export const DATA_CHANNEL_OPEN: string;
4
-export const ENDPOINT_CONN_STATUS_CHANGED: string;
5
-export const DOMINANT_SPEAKER_CHANGED: string;
6
-export const LASTN_ENDPOINT_CHANGED: string;
7
-export const FORWARDED_SOURCES_CHANGED: string;
8
-export const PERMISSIONS_CHANGED: string;
9
-export const SENDER_VIDEO_CONSTRAINTS_CHANGED: string;
10
-export const LASTN_VALUE_CHANGED: string;
11
-export const LOCAL_TRACK_SSRC_UPDATED: string;
12
-export const LOCAL_TRACK_MAX_ENABLED_RESOLUTION_CHANGED: string;
13
-export const TRACK_ATTACHED: string;
14
-export const REMOTE_TRACK_ADDED: string;
15
-export const REMOTE_TRACK_MUTE: string;
16
-export const REMOTE_TRACK_REMOVED: string;
17
-export const REMOTE_TRACK_UNMUTE: string;
18
-export const SET_LOCAL_DESCRIPTION_FAILED: string;
19
-export const SET_REMOTE_DESCRIPTION_FAILED: string;
20
-export const AUDIO_OUTPUT_DEVICE_CHANGED: string;
21
-export const DEVICE_LIST_CHANGED: string;
22
-export const DEVICE_LIST_WILL_CHANGE: string;
23
-export const DEVICE_LIST_AVAILABLE: string;
24
-export const ENDPOINT_MESSAGE_RECEIVED: string;
25
-export const ENDPOINT_STATS_RECEIVED: string;
26
-export const LOCAL_UFRAG_CHANGED: string;
27
-export const REMOTE_UFRAG_CHANGED: string;
1
+export declare enum RTCEvents {
2
+    /**
3
+     * Indicates error while create answer call.
4
+     */
5
+    CREATE_ANSWER_FAILED = "rtc.create_answer_failed",
6
+    /**
7
+     * Indicates error while create offer call.
8
+     */
9
+    CREATE_OFFER_FAILED = "rtc.create_offer_failed",
10
+    DATA_CHANNEL_OPEN = "rtc.data_channel_open",
11
+    ENDPOINT_CONN_STATUS_CHANGED = "rtc.endpoint_conn_status_changed",
12
+    DOMINANT_SPEAKER_CHANGED = "rtc.dominant_speaker_changed",
13
+    LASTN_ENDPOINT_CHANGED = "rtc.lastn_endpoint_changed",
14
+    FORWARDED_SOURCES_CHANGED = "rtc.forwarded_sources_changed",
15
+    /**
16
+     * Event emitted when the user granted/blocked a permission for the camera / mic.
17
+     * Used to keep track of the granted permissions on browsers which don't
18
+     * support the Permissions API.
19
+     */
20
+    PERMISSIONS_CHANGED = "rtc.permissions_changed",
21
+    SENDER_VIDEO_CONSTRAINTS_CHANGED = "rtc.sender_video_constraints_changed",
22
+    /**
23
+     * Event emitted when {@link RTC.setLastN} method is called to update with
24
+     * the new value set.
25
+     * The first argument is the value passed to {@link RTC.setLastN}.
26
+     */
27
+    LASTN_VALUE_CHANGED = "rtc.lastn_value_changed",
28
+    /**
29
+     * Event emitted when ssrc for a local track is extracted and stored
30
+     * in {@link TraceablePeerConnection}.
31
+     * @param {JitsiLocalTrack} track which ssrc was updated
32
+     * @param {string} ssrc that was stored
33
+     */
34
+    LOCAL_TRACK_SSRC_UPDATED = "rtc.local_track_ssrc_updated",
35
+    /**
36
+     * The max enabled resolution of a local video track was changed.
37
+     */
38
+    LOCAL_TRACK_MAX_ENABLED_RESOLUTION_CHANGED = "rtc.local_track_max_enabled_resolution_changed",
39
+    TRACK_ATTACHED = "rtc.track_attached",
40
+    /**
41
+     * Event fired when we remote track is added to the conference.
42
+     * 1st event argument is the added <tt>JitsiRemoteTrack</tt> instance.
43
+     **/
44
+    REMOTE_TRACK_ADDED = "rtc.remote_track_added",
45
+    REMOTE_TRACK_MUTE = "rtc.remote_track_mute",
46
+    /**
47
+     * Indicates that the remote track has been removed from the conference.
48
+     * 1st event argument is the removed {@link JitsiRemoteTrack} instance.
49
+     */
50
+    REMOTE_TRACK_REMOVED = "rtc.remote_track_removed",
51
+    REMOTE_TRACK_UNMUTE = "rtc.remote_track_unmute",
52
+    /**
53
+     * Indicates error while set local description.
54
+     */
55
+    SET_LOCAL_DESCRIPTION_FAILED = "rtc.set_local_description_failed",
56
+    /**
57
+     * Indicates error while set remote description.
58
+     */
59
+    SET_REMOTE_DESCRIPTION_FAILED = "rtc.set_remote_description_failed",
60
+    AUDIO_OUTPUT_DEVICE_CHANGED = "rtc.audio_output_device_changed",
61
+    DEVICE_LIST_CHANGED = "rtc.device_list_changed",
62
+    /**
63
+     * Indicates that the list with available devices will change.
64
+     */
65
+    DEVICE_LIST_WILL_CHANGE = "rtc.device_list_will_change",
66
+    DEVICE_LIST_AVAILABLE = "rtc.device_list_available",
67
+    /**
68
+     * Indicates that a message from another participant is received on
69
+     * data channel.
70
+     */
71
+    ENDPOINT_MESSAGE_RECEIVED = "rtc.endpoint_message_received",
72
+    /**
73
+     * Indicates that the remote endpoint stats have been received on data channel.
74
+     */
75
+    ENDPOINT_STATS_RECEIVED = "rtc.endpoint_stats_received",
76
+    /**
77
+     * Designates an event indicating that the local ICE username fragment of
78
+     * the jingle session has changed.
79
+     * The first argument of the vent is <tt>TraceablePeerConnection</tt> which
80
+     * is the source of the event.
81
+     * The second argument is the actual "ufrag" string.
82
+     */
83
+    LOCAL_UFRAG_CHANGED = "rtc.local_ufrag_changed",
84
+    /**
85
+     * Designates an event indicating that the local ICE username fragment of
86
+     * the jingle session has changed.
87
+     * The first argument of the vent is <tt>TraceablePeerConnection</tt> which
88
+     * is the source of the event.
89
+     * The second argument is the actual "ufrag" string.
90
+     */
91
+    REMOTE_UFRAG_CHANGED = "rtc.remote_ufrag_changed"
92
+}
93
+export declare const CREATE_ANSWER_FAILED = RTCEvents.CREATE_ANSWER_FAILED;
94
+export declare const CREATE_OFFER_FAILED = RTCEvents.CREATE_OFFER_FAILED;
95
+export declare const DATA_CHANNEL_OPEN = RTCEvents.DATA_CHANNEL_OPEN;
96
+export declare const ENDPOINT_CONN_STATUS_CHANGED = RTCEvents.ENDPOINT_CONN_STATUS_CHANGED;
97
+export declare const DOMINANT_SPEAKER_CHANGED = RTCEvents.DOMINANT_SPEAKER_CHANGED;
98
+export declare const LASTN_ENDPOINT_CHANGED = RTCEvents.LASTN_ENDPOINT_CHANGED;
99
+export declare const FORWARDED_SOURCES_CHANGED = RTCEvents.FORWARDED_SOURCES_CHANGED;
100
+export declare const PERMISSIONS_CHANGED = RTCEvents.PERMISSIONS_CHANGED;
101
+export declare const SENDER_VIDEO_CONSTRAINTS_CHANGED = RTCEvents.SENDER_VIDEO_CONSTRAINTS_CHANGED;
102
+export declare const LASTN_VALUE_CHANGED = RTCEvents.LASTN_VALUE_CHANGED;
103
+export declare const LOCAL_TRACK_SSRC_UPDATED = RTCEvents.LOCAL_TRACK_SSRC_UPDATED;
104
+export declare const LOCAL_TRACK_MAX_ENABLED_RESOLUTION_CHANGED = RTCEvents.LOCAL_TRACK_MAX_ENABLED_RESOLUTION_CHANGED;
105
+export declare const TRACK_ATTACHED = RTCEvents.TRACK_ATTACHED;
106
+export declare const REMOTE_TRACK_ADDED = RTCEvents.REMOTE_TRACK_ADDED;
107
+export declare const REMOTE_TRACK_MUTE = RTCEvents.REMOTE_TRACK_MUTE;
108
+export declare const REMOTE_TRACK_REMOVED = RTCEvents.REMOTE_TRACK_REMOVED;
109
+export declare const REMOTE_TRACK_UNMUTE = RTCEvents.REMOTE_TRACK_UNMUTE;
110
+export declare const SET_LOCAL_DESCRIPTION_FAILED = RTCEvents.SET_LOCAL_DESCRIPTION_FAILED;
111
+export declare const SET_REMOTE_DESCRIPTION_FAILED = RTCEvents.SET_REMOTE_DESCRIPTION_FAILED;
112
+export declare const AUDIO_OUTPUT_DEVICE_CHANGED = RTCEvents.AUDIO_OUTPUT_DEVICE_CHANGED;
113
+export declare const DEVICE_LIST_CHANGED = RTCEvents.DEVICE_LIST_CHANGED;
114
+export declare const DEVICE_LIST_WILL_CHANGE = RTCEvents.DEVICE_LIST_WILL_CHANGE;
115
+export declare const DEVICE_LIST_AVAILABLE = RTCEvents.DEVICE_LIST_AVAILABLE;
116
+export declare const ENDPOINT_MESSAGE_RECEIVED = RTCEvents.ENDPOINT_MESSAGE_RECEIVED;
117
+export declare const ENDPOINT_STATS_RECEIVED = RTCEvents.ENDPOINT_STATS_RECEIVED;
118
+export declare const LOCAL_UFRAG_CHANGED = RTCEvents.LOCAL_UFRAG_CHANGED;
119
+export declare const REMOTE_UFRAG_CHANGED = RTCEvents.REMOTE_UFRAG_CHANGED;
120
+export default RTCEvents;

Loading…
취소
저장