diff --git a/android/src/main/java/com/brentvatne/react/ReactVideoViewManager.java b/android/src/main/java/com/brentvatne/react/ReactVideoViewManager.java index 832a20aa..9645e777 100644 --- a/android/src/main/java/com/brentvatne/react/ReactVideoViewManager.java +++ b/android/src/main/java/com/brentvatne/react/ReactVideoViewManager.java @@ -91,22 +91,22 @@ public class ReactVideoViewManager extends SimpleViewManager { videoView.setResizeModeModifier(ScalableType.values()[Integer.parseInt(resizeModeOrdinalString)]); } - @ReactProp(name = PROP_REPEAT) + @ReactProp(name = PROP_REPEAT, defaultBoolean = false) public void setRepeat(final ReactVideoView videoView, final boolean repeat) { videoView.setRepeatModifier(repeat); } - @ReactProp(name = PROP_PAUSED) + @ReactProp(name = PROP_PAUSED, defaultBoolean = false) public void setPaused(final ReactVideoView videoView, final boolean paused) { videoView.setPausedModifier(paused); } - @ReactProp(name = PROP_MUTED) + @ReactProp(name = PROP_MUTED, defaultBoolean = false) public void setMuted(final ReactVideoView videoView, final boolean muted) { videoView.setMutedModifier(muted); } - @ReactProp(name = PROP_VOLUME) + @ReactProp(name = PROP_VOLUME, defaultFloat = 1.0f) public void setVolume(final ReactVideoView videoView, final float volume) { videoView.setVolumeModifier(volume); }