Unverified Commit d148c3f9 authored by Hampton Maxwell's avatar Hampton Maxwell Committed by GitHub
Browse files

Change field to bitrate for bandwidth update

parent d5168af2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
    }