Controlling a video file with JavaScript

Hello my new best friends. I’m a tenderfoot initiate into your group. I have been searching for a method to convert SWFs into HTML. One idea I’ve considered is to use QuickTime to convert them into MOV video files, then use JavaScript to restore user control. My question is, is that possible. For instance, are there JavaScript commands that will stop playback at designated frames, resume playback when the screen is clicked, and goto a specific frame after a button is clicked.

If you use the video element in HTML to display the video, you have a lot of control over the playback. This article goes into more detail on relevant methods you can rely on: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Client-side_web_APIs/Video_and_audio_APIs

One thing to note is that playback is time-based and not frame-based. You can jump to a particular time value, but you can’t jump to an individual frame in the traditional Flash/SWF sense :slight_smile: