Posted comments (19)

Posted by Mike at August 14, 2009 08:25:23 CEST
hey bro, i put your code but i also want one code that skip 10 second of video automatic. i had it but i lost. plz if you have email me.
Posted by Francisco Hilario Pinotti at December 8, 2009 22:11:09 CET
You can use the code below without <embed> works fine.
----------------------------------------------
<object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
id="player" width="475" height="408">
<param name="url" value="your_video.wmv" />
<param name="src" value="your_video.wmv" />
<param name="showcontrols" value="true" />
<param name="autostart" value="true" />
<!--[if !IE]>-->
<object type="video/x-ms-wmv"
data="your_video.wmv"
width="475" height="407">
<param name="src" value="your_video.wmv" />
<param name="autostart" value="false" />
<param name="controller" value="true" />
</object>
<!--<![endif]-->
</object>
Posted by Felix at January 20, 2010 16:14:56 CET
Hi, Thanks for the tutorial works great! One question: I'm using a playlist in an m3u file and I'm trying to get the list to automatically start over after the last song finishes. It seems playcount=0 is supposed to make this happen but the playlist just ends after the last song. I also tried loop="true" but that didnt work either. Also, do you know if I can have mp3s and movie files in the same playlist? Is it still an m3u file? Any help would be great. Thanks again
Posted by Steve Moss at April 23, 2010 14:25:19 CEST
Hi.

Thanks for the very useful reference for the media player.

Do you know of any way to change the style of the player's controls when displayed in a web page (eg to use a darker background)? It seems it should be possible to create a skin file of some sort, but I can't find any guidance on this.

Steve
Posted by Maja at August 22, 2010 05:12:44 CEST
Hi there, I am having a big problem, which you will find on my website. I cannot find the coding for a windows media player without the green writing on the image. To be clear, the writing is like a buffering number system that indicates the speed of the video clip playing. Please help me i am in great hurry to complete this site. Thank you
Posted by Terence L. Johnson at May 20, 2011 14:44:15 CEST
Hi all,

How do I change the embedded code on a windows media file, so that once posed on facebook, it would be difficult for the average person to downoload the video file.

Thanks,

Terence L. Johnson
Posted by Michael Brand at October 16, 2011 04:13:05 CEST
This has been of the greatest help. I have spent more time than I want to mention looking for just this soultion. This works great in IE 7& 8. Just one small problem in Firefox and that I ned to enable a drop down menu. If possible could you add the code or e-mail me the code on how to use the menu option. Thanks a million
Posted by Jrosworld at November 16, 2011 15:57:15 CET
Question: What is the height of the media player controls? And should I add this amount to the height property in order for it to display correctly?
Posted by Sid at May 3, 2012 20:30:22 CEST
How do I enable a picture frame on the Windows Media video when the page load occurs but there is not autostart. I would like visitors to my page to see a preview still of the video but have the option to start the video themselves and I don't know how to get around the blank screen that appears. Thanks!
Posted by Felix at August 1, 2012 21:42:25 CEST
I need help. Please take a look at my code below. It works fine on internet explorer, but fails on Fire Fox. It fails on the lines where you call "dplayer.settings.playcount", "dplayer.settings.autostart" and "dplayer.controls.play". I don't know why it is failing. Does Fire Fox not support any of these JavaScript functions? What do I need to do to get it working in Fire Fox? Fire Fox is very unforgiving.

Thanks for your help. You may publish or email me.

------ Code ----------------------------------------------
<OBJECT id="darkplayer" WIDTH="250" HEIGHT="250" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject">
<param name="url" value="media.wma">
<embed id="mediaplayer" type="application/x-mplayer2"
name="MediaPlayer"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer"
SRC="media.wma"
WIDTH="250"
HEIGHT="250"
</EMBED>
</OBJECT>

<script language="JavaScript">
<!--

playMedia(0);

