FLV video cannot be played under IIS6.0
Flash video because of its high compression rate and excellent download speed, the outlook is generally optimistic, but also for the Flash courseware to add a lot. However, in FLV video playback, there are two headache problems
One, FLV video cannot invoke the problem in IIS 6.0
Earlier versions of IIS did not need to make any changes to the Flash video stream. In the default Web server IIS 6.0 that is included with Windows 2003, the server needs to use the MIME type to confirm that the FLV file is streaming. There are roughly three ways to solve the problem:
1. Modify the server. Since there is no FLV file type on the Web server, we add it through IIS: click start → programs → administrative tools → IIS Manager, step through the local computer, Web site, right-click on your website, select Properties, click HTTP header. tab → Click the MIME type button, click the New button, enter the. flv in the Extension box, enter the MIME type box
"Flv-application/octet-stream" In fact, "MIME type" is just a description, enter anything can (1), and then OK.
Of course, this approach only works for your own host, so you have the opportunity to change IIS. For virtual hosts, you cannot add MIME types for IIS.
2. Change the extension name. Since the FLV video file cannot be recognized on IIS 6.0, the extension "FLV" is changed to a file type such as SWF, JPG, RAR, etc. that IIS deems legitimate. Of course, the call to FLV video in the Flash Master file should also be changed accordingly, such as "Mymedia.setmedia" (http://gbzx.008.net/swf/cheers friend. flv "," flv "); Will change to "Mymedia.setmedia (" http://gbzx.008.net/swf/cheers to friends.) RAR "," FLV ");" Wait a minute. 3. Borrow the main document. In general, Web servers have default documents enabled, such as index.htm, Default.asp, and so on, and when you access a Web folder, IIS automatically searches for the default document in that directory. If your flv file is "cheers friend." FLV ", which is called in the main file:
"Mymedia.setmedia (" http://gbzx.008.net/swf/cheers friend. flv "," flv "); Then, you only need to build another name "Cheers friend" in the SWF folder on the virtual host. FLV "folder, and then" Cheers friend. " FLV "file renamed" index.htm "to" cheers friend. " FLV "folder. In this way, "Cheers to http://gbzx.008.net/swf/friend." FLV "visit became a toast to" http://gbzx.008.net/swf/friend. " Flv/index.htm "of the visit!
All in all, the method is fundamentally modified, once and for all to allow your site to support Flash video streaming, but only if you have to have the right to modify IIS; Method Two is the strongest, because no matter what kind of website, I am afraid not to upload jpg, rar file The advantage of method three is that the SWF file that calls the FLV video is not changed, but for each video it creates a new folder with the same name, and then places the FLV video in it and renames it as the default document for the Web site.
Workarounds for IIS settings that allow files such as. exe to be downloaded
1. Set the MIME to allow IIS to support more file types, which can be skipped if there is already an. exe in the MIME type. Open IIS, select Server, right click, property with MIME type% L8 U) q M "y-s add extension:. exe
Type: application/octet-stream$ [; s! u)}% |3 x5 ^ ' Q
F
2. If the previous step does not solve the problem, you can set the site home Directory access permissions. $ j+ n0 g F. m (g:?
Open IIS Manager, right-click on the Properties-home directory, set the Execute permission to "none" or "script only", that is, cancel the "executable file".
Find the IIS Execute permission settings, the system is "pure script or executable file", changed to "pure script", again try to download the. exe file, finally jumped out of the Thunder Download prompt dialog box, set up successfully. + M. b! d/j$ y/f* H
G1 J |# u
3. If the previous step does not resolve the problem, you can disable all unknown CGI extensions in the Web service extensions in IIS Manager, and all unknown ISAPI expansions, leaving only ASP and ASP. (More dangerous)
FLV video cannot play the processing method under IIS6.0