You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To receive the media statistics data, you can subscribe `sampleReported` event or `summaryReported` event.
26
+
To receive the media statistics data, you can subscribe to the `sampleReported` event or the`summaryReported` event.
27
27
28
-
`sampleReported` event triggers every second. It's suitable as a data source for UI display or your own data pipeline.
28
+
The `sampleReported` event triggers every second. It's suitable as a data source for UI display or your own data pipeline.
29
29
30
-
`summaryReported` event contains the aggregated values of the data over intervals, which is useful when you just need a summary.
30
+
The `summaryReported` event contains the aggregated values of the data over intervals, which is useful when you just need a summary.
31
31
32
-
If you want control over the interval of the `summaryReported` event, you need to define `mediaStatsCollectorOptions` of type `MediaStatsCollectorOptions`.
33
-
Otherwise, the SDK uses default values.
32
+
If you want control over the interval of the `summaryReported` event, you need to define `mediaStatsCollectorOptions` of type `MediaStatsCollectorOptions`. Otherwise, the SDK uses default values.
In case you don't need to use the media statistics collector, you can call `dispose` method of `mediaStatsCollector`.
52
+
If you don't need to use the media statistics collector, you can call `dispose` method of `mediaStatsCollector`.
54
53
55
54
```js
56
55
mediaStatsCollector.dispose();
57
56
```
58
-
It's not necessary to call `dispose` method of `mediaStatsCollector` every time when the call ends, as the collectorsare reclaimed internally when the call ends.
57
+
58
+
You don't need to call `dispose` method of `mediaStatsCollector` every time when the call ends, because the collectors are reclaimed internally when the call ends.
59
59
60
60
### MediaStatsCollectorOptions
61
61
@@ -80,15 +80,15 @@ If you set the following values:
80
80
-`aggregatinInterval` = 60
81
81
-`dataPointsPerAggregation` = 1
82
82
83
-
The `summaryReported` event is raised every 60 seconds and contains 1 unique unit for each statistic recorded.
83
+
The `summaryReported` event is raised every 60 seconds and contains one (1) unique unit for each statistic recorded.
84
84
85
85
## Best practices
86
86
87
87
If you want to collect the data for offline inspection, we recommend that you collect the data and send it to your pipeline ingestion after your call ends. If you transmit the data during a call, it could use internet bandwidth needed to continue an Azure Communication Services call (especially when available bandwidth is low).
88
88
89
-
In either `sampleReported` event or `summaryReported` event, the media statistics data are not just a simple key-value mapping.
89
+
In either `sampleReported` event or `summaryReported` event, the media statistics data aren't just a simple key-value mapping.
90
90
91
-
Here is the type declaration of the event data reported by `sampleReported` event.
91
+
Here's the type declaration of the event data reported by `sampleReported` event.
The event data provide the statistics data for each media stream in the call, including both send and receive directions.
112
112
113
-
It's recommended that you print the event using the `console.log` to observe its layout and value changes, so you can find a proper way to display or process the data according to your usage scenario.
113
+
We recommended that you print the event using the `console.log` to observe its layout and value changes, so you can find a proper way to display or process the data according to your usage scenario.
114
114
115
115
### Audio send metrics
116
116
@@ -130,7 +130,7 @@ It's recommended that you print the event using the `console.log` to observe its
130
130
131
131
### Audio receive metrics
132
132
133
-
In the SDK versions ealier than 1.20.1, `jitterBufferDelayInMs` existed as `jitterBufferInMs`.
133
+
In the SDK versions earlier than 1.20.1, `jitterBufferDelayInMs` existed as `jitterBufferInMs`.
134
134
135
135
| Metric name | Description | Comments |
136
136
| ----------- | ----------- | -------- |
@@ -149,7 +149,7 @@ In the SDK versions ealier than 1.20.1, `jitterBufferDelayInMs` existed as `jitt
149
149
150
150
### Video send metrics
151
151
152
-
Starting from SDK version 1.20.1, the video send metrics included the `altLayouts` metric field, which allows for a better representation of simulcast stream statistics.
152
+
Starting from SDK version 1.20.1, the video send metrics included the `altLayouts` metric field, which enable a better representation of simulcast stream statistics.
153
153
154
154
| Metric name | Description | Comments |
155
155
| ----------- | ----------- | -------- |
@@ -232,13 +232,13 @@ In earlier versions, `rttInMs` existed as `pairRttInMs` in the stats for audio,
232
232
## What are changed in SDK version 1.20.1 (GA)
233
233
234
234
We now support MediaStats feature API in 1.20.1 (GA).
235
+
235
236
Compared to the previous beta versions, we also made some minor changes to the API interface in this GA version.
236
237
237
-
In the previous beta versions, `pairRttInMs`, `availableBitrate` were included in audio, video, and screenShare statistics.
238
-
Now, these metrics have been separated into transport metrics.
238
+
In the previous beta versions, `pairRttInMs`, `availableBitrate` were included in audio, video, and screenShare statistics. Now these metrics are separated into transport metrics.
239
239
240
-
We introduced `packets`,`packetsLost` metric fields in audio, video, screenShare statistics. These metrics are useful for calculating the total number of packets sent or recieved between two different time points.
240
+
We introduced `packets` and`packetsLost` metric fields in audio, video, screenShare statistics. These metrics are useful for calculating the total number of packets sent or recieved between two different time points.
241
241
242
242
The `frameRateOutput` in video and screenShare statistics is removed. You can use `frameRateDecoded` instead.
243
243
244
-
The metric field `jitterBufferInMs`has been renamed to `jitterBufferDelayInMs` to provide a clearer description, as this metric indicates the duration of a packet stay in the jitter buffer.
244
+
The metric field `jitterBufferInMs`is renamed to `jitterBufferDelayInMs` to provide a clearer description, because this metric indicates the duration of a packet stay in the jitter buffer.
To help you understand media quality in VoIP and video calls that use Azure Communication Services, there's a feature called *media quality statistics*. Use it to examine the low-level audio, video, and screen-sharing quality metrics for incoming and outgoing call metrics.
19
+
To help you better understand media quality in VoIP and video calls that use Azure Communication Services, there's a feature called *media quality statistics*. Use it to examine the low-level audio, video, and screen-sharing quality metrics for incoming and outgoing call metrics.
20
20
21
21
::: zone pivot="platform-web"
22
22
[!INCLUDE [Media Stats for Web](./includes/media-stats/media-stats-web.md)]
0 commit comments