Windows Media Playaer for Your Website (Play Audios and Videos)

Written by @m_k_amin 10 December 2012

Having a Media Player is very important for websites that want to show movies or music on them. The reason is that the users who specifically want to download a media from a website tend to watch it first! Using a media player like windows media player will also increase the number of visitors. The following code does this for you and plays the media we have selected. Besides, it has the ability to pause and move the media back and forth.

Code Snippet:

                                                
                                                <!-- this script is provided by https://www.htmlfreecode.com coded by: Kerixa Inc. -->
<object id="mediaplayer" classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95"  standby="loading microsoft windows media player components..." type="application/x-oleobject" width="320" height="310">
    <param name="filename" value="./test.wmv">
    <param name="animationatstart" value="true">
    <param name="transparentatstart" value="true">
    <param name="autostart" value="true">
    <param name="showcontrols" value="true">
    <param name="ShowStatusBar" value="true">
    <param name="windowlessvideo" value="true">
    <embed src="http://www.htmlfreecode.com/files/sample617.mp4" autostart="true" showcontrols="true" showstatusbar="1" bgcolor="white" width="320" height="310">
</object><a target='_blank' href='https://www.htmlfreecode.com' style='font-size: 8pt; text-decoration: none'>Html Free Codes</a>                                                
                                            

Example:


About @m_k_amin

This user is pending a biography.

M

Comments


Here you can leave us commments. Let us know what you think about this code tutorial!

0 / 300

TRENDING POST
1
2
3
4
5
VISITORS
Online Users: 12
Recent Members: carfaoui, Ali7hry, alexnicola, Adam20, Prashanthcs11
advertisement 2