Skip to content

Commit

Permalink
Don't format bandwidth update bitrate
Browse files Browse the repository at this point in the history
  • Loading branch information
cobarx authored Jan 1, 2019
1 parent 45a851e commit 72f896d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Video/RCTVideo.m
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ - (void)handleAVPlayerAccess:(NSNotification *)notification {
AVPlayerItemAccessLogEvent *lastEvent = accessLog.events.lastObject;

if (self.onBandwidthUpdate) {
self.onBandwidthUpdate(@{@"bitrateEstimate": [NSNumber numberWithFloat:(lastEvent.observedBitrate/1000)]});
self.onBandwidthUpdate(@{@"bitrate": [NSNumber numberWithFloat:lastEvent.observedBitrate]});
}
}

Expand Down

0 comments on commit 72f896d

Please sign in to comment.