Disable onBandwidthUpdate for iOS since it's not working yet
This commit is contained in:
parent
ba439cc319
commit
fb5f87bc9b
@ -806,7 +806,7 @@ Example:
|
||||
|
||||
Note: On Android ExoPlayer, you must set the [reportBandwidth](#reportbandwidth) prop to enable this event. This is due to the high volume of events generated.
|
||||
|
||||
Platforms: Android ExoPlayer, iOS
|
||||
Platforms: Android ExoPlayer
|
||||
|
||||
#### onEnd
|
||||
Callback function that is called when the player reaches the end of the media.
|
||||
|
@ -719,9 +719,11 @@ static int const RCTVideoUnset = -1;
|
||||
AVPlayerItemAccessLog *accessLog = [((AVPlayerItem *)notification.object) accessLog];
|
||||
AVPlayerItemAccessLogEvent *lastEvent = accessLog.events.lastObject;
|
||||
|
||||
/* TODO: get this working
|
||||
if (self.onBandwidthUpdate) {
|
||||
self.onBandwidthUpdate(@{@"bitrate": [NSNumber numberWithFloat:lastEvent.observedBitrate]});
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
- (void)playbackStalled:(NSNotification *)notification
|
||||
|
Loading…
Reference in New Issue
Block a user