function playMedia(playnumber){
    var dplayer = document.getElementById('darkplayer');
    var randsg = playnumber;
    var playCount = "2";

    var songs=new Array();
    songs[0]="/cyberinvader/content/cwebv84ntvd.nsf/flashbyid/webv8w3sul/$File/KCEE+Promotions+Web+Site+Introduction.wma";
    songs[1]="/cyberinvader/content/cwebv84ntvd.nsf/flashbyid/webv8e2cdw/$File/Canyon__Mansion_On_The_Mountain.mp3";
    songs[2]="/cyberinvader/content/cwebv84ntvd.nsf/flashbyid/webv8k74qf/$File/Slobberbone__Sister_Beams.mp3";

    if(songs[0]){
        if(dplayer){
            dplayer.url = songs[randsg];
            dplayer.src = songs[randsg];
            dplayer.settings.playcount = playCount; //gets error on fire fox
            dplayer.settings.autostart = true; //gets error on fire fox
            dplayer.controls.play(); //gets error on fire fox
        }
        
    }

}
//-->
</script>
Posted by X at September 9, 2012 09:10:48 CEST
Setting up the media player in a webpage was easy enough. The problem I'm having is opening the page with a parameter specifying the source video file. I'm not versed in the URL syntax to get this to happen and don't even know if it can be done. Is it something like:
"C:\Users\X\Desktop\Doc1.htm"?url="C:\MyVideo.avi"

?
Posted by Gingle at January 2, 2013 14:20:15 CET
Is there any way i could get the current status using JS. EG: i would like to know if the player is currently buffering the stream or has lost the connection.
Posted by Mayank at January 9, 2013 08:39:41 CET
I tried the above mentioned Object Code for Media Player, I can see the structure, but it is not playing video. Please suggest what to do next...?
Posted by Mostafa Hosseinimehr at May 1, 2013 14:40:55 CEST
Hi,
Here's a question. I have a volume control like thingy on my web page. Now, I want to know how I could bind this control to JavaScript code or HTML(in Firefox). In other words, what are the means to control the volume of the plugin using script-based code?
Posted by Vipin at May 23, 2013 15:47:50 CEST
for IE8 support, what can be done to play media files on browser ?

Thanks
Posted by Jim at August 15, 2013 02:11:17 CEST
I'm looking for the solution to a query posted back on May 3, 2012. I'm wanting to do the same thing ... display an image on the player window till the user clicks the play button.

Posted by Sid at May 3, 2012 20:30:22 CEST How do I enable a picture frame on the Windows Media video when the page load occurs but there is not autostart. I would like visitors to my page to see a preview still of the video but have the option to start the video themselves and I don't know how to get around the blank screen that appears. Thanks!
Posted by Denis at December 12, 2013 21:55:48 CET
Hi Thank you for this post it is very good.

I would like to set the video in a way that it start on the 00:01:30. How can do it?

Thank you
Posted by Mando at June 25, 2014 03:34:41 CEST
code only plays in firefox. it does not play in chrome or IE. any suggestions?
Posted by Paul-emile Paquette at June 24, 2015 16:03:08 CEST
Can you help me to adapt my mediaplayer has Mozila Google Crome Internet Explorer and many other kinds of programs with the plugin that automatically play when it intallerais listen to my station Please

Paul-Emile Paquette
[email protected]



<!-- Début | Lecteur -->
<object id="MediaPlayer" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" type="application/x-oleobject" standby="Loading Microsoft Windows Media Player components..." width="450" height=148 align="middle">
<param name="enabled" value="-1" />
<PARAM name="autostart" VALUE="-1" />
<param name="defaultframe" value />
<param name="enablecontextmenu" value="-1" />
<param name="stretchtofit" value="-1" />
<param name="windowlessvideo" value="-1" />
<param name="url" value="http://pages.videotron.com/asonfm20/Internet_Radio/AsonFM_690.asx" ref />
<param name="uimode" value="full" />
<param name="volume" value="100" />
<param name="rate" value="1">
            <param name="balance" value="0">
            <param name="currentPosition" value="0">
            <param name="playCount" value="1">
            <param name="currentMarker" value="0">
            <param name="invokeURLs" value="-1">
            <param name="baseURL" value>
            <param name="mute" value="0">
            <param name="fullScreen" value="0">
            <param name="SAMIStyle" value>
            <param name="SAMILang" value>
            <param name="SAMIFilename" value>
            <param name="captioningID" value>
            <param name="enableErrorDialogs" value="0">
<embed type="application/x-mplayer"
        pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
        SRC="http://pages.videotron.com/asonfm20/Internet_Radio/MaxRadio.asx"
        name="MediaPlayer"
        width=240
        height=128
        autostart=1
        showcontrols=1>
        
</EMBED></OBJECT>

<!-- Fin | Lecteur -->