-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[iOS] Player sometimes keeps seeking after view is unmounted #113
Comments
As a matter of fact, I noticed that the
|
+1 I got this bug too with remote urls |
+1 I'm seeing this when transitioning to different pages via router. @brentvatne your thoughts? |
@andresn you can check video component unmount event and pause player. Works for me |
Yes, but is this going to blow up memory by pausing w/o unmounting. This seems like a serious issue if so. |
face the same problem |
Im having problems with videos not unmounting correctly, or at least they seem to trigger the "cannot load more than 16 videos simultaneously even though only 1 video is mounted at a time. Has anyone found a solution to the unmounting issue? |
Experiencing the same here. I'm not quite sure yet what isn't unmounting but there is a memory leak for sure after a video is played. |
I believe I've figured this out for my code, but I have a custom build of In
For me, on an iPhone X running iOS 12.2, I could switch back and forth between two different videos to where With the addition of the lines above, I no longer have any issues switching between videos no matter how many times. I would imagine in the main |
I'm encountering the same problem. The memory consumption is larger with every video which is played :( |
@jenshandersson is this solved by your PR? (v4.4.2) |
No that PR didn't fix this, looks like we only handle AVPlayerLayer in dealloc... I will submit a PR. |
Check on 4.4.3 |
This happens on remote video URLs.
Reproduction:
I think this happens when the network request hasn't finished responding and therefore the
AVPlayerItem
is stuck in seeking mode. I think that in theremoveFromSuperview
lifecycle, we need to callcancelPendingSeeks
on theAVPlayerItem
.The text was updated successfully, but these errors were encountered: