Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using paused prop causes video to pause on fullscreen toggle #216

Open
Miyaguisan opened this issue May 25, 2021 · 1 comment
Open

Using paused prop causes video to pause on fullscreen toggle #216

Miyaguisan opened this issue May 25, 2021 · 1 comment

Comments

@Miyaguisan
Copy link

Miyaguisan commented May 25, 2021

<VideoPlayer
    source = {{ uri: my_file_link }}
    disableVolume
    disableBack
    paused
    onEnterFullscreen = {this.handleEnterFullscreen}
    onExitFullscreen  = {this.handleExitFullScreen}
    toggleResizeModeOnFullscreen = {false}
/>

Using this code causes the app to pause everytime the user enters / exits fullscreen on Android.
Without the paused prop everything works fine... but video starts playing on its own after load and I require the video to play ONLY if the user needs it to.

@sommesh
Copy link

sommesh commented May 25, 2021

Seems like there is an issue with the pause props from the react-native-video npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants