-
Notifications
You must be signed in to change notification settings - Fork 32
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
How to delete ivs-player correctly when using vue for single page application? #30
Comments
Thank you for the detailed report! We'll take a look. |
@coooo77 This is more an issue of appropriately handling the life cycle of a component in Vue.js than an IVS issue per se. Here’s a suggested solution:
I reproduced your issue and noticed you don’t destroy amazon-ivs & videojs at the same time. In the solution I propose, I embedded it all in a single variable called player. |
hi @alphacentauri82 By the way i get error from Vue using your solution.
wondering that do i have to using both dispose and delete function to destroy ivsplayer?
|
Here's a simple example with Vue and Video.js https://github.com/alphacentauri82/ivs-vue |
_2021_06_30_14_28_22_169.mp4I add vue-router to your code in repo and still got same problem. |
Bandlab.com is an SPA too and we had an issue with stopping the player then loading a different stream URL (reusing the same |
Sadly it doesn't fix the problem. I have updated it to the latest version 1.4.x by that time but got same problem. We made a SPA with videos in carousel, it keeps creating players while carousel rotates and results in memory leak finally. |
@tonyjin @coooo77 @alphacentauri82 @pioug |
We are also experiencing this issue. Any updates @tonyjin ? |
Describe the bug
When using player for SPA(single page application) in vue, leaving and entering the route using player may cause player malfunction.
To Reproduce
open app in local environment http://localhost:8080/
enter back and forth between Home and About page
Expected behavior
ivs player can be delete correctly and works correctly when creating player.
Screenshots
_2021_06_21_14_26_58_264.mp4
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: