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
+1 -1
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. 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 #### onEnd
Callback function that is called when the player reaches the end of the media. Callback function that is called when the player reaches the end of the media.
+2
View File
@@ -719,9 +719,11 @@ static int const RCTVideoUnset = -1;
AVPlayerItemAccessLog *accessLog = [((AVPlayerItem *)notification.object) accessLog]; AVPlayerItemAccessLog *accessLog = [((AVPlayerItem *)notification.object) accessLog];
AVPlayerItemAccessLogEvent *lastEvent = accessLog.events.lastObject; AVPlayerItemAccessLogEvent *lastEvent = accessLog.events.lastObject;
/* TODO: get this working
if (self.onBandwidthUpdate) { if (self.onBandwidthUpdate) {
self.onBandwidthUpdate(@{@"bitrate": [NSNumber numberWithFloat:lastEvent.observedBitrate]}); self.onBandwidthUpdate(@{@"bitrate": [NSNumber numberWithFloat:lastEvent.observedBitrate]});
} }
*/
} }
- (void)playbackStalled:(NSNotification *)notification - (void)playbackStalled:(NSNotification *)notification