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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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