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 dispose of the media statistics collector, invoke the`dispose` method of `mediaStatsCollector`.
75
+
In case you don't need to use the media statistics collector, you can call`dispose` method of `mediaStatsCollector`.
73
76
74
77
```js
75
78
mediaStatsCollector.dispose();
76
79
```
77
-
78
-
We removed the `disposeAllCollectors` method. The collectors will be reclaimed when you dispose of `mediaStatsFeature`.
80
+
It is not necessary to call `dispose` method of `mediaStatsCollector` every time when the call ends, as the collectors will be reclaimed internally when the call ends.
81
+
However, if you are using SDK version less than 1.8.0-beta.1, you need use `disposeAllCollectors` API to release the resource.
79
82
80
83
## Best practices
81
84
82
85
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 that's needed to continue an Azure Communication Services call (especially when available bandwidth is low).
83
86
84
87
## Media quality statistics metrics for SDK version 1.8.0 or later
85
88
89
+
In either `sampleReported` event or `summaryReported` event, the media statistics data are not just a simple key-value mapping.
90
+
91
+
Here is 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 recv directions.
110
+
It is recommended that you print out 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.
111
+
112
+
86
113
The bandwidth metrics have changes to `availableBitrate` in audio send and video send metrics.
0 commit comments