I’m calling an API and setting the video URL obtained from its response to VideoJS player. I checked whether the VideoJS has any events triggered on replay button, but it triggers the play event itself.
I need to handle this below scenario: When the video gets ended player.on('ended', () => {})
, user will press the replay button in VideoJS player, and can replay the new generated URL.
I did try to forcefully pause the player, and update the source URL using JS code. Did also try to reset the player, but nothing worked.
1