Merge pull request #2609 from tironiigor/always-check-for-hideShutterView
Always check for hideShutterView before showing shutterView
This commit is contained in:
commit
0dbdb7ae71
@ -13,6 +13,7 @@
|
||||
- Fix nil string uri parameter error [#695](https://github.com/react-native-video/react-native-video/pull/695)
|
||||
- (Breaking) Bump shaka-player to 3.3.2 [#2587](https://github.com/react-native-video/react-native-video/pull/2587)
|
||||
- Improve basic player example on android [#2662](https://github.com/react-native-video/react-native-video/pull/2662)
|
||||
- Ensure we always use `hideShutterView` before showing the `shutterView` on Android [#2609](https://github.com/react-native-video/react-native-video/pull/2609)
|
||||
|
||||
### Version 5.2.0
|
||||
|
||||
|
@ -136,7 +136,7 @@ public final class ExoPlayerView extends FrameLayout {
|
||||
clearVideoView();
|
||||
}
|
||||
this.player = player;
|
||||
shutterView.setVisibility(VISIBLE);
|
||||
shutterView.setVisibility(this.hideShutterView ? View.INVISIBLE : View.VISIBLE);
|
||||
if (player != null) {
|
||||
setVideoView();
|
||||
player.addVideoListener(componentListener);
|
||||
@ -203,7 +203,7 @@ public final class ExoPlayerView extends FrameLayout {
|
||||
}
|
||||
}
|
||||
// Video disabled so the shutter must be closed.
|
||||
shutterView.setVisibility(VISIBLE);
|
||||
shutterView.setVisibility(this.hideShutterView ? View.INVISIBLE : View.VISIBLE);
|
||||
}
|
||||
|
||||
public void invalidateAspectRatio() {
|
||||
|
Loading…
Reference in New Issue
Block a user