Don't format bandwidth update bitrate

This commit is contained in:
Hampton Maxwell
2018-12-31 21:39:12 -08:00
committed by GitHub
parent 45a851e79a
commit 72f896d6df

View File

@@ -720,7 +720,7 @@ static int const RCTVideoUnset = -1;
AVPlayerItemAccessLogEvent *lastEvent = accessLog.events.lastObject; AVPlayerItemAccessLogEvent *lastEvent = accessLog.events.lastObject;
if (self.onBandwidthUpdate) { if (self.onBandwidthUpdate) {
self.onBandwidthUpdate(@{@"bitrateEstimate": [NSNumber numberWithFloat:(lastEvent.observedBitrate/1000)]}); self.onBandwidthUpdate(@{@"bitrate": [NSNumber numberWithFloat:lastEvent.observedBitrate]});
} }
} }