Disable onBandwidthUpdate for iOS since it's not working yet

This commit is contained in:
Hampton Maxwell 2018-12-31 22:06:50 -08:00
parent ba439cc319
commit fb5f87bc9b
2 changed files with 3 additions and 1 deletions

View File

@ -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.

View File

@ -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