diff --git a/README.md b/README.md index 0a99eece..9ee34399 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/ios/Video/RCTVideo.m b/ios/Video/RCTVideo.m index b71bbf28..52b0342a 100644 --- a/ios/Video/RCTVideo.m +++ b/ios/Video/RCTVideo.m @@ -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