Use HTML's embed tag + encoding to set up a web player

Source: Internet
Author: User

Do you want to know how players are often formed on the Internet? Coming to schoolEmbedPlease try again!

Embed is the most common element in HTML.Phonograph,VideoIn the website


The following tutorial teaches you how to set up a video player in a video.Windows Media Player 11As An Example

Embed......
The above is the standard of the embedded embed. However, this method is incomplete because it does not have any attention.

So next, we will discuss the part that supports the embed standard.Attribute(Adequacy) how to set the priority

1.Connecting links 

Embed src ="Website"
SRCAttention is the case that the video is to be played. It is the core attention required by the embed standard during playback.

Common Secondary region names:MP3,WMA,WMV,Wav,ASF,Mid,Rm,RA,Ram,Avi,MPG,MPEG,MoV

2.Size 

Embed src = "website address" width ="Bytes"Height ="High"
After entering the score, the player'sDegree of Parallelism,Height

3.Automatic playback 

Embed src = "website address" autostart ="True"
AutostartPlayback is used to control whether the player needs to be played automatically or not. If not set, the playback value is false.

4.Replay playback 

Embed src = "website address" loop ="True"
LoopPlayback is used to control whether the player needs to be replayed or not. If not set, the playback value is false.

5.Playback times 

Embed src = "website address" loop ="Count"Playcount ="Count"
LoopMemory-based out-of-memory control settings allow you to determine the number of replay playback times (ie is not used)

If you want to support the IE compiler at the same time, you need to add additional features to the compiler.Playcount

6.Volume size 

Embed src = "website address" volume ="0"
VolumeAttention can be used to control the volume. The value 100% indicates the maximum volume. When not set, the volume is only 50%.

7.Upload progress bar

Embed src = "website address" showtracker ="False"
ShowtrackerEncoding is to control the bar pulling in the player. If this parameter is not set, the setting value isTrue

8.Hide volume and press volume

Embed src = "website address" showaudiocontrols ="False"
ShowaudiocontrolsAttention is the volume-based adjustment. If this parameter is not set, the value isTrue

9.Hide other tokens

Embed src = "website address" showpositioncontrols ="False"
ShowpositioncontrolsCompile is to control the other round-robin. If this parameter is not set, set the valueTrue

10.Show related information

Embed src = "website address" showstatusbar ="True"
ShowstatusbarCompile is to control the other round-robin. If this parameter is not set, set the valueFalse

11.Disable Right Sequence

Embed src = "website address" enablecontextmenu ="False"
EnablecontextmenuAttackers can obtain the access address from the player by pressing the right button. If this parameter is not set, the preset value isTrue

12.Specify the playback type

Embed src = "website address" type ="Playback type"
TypeAttention is very important in network security. You can use the name of the secondary member played by the root member,

In addition, what is the content of the stream play case? Prevent the website from being shelved.

The following table lists the types that the secondary names correspond:

Secondary region name Differences
MP3 Audio/MPEG
WMA Application/x-mplayer2
WMV Application/x-mplayer2
Wav Audio/X-WAV
ASF Video/X-MS-ASF
Mid Audio/Mid
Rm Audio/X-PN-RealAudio
RA Audio/X-PN-RealAudio
Ram Audio/X-PN-RealAudio
Avi Video/X-msvideo
MoV Video/QuickTime
MPG Video/MPEG
MPEG Video/MPEG

 

13.Hide the entire player

Embed src = "website address" hidden ="True"
HiddenThe player will be hidden, but the audio can still be played normally,
When not set, the parameter value isFalseIn additionWidth = "0 ″AndHeight = "0 ″It is also equivalent to the hidden directory.

※All features can be used in combination. For example, if you want to play a video or replay a video, you can use the playback method in the following example.

Embed src = "website address" autostart ="True"Loop ="True"
※In fact, the embed standard can also support many features. Currently, the high availability of these features is listed!

also, embed is the standard of Netscape in early versions.
currently, W3C standards refer to object + embed mixed use!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.