feat(ios): add onBandwidthUpdate event (#3331)

* feat(ios): add onBandwidthUpdate event
This commit is contained in:
Krzysztof Moch
2023-11-08 22:06:29 +01:00
committed by GitHub
parent 8fbdc28a73
commit 9054db35d7
6 changed files with 47 additions and 30 deletions

View File

@@ -86,14 +86,27 @@ Payload:
Property | Type | Description
--- | --- | ---
bitrate | number | The estimated bitrate in bits/sec
width | number | The width of the video (android only)
height | number | The height of the video (android only)
trackId | string | The track ID of the video track (android only)
Example:
Example on iOS:
```javascript
{
bitrate: 1000000
}
```
Example on Android:
```javascript
{
bitrate: 1000000
width: 1920
height: 1080
trackId: 'some-track-id'
}
```
Note: On Android, you must set the [reportBandwidth](#reportbandwidth) prop to enable this event. This is due to the high volume of events generated.
Platforms: Android