Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resume playback functionality #1

Open
agrathwohl opened this issue Sep 1, 2020 · 2 comments
Open

Resume playback functionality #1

agrathwohl opened this issue Sep 1, 2020 · 2 comments

Comments

@agrathwohl
Copy link
Member

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
Copy link
Member Author

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

@agrathwohl
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant