SacredData / jekyll-hypermusic

A HyperMusic jekyll template!
https://multipli.city
MIT License
2 stars 1 forks source link

Resume playback functionality #1

Open agrathwohl opened 4 years ago

agrathwohl commented 4 years ago

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/

agrathwohl commented 4 years ago

Implementation should include support for both audio and video players, i.e., wavesurfer and player.

agrathwohl commented 3 years ago

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.