JavaScript API to pause/play the animation #3198
-
Hi, I just discovered Ruffle and I am enthusiastic with the chance to reliven some old animations. Thank you for making it! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It works, I use it by myself to allow flash videos to be paused/resumed. Simply call You can also check out our implementation here: https://www.softcreatr.com/z0r/ |
Beta Was this translation helpful? Give feedback.
-
Thank you. Unfortunately, it does not solve my problem with the particular swf file that I need to convert. It plays nicely with Ruffle and I can have pause / resume working as you say. |
Beta Was this translation helpful? Give feedback.
It works, I use it by myself to allow flash videos to be paused/resumed.
Simply call
window.Rplayer.pause()
orwindow.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: #3324You can also check out our implementation here: https://www.softcreatr.com/z0r/