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

Irregular PiP behavior from mini-player #362

Open
anohren opened this issue Jul 22, 2022 · 7 comments
Open

Irregular PiP behavior from mini-player #362

anohren opened this issue Jul 22, 2022 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@anohren
Copy link

anohren commented Jul 22, 2022

  1. Play video in mini-player
  2. Press home button to enter PiP
  3. Return to app using restore button in PiP window — playback stops
  4. Continue playback
  5. Press home button — no more PiP

In 3 we should've continued playback, and in 5 we should've entered PiP, from my understanding.

@tzarebczan tzarebczan added the bug Something isn't working label Jul 22, 2022
@tzarebczan
Copy link
Contributor

tzarebczan commented Jul 22, 2022

Great catch, I was able to reproduce this also!

@tzarebczan
Copy link
Contributor

Let me know your Odyse channel btw - you can reply here or email me at [email protected]

@anohren
Copy link
Author

anohren commented Jul 24, 2022

I don't think I have a channel; I don't really comment on videos. I guess I could create one if it's useful here?

@anohren
Copy link
Author

anohren commented Jul 24, 2022

An alternative smaller list of steps to reproduce the (probably) same problem:

  1. Play video in mini-player
  2. Restore mini-player to regular player
  3. Press home button — (PiP doesn't seem to activate every time here)
  4. Return to app using restore button in PiP window — playback stops even though we previously returned to the regular player

@ktprograms
Copy link
Collaborator

@akinwale can you please see if you can figure this out?

I think the problem is happening in https://github.com/OdyseeTeam/odysee-ios/blob/39bf1a5/Odysee/Controllers/Content/FileViewController.swift#L999-L1005, probably by lazyPlayer being used/changed somewhere else.

Even moving this block of code to above the return statement doesn't make it work.

Removing the if !forceInit ... and letting the player be reinitialized does work, although playback position is lost.

@tzarebczan
Copy link
Contributor

I don't think I have a channel; I don't really comment on videos. I guess I could create one if it's useful here?

Just wanted a way to show some appreciation - making and sharing the channel would be the easiest, or email me at [email protected] with your credits address!

@tzarebczan tzarebczan assigned akinwale and unassigned ktprograms Aug 11, 2022
@anohren
Copy link
Author

anohren commented Aug 17, 2022

Thank you for the offer @tzarebczan! I sent you an email at approximately when I posted this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants