Search Perform an advanced search query SOFTPEDIA
 
SOFTPEDIA
Updated one minute ago
HomeSubmit a program for being reviewedAdvertise on our websiteGet help on surfing our websitesSend us your feedbackGet information about our XML/RSS backend and how to use itBrowse the news archiveVisit our discussion forumVizitati forumul in limba romana



KLIP
  1. HOME
  2. SCIENCE
  3. TECHNOLOGY
  4. WEBMASTER
  5. SECURITY
  6. MICROSOFT
  7. LINUX
  8. APPLE
  9. GAMES
  10. TELECOMS
  11. REVIEWS
  12. LIFE & STYLE
  13. EDITORIALS
  14. INTERVIEWS
  15. RSS
Welcome!
Hello, Guest

Login if you have a Softpedia.com account.

Otherwise, register for one.

TIPS AND TRICKS

Windows Media Player in HTML

- Inclusion of Multimedia Content in Web Pages

By: Catalin Bocanu, Web News Editor

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:

CODE
<html>
<head>
<title>Multimedia Content in HTML</title>
</head>
<body>
<div>
<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" width="400" height="400">
<param NAME="src" VALUE="amovie.mpeg">
<param NAME="autostart" VALUE="true">
<param name="controller" value="true">
</object>
</div>
</body>
</html>


In this code, the classid is an identifier for the Windows Media Player ActiveX control. The value marked between quotes coresponds to Windows Media Player version 7.0 or a later one. If the ActiveX control is not installed on the visitor's computer, the web browser will install it automatically.

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:

CODE
<div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="400">
<param name="src" value="afile.swf">
</object>
</div>


There are also other methods for manipulation of multimedia content inside web pages, but this short introduction should provide you with a useful insight over the general mechanism of media player integration in HTML pages. Based on the code presented in this article, you should try to include other ActiveX controls in your web pages and to customize the corresponding objects' behaviour.


MORE RELATED ARTICLES: The Basic Structure of a HTML Template Web Site Development with WYSIWYG HTML Editors Optimal Usage of WYSIWYG HTML Editors: KompoZer Case Easy Building of Web Applications with HTML/OS Automatically Create HTML Photo Albums with Image Thumbnailer and Converter Software Google Page Creator A Simple Javascript Example A Simple Calculator with HTML Forms and PHP The World of PHP The Simplest Contact Form Script with HTML and PHP
 
Comments | Link here | Subscribe
Print | Send to friend
Today's News | Yesterday's News

Search:


6th December 2007, 23:50 GMT | Copyright (c) 2007 Softpedia | Contact:
Read by 3,398 user(s) | Rating: | 6 vote(s) so far | Cast your vote:
Windows Media Player in HTML - USER OPINIONS




We are sorry, there are no opinions available for this article.






SHARE YOUR OPINION ABOUT Windows Media Player in HTML

Since you are not logged on, your comments will have to be approved before being displayed.
Click here to login, or register.
Your Name:
Your Email:
Type in the result:
Your Opinion:
 


DO YOU WANT TO CONTACT US?  

If you have some comments or you want to send us some information you can send us an email directly to .
You can use the form below for the same purpose.
Your full name: (at least 3 characters)
Your email address: (at least 5 characters)
Message subject: (at least 5 characters)
Message text:
(at least 10 characters)
Type in the result:
 
 



© 2001 - 2008 Softpedia. All rights reserved.
Softpedia™ and Softpedia™ logo are registered trademarks of SoftNews NET SRL.
Copyright Information | Privacy Policy | Terms of Use | Contact Softpedia | Update your software | Archive