Multimedia content can be rendered directly from HTML pages in modern web browsers. The multimedia content inclusion in web pages can be made through different coding methods. The simplest way to add images, music, videos or any other media files is by using the object HTML element.
It permits the insertion of applets, plug-ins, as well as HTML documents in a given HTML file. The objects can be easily manipulated by specifying certain parameters that allow the control of their instances. In other words you are able to modify the global behavior of a given object.
The next HTML code embeds the Windows Media Player in an HTML document:
The default width and height of the player can be altered by specifying the desired values. The first parameter is referring to the media source which in this case is a movie of mpeg type. But one can change the media type by replacing the movie with an mp3 or wav file for example. The new file must be in the same directory with the HTML file.
If the autostart parameters have the value set to true the media will automatically play when the web page is loaded. The Media Player graphical user interface elements can be enabled or disabled from the third parameter value (true or false). Other parameters can be added to change volume balance, full screen display, playback rate and more.
You are also able to add other ActiveX control types in HTML documents, such as Flash Players: