Embedding method of flash video format (flv, swf) files in html files_HTML/Xhtml_Web page production

WBOY
Release: 2016-05-16 16:38:16
Original
2098 people have browsed it

Flash file formats: .FLV and .SWF

There are two extensions available for flash video format: .flv and .swf. How are they different?

(1) A .flv file (flash video) is a picture-based video stream and audio. If you are running a streaming service, flv would be a good choice. The upstream condition is that any part of this file can be accessed by the client terminal and is not waiting to be downloaded at any time. Then again, running a streaming service is expensive.

(2) .swf is also a Macromedia Flash file format and is a complete video-audio file with scripts and more. This will facilitate HTTP (progressive) downloads, also known as "psuedo streaming". When part of the file is downloaded, the video clip plays immediately, but the client will wait for the flash file fragment to download before accessing it (no fast forwarding) unless the entire file is downloaded in its entirety. This is what we often talk about, it is a simple, inexpensive, and convenient way to stream your video media. SWF is not the official abbreviation. Some people have claimed that it is the abbreviation of "ShockWave Flash" or "Small Web Format".

To embed flash in the page, you can use the following method:

Copy the code
The code is as follows:

codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash .cab#version=9,0,16,0"
width="320" height="400" >




type="application/x-shockwave-flash">



What should be noted here is: and
But after writing this, although the swf format files can be displayed on the page, the flv format files cannot be played. After struggling for a while, I summarized a solution from dreamweaver:

Copy the code
The code is as follows:













这里多了一个版本控制的方法MM_CheckFlashVersion()。

下部分和swf的写法很相似,但是还略有不同。
总结一下,flv格式嵌入有3个要点:1,播放器FLVPlayer_Progressive.swf,这个文件必不可少,而且这个文件要和flv源文件在一个文件目录下(暂时也没有找到原因)2.皮肤skinName=Clear_Skin_3,皮肤可以更换,同样也是必不可少的,要和flv源文件在一起。3.源文件,streamName,这个参数显示源文件的文件名,不带后缀,当文件名为中文的时候,dreamweaver会知道把那个名称转换为一大串。。。。当html文件和flv文件不在同一个文件目录下面的时候,需要带上文件路径(这个在项目中要特别注意)。

 

图示中同一个页面使用了两种皮肤,一个设为自动播放,另一个为手动播放。文件格式为flv。
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template