How to add flash video format (flv, swf) files in html

php中世界最好的语言
Release: 2018-02-05 09:23:19
Original
4824 people have browsed it

This time I will show you how to add flash video format (flv, swf) files in html. What are theprecautions for adding flash video format (flv, swf) files in html?What are the following? This is a practical case, let’s take a look at it.

Flash file formats: .FLV and .SWF

Flash video format has two extensions available: .flv and .swf. How are they different?

(1) A .flv file (flash video) is a video stream and audio based onpicture. 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 the Macromedia Flash file format, which is a complete video-audio file and has 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".

You can use the following method to embed flash in the page:

       
Copy after login

What should be noted here is:

 
        
Copy after login

These two places are the locations of swf files. For the name and other parameters, please refer to the introduction in the link above.

But after writing this, although the swf format files in the page can be displayed, the flv format files cannot be played. After struggling for a while, I summarized a solution from dreamweaver:

 
Copy after login

There is an additional version control method MM_CheckFlashVersion().
The lower part is very similar to the swf writing method, but slightly different.To summarize, there are three key points for embedding flv format: 1. Player FLVPlayer_Progressive.swf, this file is essential, and this file must be in the same file directory as the flv source file (the reason has not been found yet) 2. Skin skinName=Clear_Skin_3, the skin can be changed, it is also essential, and it must be together with the flv source file. 3. Source file, streamName, this parameter displays the file name of the source file without a suffix. When the file name is Chinese, dreamweaver will know to convert that name into a large string. . . . When the html file and the flv file are not in the same file directory, you need to bring the file path (this should be paid special attention to in the project).

I believe you have mastered the methods after reading these cases. For more exciting information, please pay attention to other related articles on the php Chinese website!

Related reading:

How to set input to read-only effect through disabled and readonly

Google Browse label and How to solve the input spacing problem

How to implement refresh redirection of HTML header tag meta

The above is the detailed content of How to add flash video format (flv, swf) files in html. For more information, please follow other related articles on the PHP Chinese website!

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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!