Media player in the web page

zhaozj2021-02-16  55

This article is purely written. Basically I want to help you, but if you can see it, you will feel very fun. At least you can cheat MM, but now the MM is very powerful, maybe I can't swindle. I am mixed with myself.

You can often see some of the players written in the network. These players look very good, because I hope that my magazine is not so stuffy, so I am determined to write a simple, because it will make it too complicated The client's resources are very nervous. So how do you do it? In fact, the idea is simple. I know that the way to include the player in HTML is much like using ActiveX control, but do this, you will use the client to undertake unnecessary Overhead. So I use HTML to bring a markup. Although this tag is generally used to place the image. But can also be used to play some standard format multimedia. Such as AVI, WAV, MID, MP3, etc. in this tag There is an attribute DYNSRC, which is specifically used to engage in this work. (There is also a record in the MSDN). This property is the source of the media file. Such as follows:

Where LOOP is used to control the number of cycles, there is no current. Is it simple? Maybe now you also think of how to control it to play media files. Yes, the key is to control the DYNSRC's property. So very Obviously, you want to use Script. Most client browsers are currently supporting client scripts. The program ideas are as follows: