Using Media Player in the web page

xiaoxiao2021-03-06  40

Using Media Player in the web page November 12, 2004, the method of embedding Media Player in the web page is relatively simple, as long as the HTML is used.

Yes, as shown below.

Where ID is the name of the object, and when the user is controlled by JavaScript to control the name of the object when the Media Player is controlled, it can be accessed. CodeBase indicates that you can get from the URL specified when you have no Player controls in your user's browser. Of course, you can use the Player object.

To specify parameters for it. As follows:

The "FileName" parameter represents the logistics or stream of MEDIA Player to play. "ShowControls" indicates whether a control bar is displayed during playback. Madia Player has a lot of parameters, and we will not be detailed here. Readers If you need to know more detailed content, you can refer to the relevant part of the Media Player SDK. The method of embedding Media Player in the web page is relatively simple, as long as it is in HTML

Yes, as shown below.

Where ID is the name of the object, and when the user is controlled by JavaScript to control the name of the object when the Media Player is controlled, it can be accessed. CodeBase indicates that you can get from the URL specified when you have no Player controls in your user's browser. Of course, you can use the Player object.

To specify parameters for it. As follows:

The "FileName" parameter represents the logistics or stream of MEDIA Player to play. "ShowControls" indicates whether a control bar is displayed during playback. Madia Player has a lot of parameters, and we will not be detailed here. Readers If you need to know more detailed content, you can refer to the relevant part of the Media Player SDK. If the user needs to control the Media Player to be controlled with JavaScript. In this example, Media Player is embedded in the web page, with some buttons on the right side of Media Player, using these buttons users to control the MEDIA Player's playback activity. The HTML code of these buttons is as follows:

The corresponding JavaScript code is: