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

@@ -131,12 +131,15 @@ export type OnAudioFocusChangedData = Readonly<{
export type OnBufferData = Readonly<{isBuffering: boolean}>;
export type OnBandwidthUpdateData = Readonly<{
bitrate: number;
width: number;
height: number;
trackId: number;
}>;
export type OnBandwidthUpdateData = Readonly<
| {
bitrate: number;
width: number;
height: number;
trackId: number;
}
| {bitrate: number}
>;
export interface ReactVideoEvents {
onAudioBecomingNoisy?: () => void; //Android, iOS