You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Within a static Next.js 15 app, a player has been implemented on the initial route and it plays with autoplay set. When the route is changed and the user returns, the player does not contain the current video and does not play.
Steps To Reproduce the error
Run the application
Change route to “Another page”
Go back to “Home” or use browser backwards navigation
Video has disappeared
Expected behaviour
The player should be consistent after the route has changed and the user revisits the video player's route, either by using the Nav link or by navigating backwards.
Bug Report
Describe the bug
Within a static Next.js 15 app, a player has been implemented on the initial route and it plays with autoplay set. When the route is changed and the user returns, the player does not contain the current video and does not play.
Steps To Reproduce the error
Expected behaviour
The player should be consistent after the route has changed and the user revisits the video player's route, either by using the Nav link or by navigating backwards.
I know that this behaviour probably has more to do with how the app router works. Nevertheless, I have hardly tried to solve the problem, even the docs were not very helpful at: https://next.cloudinary.dev/cldvideoplayer/configuration#refs
CodeSandbox or Live Example of Bug
↗︎ Live Example
Screenshot or Video Recording
Bildschirmaufnahme.2024-11-19.um.00.21.04.mp4
Your environment
Related issue:
#279
The text was updated successfully, but these errors were encountered: