|
@@ -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;
|