-
Notifications
You must be signed in to change notification settings - Fork 43
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 loading reproduce in another views #24
Comments
Hi @alexviquez , There was an issue where an instance of If this was your issue then it should be fixed in the latest version, however if the player never gets deallocated for you, you may have a retain cycle somewhere. |
Hi, i also have this bug. is it solved? I have installed via Pod. |
Hi @MattiaConfalonieri , what version are you using? This should be fixed since version 4.0. |
Hi, the last one (4.2.0) with the pod... I have a controller with the video that autoplay when read in the viewdidload. |
I have done some quick tests but I am unable to reproduce your issue. My guess is that you have a reference cycle somewhere in your code which leads to the player not deallocating properly, which in turn may cause your issue. |
Sorry but I can't see nothing wrong in my controller... |
Lines 45, 48 and 53. The closures capture a strong reference to self (the view controller), and the ViewController has a reference to the player which leads to a retain cycle. Just change the closures to capture self as weak or unowned and it should fix it. Example:
or
|
Sorry, but nothing change... still have the bug |
It's possible that you have other retain cycles that I missed. Is your view controller getting deallocated when dismissed? If not then there may be some other issues. |
Thanks for help. mmmmm I think you right, maybe there is some shit in my code... thanks I looking for |
Hello, I have a problem with the player, in the case of me to load the player and leave the view after it, then the video not loading is not uninitialized, this generates that the audio of the video live in the app without I can remove it, this only happens when it is loading, I play and I leave the view without allowing to play the video.
The text was updated successfully, but these errors were encountered: