Open agrathwohl opened 4 years ago
Implementation should include support for both audio and video players, i.e., wavesurfer
and player
.
It does not seem possible to grab and save the current player timecode from WaveSurfer, due to the async execution of the initApp()
responsible for launching the player. We will likely have the same problems with Shaka since it is also launched in the same fashion.
A cookie should be dropped when the user leaves a page where wavesurfer's
finished
event hasn't fired, containing the current playback time. This way, the next time the user navigates to the page, they will resume where they last left off.Can take inspiration on how to implement this from this useful JWplayer doc: https://www.jwplayer.com/developers/web-player-demos/resume-playback-with-cookies/