How to reset videojs ControlBar on error? #8473
Unanswered
OutofSkills
asked this question in
Q&A
Replies: 1 comment
-
@OutofSkills what about Something like: player.on('error', ()=>player.reset()) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to reset the player's previous video duration, and current time when an error is triggered. I'm struggling with this small issue for a while and I wasn't able to find a good solution, other than css:). Also I tried the player.currentTime(0) and player.duration(0) methods but it ends with an issue on iOS, it's setting a vjs-ended class and displaying the replay button when having an error and then playing another video.
Beta Was this translation helpful? Give feedback.
All reactions