@stream-io/video-client 1.19.2 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/index.browser.es.js +33 -6
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +33 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +33 -6
- package/dist/index.es.js.map +1 -1
- package/dist/src/Call.d.ts +19 -2
- package/dist/src/StreamSfuClient.d.ts +4 -0
- package/dist/src/gen/coordinator/index.d.ts +274 -836
- package/dist/src/gen/shims.d.ts +177 -0
- package/package.json +1 -1
- package/src/Call.ts +29 -6
- package/src/StreamSfuClient.ts +6 -0
- package/src/StreamVideoClient.ts +1 -0
- package/src/__tests__/StreamVideoClient.api.test.ts +1 -1
- package/src/gen/coordinator/index.ts +275 -833
- package/src/gen/shims.ts +192 -0
package/src/gen/shims.ts
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { VideoDimension } from './coordinator';
|
|
2
|
+
|
|
3
|
+
export interface AggregatedStats {
|
|
4
|
+
publisher_aggregate_stats?: PublisherAggregateStats;
|
|
5
|
+
turn?: TURNAggregatedStats;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface CallEvent {
|
|
9
|
+
category?: string;
|
|
10
|
+
component?: string;
|
|
11
|
+
description: string;
|
|
12
|
+
end_timestamp: number;
|
|
13
|
+
internal: boolean;
|
|
14
|
+
issue_tags?: Array<string>;
|
|
15
|
+
kind: string;
|
|
16
|
+
severity: number;
|
|
17
|
+
timestamp: number;
|
|
18
|
+
type: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface CallTimeline {
|
|
22
|
+
events: Array<CallEvent>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface Coordinates {
|
|
26
|
+
latitude: number;
|
|
27
|
+
longitude: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface Count {
|
|
31
|
+
approximate: boolean;
|
|
32
|
+
value: number;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface FPSStats {
|
|
36
|
+
average_fps: number;
|
|
37
|
+
tracked: number;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface GeolocationResult {
|
|
41
|
+
accuracy_radius: number;
|
|
42
|
+
city: string;
|
|
43
|
+
continent: string;
|
|
44
|
+
continent_code: string;
|
|
45
|
+
country: string;
|
|
46
|
+
country_iso_code: string;
|
|
47
|
+
latitude: number;
|
|
48
|
+
longitude: number;
|
|
49
|
+
subdivision: string;
|
|
50
|
+
subdivision_iso_code: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface GetCallStatsResponse {
|
|
54
|
+
aggregated?: AggregatedStats;
|
|
55
|
+
average_connection_time?: number;
|
|
56
|
+
call_duration_seconds: number;
|
|
57
|
+
call_status: string;
|
|
58
|
+
call_timeline?: CallTimeline;
|
|
59
|
+
duration: string;
|
|
60
|
+
is_truncated_report: boolean;
|
|
61
|
+
jitter?: TimeStats;
|
|
62
|
+
latency?: TimeStats;
|
|
63
|
+
max_freezes_duration_seconds: number;
|
|
64
|
+
max_participants: number;
|
|
65
|
+
max_total_quality_limitation_duration_seconds: number;
|
|
66
|
+
participant_report: Array<UserStats>;
|
|
67
|
+
publishing_participants: number;
|
|
68
|
+
quality_score: number;
|
|
69
|
+
sfu_count: number;
|
|
70
|
+
sfus: Array<SFULocationResponse>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface MediaPubSubHint {
|
|
74
|
+
audio_published: boolean;
|
|
75
|
+
audio_subscribed: boolean;
|
|
76
|
+
video_published: boolean;
|
|
77
|
+
video_subscribed: boolean;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface PublishedTrackInfo {
|
|
81
|
+
codec_mime_type?: string;
|
|
82
|
+
duration_seconds?: number;
|
|
83
|
+
track_type?: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface PublisherAggregateStats {
|
|
87
|
+
by_track_type?: { [key: string]: Count };
|
|
88
|
+
total?: Count;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface SFULocationResponse {
|
|
92
|
+
coordinates: Coordinates;
|
|
93
|
+
datacenter: string;
|
|
94
|
+
id: string;
|
|
95
|
+
location: Location;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface Subsession {
|
|
99
|
+
ended_at: number;
|
|
100
|
+
joined_at: number;
|
|
101
|
+
pub_sub_hint?: MediaPubSubHint;
|
|
102
|
+
sfu_id: string;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface TimeStats {
|
|
106
|
+
average_seconds: number;
|
|
107
|
+
max_seconds: number;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface TURNAggregatedStats {
|
|
111
|
+
tcp?: Count;
|
|
112
|
+
total?: Count;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export interface UserInfoResponse {
|
|
116
|
+
custom: { [key: string]: any };
|
|
117
|
+
id: string;
|
|
118
|
+
image: string;
|
|
119
|
+
name: string;
|
|
120
|
+
roles: Array<string>;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface UserSessionStats {
|
|
124
|
+
average_connection_time?: number;
|
|
125
|
+
browser?: string;
|
|
126
|
+
browser_version?: string;
|
|
127
|
+
current_ip?: string;
|
|
128
|
+
current_sfu?: string;
|
|
129
|
+
device_model?: string;
|
|
130
|
+
device_version?: string;
|
|
131
|
+
distance_to_sfu_kilometers?: number;
|
|
132
|
+
fps?: FPSStats;
|
|
133
|
+
freeze_duration_seconds: number;
|
|
134
|
+
geolocation?: GeolocationResult;
|
|
135
|
+
group: string;
|
|
136
|
+
jitter?: TimeStats;
|
|
137
|
+
latency?: TimeStats;
|
|
138
|
+
max_fir_per_second?: number;
|
|
139
|
+
max_freeze_fraction: number;
|
|
140
|
+
max_freezes_duration_seconds: number;
|
|
141
|
+
max_freezes_per_second?: number;
|
|
142
|
+
max_nack_per_second?: number;
|
|
143
|
+
max_pli_per_second?: number;
|
|
144
|
+
max_publishing_video_quality?: VideoQuality;
|
|
145
|
+
max_receiving_video_quality?: VideoQuality;
|
|
146
|
+
min_event_ts: number;
|
|
147
|
+
os?: string;
|
|
148
|
+
os_version?: string;
|
|
149
|
+
packet_loss_fraction: number;
|
|
150
|
+
pub_sub_hints?: MediaPubSubHint;
|
|
151
|
+
published_tracks?: Array<PublishedTrackInfo>;
|
|
152
|
+
publisher_jitter?: TimeStats;
|
|
153
|
+
publisher_latency?: TimeStats;
|
|
154
|
+
publisher_noise_cancellation_seconds?: number;
|
|
155
|
+
publisher_packet_loss_fraction: number;
|
|
156
|
+
publisher_quality_limitation_fraction?: number;
|
|
157
|
+
publisher_video_quality_limitation_duration_seconds?: {
|
|
158
|
+
[key: string]: number;
|
|
159
|
+
};
|
|
160
|
+
publishing_audio_codec?: string;
|
|
161
|
+
publishing_duration_seconds: number;
|
|
162
|
+
publishing_video_codec?: string;
|
|
163
|
+
quality_score: number;
|
|
164
|
+
receiving_audio_codec?: string;
|
|
165
|
+
receiving_duration_seconds: number;
|
|
166
|
+
receiving_video_codec?: string;
|
|
167
|
+
sdk?: string;
|
|
168
|
+
sdk_version?: string;
|
|
169
|
+
session_id: string;
|
|
170
|
+
subscriber_jitter?: TimeStats;
|
|
171
|
+
subscriber_latency?: TimeStats;
|
|
172
|
+
subscriber_video_quality_throttled_duration_seconds?: number;
|
|
173
|
+
subsessions?: Array<Subsession>;
|
|
174
|
+
timeline?: CallTimeline;
|
|
175
|
+
total_pixels_in: number;
|
|
176
|
+
total_pixels_out: number;
|
|
177
|
+
truncated?: boolean;
|
|
178
|
+
webrtc_version?: string;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export interface UserStats {
|
|
182
|
+
feedback?: string;
|
|
183
|
+
info: UserInfoResponse;
|
|
184
|
+
min_event_ts: number;
|
|
185
|
+
rating?: number;
|
|
186
|
+
session_stats: Array<UserSessionStats>;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export interface VideoQuality {
|
|
190
|
+
resolution?: VideoDimension;
|
|
191
|
+
usage_type?: string;
|
|
192
|
+
}
|