From d148c3f9f91e5c36d438064847b4e198549c1c3e Mon Sep 17 00:00:00 2001 From: Hampton Maxwell Date: Mon, 31 Dec 2018 21:35:15 -0800 Subject: [PATCH] Change field to bitrate for bandwidth update --- .../main/java/com/brentvatne/exoplayer/VideoEventEmitter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android-exoplayer/src/main/java/com/brentvatne/exoplayer/VideoEventEmitter.java b/android-exoplayer/src/main/java/com/brentvatne/exoplayer/VideoEventEmitter.java index 6ed12532..b46b66d6 100644 --- a/android-exoplayer/src/main/java/com/brentvatne/exoplayer/VideoEventEmitter.java +++ b/android-exoplayer/src/main/java/com/brentvatne/exoplayer/VideoEventEmitter.java @@ -125,7 +125,7 @@ class VideoEventEmitter { private static final String EVENT_PROP_TIMED_METADATA = "metadata"; - private static final String EVENT_PROP_BITRATE_ESTIMATE = "bitrateEstimate"; + private static final String EVENT_PROP_BITRATE = "bitrate"; void setViewId(int viewId) { @@ -178,7 +178,7 @@ class VideoEventEmitter { void bandwidthReport(double bitRateEstimate) { WritableMap event = Arguments.createMap(); - event.putDouble(EVENT_PROP_BITRATE_ESTIMATE, bitRateEstimate / 1024D); + event.putDouble(EVENT_PROP_BITRATE, bitRate); receiveEvent(EVENT_BANDWIDTH, event); }