When a password protected Vimeo video is opened, the password entry field is displayed as expected.
However, after the password is entered and the video shows and is then played, the video duration isn't set.
This means that progress events aren't dispatched by react-player.
There are at least 2 fixes that could be applied:
- Change the progress function in Player.js to send progress events even if duration is zero (progress.playSeconds & progress.loadedSeconds would still contain useful information).
- If duration is not set when "play" and "seekTo" in Vimeo are called, call player.getDuration to set the duration before calling onPlay or setCurrentTime.
Would a pull request with one of these fixes be the way forward?
Fix 2 above seems more complete as duration as well as progress events is now available.
Thanks
When a password protected Vimeo video is opened, the password entry field is displayed as expected.
However, after the password is entered and the video shows and is then played, the video duration isn't set.
This means that progress events aren't dispatched by react-player.
There are at least 2 fixes that could be applied:
Would a pull request with one of these fixes be the way forward?
Fix 2 above seems more complete as duration as well as progress events is now available.
Thanks