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

Ability to resume video when the view is visible #31

Closed
xhacker opened this issue Aug 13, 2015 · 4 comments
Closed

Ability to resume video when the view is visible #31

xhacker opened this issue Aug 13, 2015 · 4 comments
Labels

Comments

@xhacker
Copy link
Collaborator

xhacker commented Aug 13, 2015

I found some code here https://github.com/piemonte/Player/blob/master/Source/Player.swift#L239-L245 to pause the video in viewDidDisappear. Is there any way to resume the video when the view is visible again?

@piemonte piemonte added the bug label Sep 4, 2015
@davidlondono
Copy link

there should be a switch to set if it shoud resume after the view appears again, it happens because you lose control of the view controller

@xhacker xhacker closed this as completed in dcf21c0 Apr 6, 2016
xhacker added a commit that referenced this issue Apr 6, 2016
Resume video when view is visible (closes #31) Remove warnings in Xcode 7.3
@AntonReality
Copy link

@piemonte Is this solved? i don't see any related code in #63 pull request. It works ok for didEnterForeground, but it's not resuming video if view just disappear.

@piemonte
Copy link
Owner

hey @AntonReality, at one point in time i added these properties to control this behavior, if something is not as expected, let me know.

https://github.com/piemonte/Player/blob/master/Sources/Player.swift#L159-L163

@AntonReality
Copy link

@piemonte Thanks for a quick reply!
Yes, i've seen this, but this is working only on application enter background/foreground, not the viewDidAppear. You have to override viewDidAppear for this.

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

No branches or pull requests

4 participants