Skip to content

JavaScript API to pause/play the animation #3198

Answered by SoftCreatR
angel-herraez asked this question in Q&A
Discussion options

You must be logged in to vote

It works, I use it by myself to allow flash videos to be paused/resumed.

Simply call window.Rplayer.pause() or window.Rplayer.play() to make it work. However, it's currently hard to tell, if an instance is playing or paused. For this, I'm toggling a simple CSS class to determine it by myself. It works in most cases. The only exception I'm aware of is on page load, but that's fine, I guess. You may support my idea: #3324

You can also check out our implementation here: https://www.softcreatr.com/z0r/

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by relrelb
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants