treehouse : what would you like to learn today?
Web Design Web Development iOS Development

*sigh* Embedding .swf video

  • I feel like such a noob asking this but this is something I haven't had to do until now.

    I've got an swf video that I converted from an MOV file. I can embed it in the page using the <object> and <embed> tags and get the dimensions in there and whatever and get the video to play. I got that.

    What I don't get is how do I get the play controls to show? If the video is set to not play automatically, how does the user start the video? How would the user pause it?

    This is something I should know how to do by now.... but I've never done this before.

    Thanks,
  • Are you able to use Flash at all?
  • Yeah, you're best off with a prebuilt flash script that'll let you specify where the video is, and it'll take care of controls and the like. Google around for "swf player" and the like, and you should find some decent ones for free.