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 can not play again if be paused when view controller disappears #47

Open
andrew020 opened this issue Feb 24, 2020 · 1 comment
Open

Comments

@andrew020
Copy link

Hi, Guys
I add these code in ViewController.swift of your Demo Project

override func viewDidDisappear(_ animated: Bool) {
    super.viewDidDisappear(animated)
    playerViewController.pause()
}
    
override func viewDidAppear(_ animated: Bool) {
    super.viewDidAppear(animated)
    playerViewController.play()
}

And stay in ViewController2.swift for 5 seconds, then come back, the video can not play again,
except seek duration time or reload.

Do you know what happened?

@andrew020 andrew020 changed the title Video can not play again if be paused when view controller dismissing Video can not play again if be paused when view controller disappears Feb 24, 2020
@RemiGuyon
Copy link
Contributor

Hi @andrew020 ,
Sorry I didn't get back to you sooner, is this issue still relevant?

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

No branches or pull requests

2 participants