The source of the FLV video file
first of all, this flash video, that is, flash videos.
Why do you use this? It's obvious that you need to play the video in the Web. We all know the general video file, or ASF format, WMV format using MediaPlayer for playback, or RM format with RealPlayer playback.
The problem is that different formats require you to choose a different player, which is not available to the local computer for users who do not have the appropriate player installed.
Also, because of the large capacity of these files, download slow, the view is not very smooth.
So, to solve the problem of players and capacity, the use of Flash has a way: All kinds of video files into Flash video files.
Player has embedded in the browser Flash Player, which is like everyone's machine, solve other general video files need to pick the player's problem, of course, this is the advantage of Flash.
Capacity, from the FlashMX2004 to support the conversion to Flash video, after the relevant settings, can reduce the capacity of the original video, the final conversion of the file name extension is flv.
Bottom line: The last thing you get is an FLV Flash video file.
So how does the flv file appear in the Web page? The FLV file is also just a video file, and its playback also requires the player, and the player is flashplayer.
The first method:
The local FLV file import is deployed into the Flash software, in the form of elements in the library, dragged into the scene, adjusted to the location, and published as a SWF file.
Note that the above files are not problematic for local testing, but when uploaded to the network, other browsers are unable to view them because the current player is invoking the local FLV file.
So, you need to adjust the path. First you need to upload the FLV file to a network space and get its exact path address.
Second, open the Flash software, select the FLV component, ALT+F7 Open the Component inspector, replace the path in "Contentpath" from the local address with the network absolute address
OK, debug an address to see:
If you still think the file is much more, just need a player and an flv file. So, to borrow Google's SWF player googleplayer.swf, you only need to provide the FLV path, in addition to the FLV, googleplayer.swf also supports MP3 files.
Specifically how to use Google's this player, danger students introduced a:
And also provides an online tool
The following shows the Google player that is set up through the above tools.
Of course, after all, this player is Google, as long as the URL of the parameters of the option to play the corresponding video file.
If you can get out of the first and second ways, and you don't want to use the Google player in the third way, then you have to write a SWF player yourself. Danger seems to have finished.
My approach is to download Google's player, and then put it in its own space, and then use the