• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Hour 18. Using Video > Embedding Video Versus Playing External Video

Embedding Video Versus Playing External Video

There are two general ways to play video inside Flash: either embed where you import, compress, and then place the video inside your main file or, compress the video into an .flv file and play it externally. The video file has to download in either case, but by keeping it external you can control when it downloads. Perhaps you can give the user a choice of three different videos and only download the one they select. Embedding the video not only makes your main file bigger, but the quality isn't as good as playing an external .flv. Generally, the best route is to create an .flv to play externally. However there are two cases where embedding the video is a better option. One is when the video is very short (say, less than 30 seconds) and you don't want to bother with maintaining several files (the .swf and the .flv). I say short because a long embedded video with sound will begin to drift out of synchronization. The second reason to embed video is when you need frame-by-frame control. An external .flv can only pause on keyframes (which get added automatically, but may only appear a few times per second—much less frequently than every frame of video). If you want to let the user step frame-by-frame through a video clip of your golf swing, embedded video is a better choice.

Regardless of whether you plan to embed the final video or play an external .flv, you need to compress the video. That is, your source can be one of many video formats (such as MPEG or QuickTime) but it must be compressed using one of the Flash Player's two supported codecs. Namely, the older Sorenson Spark (which works in Flash Player 7 and Flash Player 6) or the newer, and much better quality, On2 VP6 codec (which requires users have Flash Player 8 or later).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint