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

Video still playing on exit screen iOs #57

Open
martinop opened this issue Jul 2, 2020 · 2 comments
Open

Video still playing on exit screen iOs #57

martinop opened this issue Jul 2, 2020 · 2 comments

Comments

@martinop
Copy link

martinop commented Jul 2, 2020

Anyone can help me with that? on navigate to another screen the video still playing.

@ramzus077
Copy link

@martinop if you change the screen , you put the video on pause

@ymj
Copy link

ymj commented Jan 20, 2021

Anyone can help me with that? on navigate to another screen the video still playing.

Initially, I was changing the state of the play prop when the Component is unmounted, but there was a lag between the time you navigate away and the player pauses.

Instead I did the following:

   navigation.addListener('blur', () => {
        this.setState({
            playing:false,
        });
      });

I hope this helps.

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

3 participants