diff --git a/Video.js b/Video.js index 60bf2b02..a974d995 100644 --- a/Video.js +++ b/Video.js @@ -330,7 +330,7 @@ Video.propTypes = { // Opaque type returned by require('./video.mp4') PropTypes.number ]), - maximumBitRate: PropTypes.number, + maxBitRate: PropTypes.number, resizeMode: PropTypes.string, poster: PropTypes.string, posterResizeMode: Image.propTypes.resizeMode, diff --git a/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java b/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java index 2cd4b046..7dc02c83 100644 --- a/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java +++ b/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java @@ -110,7 +110,7 @@ class ReactExoplayerView extends FrameLayout implements private boolean isBuffering; private float rate = 1f; private float audioVolume = 1f; - private int maximumBitRate = 0; + private int maxBitRate = 0; private int minBufferMs = DefaultLoadControl.DEFAULT_MIN_BUFFER_MS; private int maxBufferMs = DefaultLoadControl.DEFAULT_MAX_BUFFER_MS; @@ -246,7 +246,7 @@ class ReactExoplayerView extends FrameLayout implements TrackSelection.Factory videoTrackSelectionFactory = new AdaptiveTrackSelection.Factory(BANDWIDTH_METER); trackSelector = new DefaultTrackSelector(videoTrackSelectionFactory); trackSelector.setParameters(trackSelector.buildUponParameters() - .setMaxVideoBitrate(maximumBitRate)); + .setMaxVideoBitrate(maxBitRate)); DefaultAllocator allocator = new DefaultAllocator(true, C.DEFAULT_BUFFER_SEGMENT_SIZE); DefaultLoadControl defaultLoadControl = new DefaultLoadControl(allocator, minBufferMs, maxBufferMs, bufferForPlaybackMs, bufferForPlaybackAfterRebufferMs, -1, true); @@ -910,13 +910,13 @@ class ReactExoplayerView extends FrameLayout implements } } - public void setMaximumBitRateModifier(int newMaximumBitRate) { - if (newMaximumBitRate==0) newMaximumBitRate = Integer.MAX_VALUE; - maximumBitRate = newMaximumBitRate; + public void setMaxBitRateModifier(int newMaxBitRate) { + if (newMaxBitRate==0) newMaxBitRate = Integer.MAX_VALUE; + maxBitRate = newMaxBitRate; if (player != null) { trackSelector.setParameters(trackSelector.buildUponParameters() - .setMaxVideoBitrate(maximumBitRate)); + .setMaxVideoBitrate(maxBitRate)); } } diff --git a/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerViewManager.java b/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerViewManager.java index 7c7f6baa..031f8636 100644 --- a/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerViewManager.java +++ b/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerViewManager.java @@ -47,7 +47,7 @@ public class ReactExoplayerViewManager extends ViewGroupManager