Geekpedia Programming Tutorials






Embedding Windows Media Player into a web page

How to include the Windows Media Player plugin into your webpage so that you can play WMV or other video files. It also contains a list of the most popular attributes and parameters to pass to this plugin.

On Wednesday, December 7th 2005 at 09:36 AM
By Andrew Pociu (View Profile)
*****   (Rated 4.6 with 123 votes)
Contextual Ads
More HTML Resources
Advertisement
You probably saw many websites that include an embeded video player in their pages, such as the one in the images below.
Most of the time, the embedded video player is Windows Media Player, and in this tutorial I'll show you how you can embed Windows Media Player into a webpage.



Embedding Windows Media Player and playing a video


Open the HTML page in which you want the player embedded and place the following tag within the <body></body> tag where you want it displayed:





<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" name="mediaplayer1" ShowStatusBar="true" EnableContextMenu="false" autostart="false" width="320" height="240" loop="false" src="MyVideo.wmv" />




Be sure to have a video file named MyVideo.wmv in the same directory with the HTML file, or simply change the src attribute to point to the path of a real video file.



Most of the attributes of the <embed> tag are obvious, still it won't hurt to review them:



Windows Media Player Embedded
type - the type attribute defines the type of embeded object you'd like to use. This tag is mandatory for Windows Media Player to be emdedded in the web page.

pluginspage - in case the Windows Media Player plugin cannot be found on the visitor's computer, this link will point him to more information regarding this player.

name - this attribute assigns a name to this embeded object; this will allow you to access multiple embedded objects differently.

ShowStatusBar - wether the statusbar is shown or not, the statusbar being the black bar at the bottom which displays various information such as the name of the clip, elapsed time and total time.

EnableContextMenu
- if this attribute is set to true, the user will be able to access Window Media Player's context menu by right clicking the embedded player.

autostart - defines wether or not the video should start playing automatically when the page is loaded.

width and height - defines the size in pixels of the Windows Media Player embedded window. If you want the visitors to see the video at its original resolution, you should define the same size as the one of the video, but also keep in mind the controls of the embedded window (such as the statusbar) which are counted in this defined width and height. One better way of displaying the video at its original resolution is to omit the width and height attributes.

loop - set this attribute to true if you would like the video to continue looping, or to false if you want it to stop once it has ended.

src - the src attribute is mandatory since it defines the path to the file you want to play.



Ok, this was the quick and dirty way of embedding Windows Media Player plugin into a webpage, but there's more than this. If you want to specify more preferences such as the volume, the balance or the playback rate, use the following tags:






<OBJECT id="VIDEO" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject" width="320" height="240">

   <PARAM NAME="URL" VALUE="MyVideo.wmv">

   <PARAM NAME="enabled" VALUE="True">

   <PARAM NAME="AutoStart" VALUE="False">

   <PARAM name="PlayCount" value="3">

   <PARAM name="Volume" value="50">

   <PARAM NAME="balance" VALUE="0">

   <PARAM NAME="Rate" VALUE="1.0">

   <PARAM NAME="Mute" VALUE="False">

   <PARAM NAME="fullScreen" VALUE="False">

   <PARAM name="uiMode" value="full">

</OBJECT>




The CLASSID attribute of the <object> tag contains the class ID for Windows Media Player versions 7, 9 and 10. The width and height attribute specify the size in pixels of the entire plugin.

The child tags define parameters for this object, just like the attributes did in our first example of embedding the WMP plugin. I haven't included all the parameters, only the most popular ones which you need:



Windows Media Player Embedded
URL - this is a mandatory attribute that specifies the path to the file you want to play

enabled - wether or not the player and its controls are enabled to the user.

AutoStart - if set to true, the video will start playing automatically after the page has finished loading.

PlayCount - how many times the video will loop.

Volume - defines the volume on a scale of 0 to 100.

balance - the speaker balance, the range is from -100 (left) to 0 (center) and to 100 (right).

Rate - the playback rate; 1.0 is the normal playback speed, 0.5 is half and 3 is three times the normal speed.

Mute - wether or not the sound is muted.

fullScreen - if set to True, the video will run in full-screen mode when it starts playing.

uiMode - the user interface for the plugin; possible values are: invisible, none, mini and full.



There is more to be said about embedding WMP in a web page. You can create your own user interface if you don't want the visitors to use the default one of WMP, that's why this tutorial will perhaps be continued.
Digg Digg It!     Del.icio.us Del.icio.us     Reddit Reddit     StumbleUpon StumbleIt     Newsvine Newsvine     Furl Furl     BlinkList BlinkList

Rate Rate this tutorial
Comment Current Comments
by Nabeel Akhtar on Sunday, December 11th 2005 at 12:36 AM

Now Andrei ... this is nice... very helpful.. thanks

Nabeel
http://www.nabeelakhtar.net

by elavarasan on Friday, December 16th 2005 at 12:43 PM

excellent ....... this is very useful for me
thanks a lot

by vikram on Sunday, December 18th 2005 at 11:51 AM

Good tutorial for first timer

by Rizwan mirza on Friday, December 23rd 2005 at 01:15 AM

I need to start the clip in between so i need to define the start point and endpoint of clip in the param.. so can ne one please tell me what parameter should i set i n the object

<PARAM NAME="??????" VALUE="?????">

by Vu Quoc Viet on Tuesday, December 27th 2005 at 05:11 AM

It is a good tutorial.

However, what should I do if a user click on link of media file, then I will open a new windows to play that file? Thank you very much.

by ron on Monday, January 2nd 2006 at 11:32 PM

andrei, you said " I haven't included all the parameters, only the most popular ones which you need:"

could you please list the rest of the parameters (or tell me where i can find them) ? i know that you can adjust the brightness level on WMP... is there a parameter for brightness as well? thank you... and thanks for the article it was very helpful !

by Andrei Pociu on Tuesday, January 3rd 2006 at 03:19 AM

I'm afraid there is no parameter that allows you to specify the brightness level.
MSDN has a more complete list of parameters <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay10/mmp_sdk/paramtags.asp" target="_blank">here</a>.

For Rizwan: You can specify the start point in seconds from the beginning, using the <i>currentPosition</i> parameter.

by Patrick on Wednesday, January 4th 2006 at 06:50 AM

First of all, thank you for the tutorial. It was very helpful. I am wondering though if there is a way to have a wmp embedded in a HTML/DHTML/CSS only environment play a different song once one is finished. I was trying to use the player's ScriptCcommand and PlayStateChange events to then change the src attribute, but that does not seem to work, but I may be programming it incorrectly. Any ideas?

by Andrei Pociu on Wednesday, January 4th 2006 at 07:48 AM

Hi Patrick.
Have a look at this page: http://www.boutell.com/newfaq/creating/streaming.html

by lubos on Thursday, January 5th 2006 at 08:50 AM

hey this is very usefull but i want to use the media player for my radio broadcasting but it doesn't seem to work when everything is linked 2gether it still has no connexion to it!

plzzz help i ud appreciate that! thnx!

by Amit Dave on Friday, January 6th 2006 at 12:53 AM

Tahnk u very very much.
one of best tutorial for the begginer who wants to go ahead with some basic understanding to deal with.

still requires much more on this.

by Kris Strong on Friday, January 13th 2006 at 10:39 AM

When you embed a player onto a webpage, how can you get the controls to be black? I've seen it on other pages.

by Jim on Saturday, January 14th 2006 at 05:01 AM

After I embedded the play and set "loop" to true..... everything works perfect in EI but will not loop in FF
Please help,
Thank you Jim

by Andrei Pociu on Saturday, January 14th 2006 at 05:12 AM

Use the second method I showed in the tutorial (the one where param tags reside inside the object tag), and add the following param tag:

&lt;PARAM name=&quot;loop&quot; value=&quot;True&quot;&gt;

by Diane on Sunday, January 15th 2006 at 05:02 PM

Wow, this is the first time I got it to actually appear on my web page. I just can get a movie on it.
How do I do that step by step please. I know nothing about this. I have saved video slideshows from digital pictures that I have made movies out of. Please help

by Andrei Pociu on Sunday, January 15th 2006 at 05:08 PM

What format is your movie? Is it WMV?

by Diane on Sunday, January 15th 2006 at 05:11 PM

Well, I can play it with windows media player yes

by Diane on Sunday, January 15th 2006 at 05:15 PM

This is my website. I would like to show examples of a few movies for people to see.
www.memorytimeline.com

by Andrei Pociu on Sunday, January 15th 2006 at 05:17 PM

No matter which of the methods you try, make sure the movie file is in the same folder as the HTML file.

Then place the tag below in your HTML file, between the &lt;body&gt;&lt;/body&gt; tags, but remember to change the name of the file first from SampleName.wmv to whatever your file name is.

&lt;embed type=&quot;application/x-mplayer2&quot; pluginspage=&quot;http://www.microsoft.com/Windows/MediaPlayer/&quot; name=&quot;mediaplayer1&quot; ShowStatusBar=&quot;true&quot; EnableContextMenu=&quot;false&quot; autostart=&quot;false&quot; width=&quot;320&quot; height=&quot;240&quot; loop=&quot;false&quot; src=&quot;SampleName.wmv&quot; /&gt;

If it still doesn't work, let me know what browser you're using, and what does it happen when you press the play button?

Better yet, point me to the page where you tried to embed the Windows Media Player.

by Diane on Sunday, January 15th 2006 at 05:25 PM

ok, go to www.memorytimeline.com
as you can see, I have it on there but nothing else.
That stuff you told me is really really confusing. I will have to try and figure it out.

by Diane on Sunday, January 15th 2006 at 05:27 PM

wow, it takes up a lot of room also

by Andrei Pociu on Sunday, January 15th 2006 at 05:32 PM

Now rename the movie file to MyVideo.wmv and upload it to where you uploaded the Home.html file.
If you wish I can guide you through MSN Messenger (my id is andrei_pociu@hotmail.com), but I won't be available until tomorrow.

by Diane on Sunday, January 15th 2006 at 05:35 PM

it says movie file (mpeg)

by martin on Tuesday, January 24th 2006 at 05:38 AM

I have the player working BUT....

<param name="showControls" value="false">

shows all the controls.
How can I get only the volume button/slider to show?

by Andrei Pociu on Tuesday, January 24th 2006 at 08:11 AM

The volume slider should be visible. Please use the first tag listed in this tutorial and try again.

by Browser Ignoring my on Tuesday, January 24th 2006 at 09:53 PM

- I'm using the follwing code below to hide the video controls. They keep displaying in both Firefox and IE (latest versions). Is there something wrong with my syntax?


&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;div&gt;<br />
&lt;object width=&quot;320&quot; height=&quot;240&quot; border=&quot;0&quot; id=&quot;player&quot;&gt;<br />
&lt;param name=&quot;UIMode&quot; value=&quot;none&quot; /&gt;<br />
&lt;param name=&quot;URL&quot; value=&quot;bayless320.wmv&quot; /&gt;<br />
&lt;param name=&quot;autoStart&quot; value=&quot;true&quot; /&gt;<br />
&lt;embed width=&quot;320&quot; height=&quot;240&quot; src=&quot;bayless320.wmv&quot; bgcolor=&quot;#000000&quot; border=&quot;0&quot; pluginspage=&quot;http://windowsmedia.com/download/&quot;&gt;&lt;/embed&gt;<br />
&lt;/object&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;

by Andrei Pociu on Wednesday, January 25th 2006 at 04:39 AM

It doesn't work because you didn't include the CLASSID attribute of the object tag as I showed in the example.
Without the CLASSID, it embedes to an older version of WMP that doesn't support the "uiMode" tag.

Also, the embed tag shouldn't be located inside the ojbect tag, the embed tag is just a separate method of embedding the media player. Please read the tutorial more carefully.

by Abhishek on Friday, January 27th 2006 at 03:55 AM

Its Really Good One

by aviram on Sunday, February 5th 2006 at 07:43 AM

how can i control the WMP with javascript?

by joe on Thursday, February 9th 2006 at 02:26 AM

I dont want a forward, fast forward, backward buttons in a windows media player. I want that param objects!

by Frances on Saturday, February 11th 2006 at 09:26 PM

Can anyone help me with something? I do not want WMP to autostart when the page loads, but I would like to put in a default image to appear before the user clicks play. Can anyone help? The parameter TransparentAtStart does not seem to exist in WMP 10 as far as I can see from the SDK.

by Kristine on Thursday, February 16th 2006 at 01:51 AM

Is there anyone there can help me how to embed a full feature Window Media 10 with a choice of seclection buton from Video 1 to Video 10 and from Song 1 to Song 10 on a website? Thank you

by Frances on Friday, February 17th 2006 at 11:29 AM

Kristine, I'm still new to this myself, but if you haven't already, you should download the Windows Media Player SDK from the microsoft website. This comes with samples, where you can look at the javascript that you can use to control the player. Still stuck on my problem though (see above!) Andrei - please help!

by Ralph on Saturday, February 25th 2006 at 01:13 AM

How in the world? I have been trying to figure out how in the world to display the "first frame" of the video so that there is at least an image that people can see before they click play to know what they will be viewing. Most of the code I come across displays a blank or empty window the video only comes out when they hit play. How can I display the first frame of the video so that people will know what video they will be playing? Any help would be appreciated. Thanks!

by Andrei Pociu on Saturday, February 25th 2006 at 03:26 AM

Hello Frances, Ralph.

The only way to display the first frame I can think of, is to use Javascript to play the video for 1 second, and then to automatically pause, on page load. However, unless you also decrease the volume to 0, there will also be sound playing for that 1 second.
You can use JavaScript to control the embedded Windows Media Player object, such as: myPlayer.Play() and myPlayer.Pause().

by Gian Wilson on Saturday, February 25th 2006 at 08:10 PM

Hi Kristine,
Is your information stored in a database? Will the choice of videos change dynamically? Or is it fixed?

by Frances on Wednesday, March 1st 2006 at 01:16 PM

Dear Andrei

Thanks for your advice. I have solved my problem by setting uimode = "invisible". This means that the background image behind the player object shows through (I have set the background image in CSS).

When the user clicks play, I am using javascript to change the uimode = "none." This solves the problem perfectly, so Ralph - if you can capture an image from your video using print screen (and making it the right size etc), you can set this as the background image.

You can even manipulate this background image based on player state, but let me know if you need any more help on this.

Now I have another problem. I have set autostart = "false" so that the media does not play immediately. However in Firefox, it still opens the media ready for playing as soon as it opens. I really do not want it to do this! How can I stop Firefox from automatically opening the media?

Any help much appreciated
Frances

by Andrei Pociu on Wednesday, March 1st 2006 at 06:48 PM

Hello Frances,

Yes, I experienced the same problem with Firefox, lately. The solution is to use autostart="0" in the &lt;embed&gt; tag instead of autostart="false", which Firefox appears to ignore.
Let me know if that solves your problem, it worked for me.

Best regards,
Andrei

by Frances on Thursday, March 2nd 2006 at 07:36 AM

Hi Andrei

Thanks for the super-quick response. Unfortunately, I have tried this and it doesn't work either. The player automatically connects to the media and then stops, ready for play. Do you have any other ideas I could try?

Thanks very much
Frances

by Andrei Pociu on Thursday, March 2nd 2006 at 07:12 PM

Can you give me a link where I can see the player you embedded (you can send it through email)?
I'm afraid this is the way Firefox handles the WMP embedded object.

by Kristine on Saturday, March 4th 2006 at 04:53 AM

Gian Wilson, My infomation is stored on someone's database and the choice of videos will be auto-changed after finishing one and will run another for Window Media 10. Thank you for ur help.

by Ankur on Wednesday, March 8th 2006 at 07:56 AM

Hi Francis,

I am also facing the same problem. When I am trying to play the file through window media player in Firefox it is not playing the file. It shows "ready" and stops then.

Did you get the solution? If yes, can you help me.

Regards
Ankur

by ocertain on Wednesday, March 8th 2006 at 04:05 PM

Very nice. This method works well for simply streaming video media but I need a way to programmatically determine when the video has stopped. I'm using VB.net but can read C# or C++ code. I'm really struggling with this and hope you can shed a little light on this - giving me a little nudge in the right direction.

Thanks much.

by Andrei Pociu on Saturday, March 11th 2006 at 04:58 PM

This might be possible using JScript.
But first: why do you want to know when the video stopped? So you can start playing another video? Because if so, there is another way of doing that, similar to creating a playlist.

by Imbert on Thursday, March 16th 2006 at 11:22 AM

Does anyone know how to force the player to not cache? The file on the server is updated frequently, and I want the latest version to play whenever the play button is pressed. Right now, I have to close the browser just to empty wmp's cache of the file (pressing refresh on the browser won't do it). Any ideas?

Thanks muchly,
Imbert

by paul on Thursday, March 16th 2006 at 05:27 PM

add a dynamic random id to the url with a server side language e.g vid.wmv?r=46a5a5s

by Andrei Pociu on Thursday, March 16th 2006 at 06:52 PM

Hello Imbert,
Try adding the following tag inside &lt;head&gt;&lt;/head&gt;:

&lt;META HTTP-EQUIV=&quot;Pragma&quot; CONTENT=&quot;no-cache&quot;&gt;

by Abby on Sunday, March 19th 2006 at 01:46 AM

Just dropped in to thnk fr the script. Usin it on my site.

by tony on Monday, March 27th 2006 at 12:32 PM

I am trying to play a video file as soon as the page is loaded... If i browse to the video file via IIS (directory browsing) thus my url would be &quot;http://blah/blah/blah.mpeg&quot; the file does not start playing until it has been downloaded to the client machine. Although if i browse to the machine over the network it will play!?? src=&quot;//blah/blah/blah.mpeg&quot;</p>
<p>The reason is cause its over an internal network and so the user needs to be logged in to get the file.... </p>
<p>if you have any ideas let me know..... </p>
<p>&lt;OBJECT ID=&quot;MediaPlayer&quot; WIDTH=&quot;550&quot; HEIGHT=&quot;400&quot;<br />
CLASSID=&quot;CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95&quot;<br />
STANDBY=&quot;Loading Windows Media Player components...&quot; <br />
TYPE=&quot;application/x-oleobject&quot;<br />
CODEBASE=&quot;http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112&quot;&gt;</p>
<p> &lt;PARAM name=&quot;autoStart&quot; value=&quot;True&quot;&gt;<br />
&lt;PARAM name=&quot;filename&quot; value=&quot;&lt;*%= strFilePath %*&gt;&quot;&gt;<br />
&lt;PARAM NAME=&quot;transparentatStart&quot; VALUE=&quot;true&quot;&gt;<br />
&lt;PARAM NAME=&quot;showControls&quot; VALUE=&quot;true&quot;&gt;<br />
&lt;PARAM NAME=&quot;allowchangedisplaysize&quot; VALUE=&quot;true&quot;&gt;<br />
&lt;PARAM NAME=&quot;canseek&quot; VALUE=&quot;false&quot;&gt;<br />
&lt;PARAM NAME=&quot;canscan&quot; VALUE=&quot;false&quot;&gt;<br />
&lt;PARAM NAME=&quot;allowscan&quot; VALUE=&quot;false&quot;&gt;<br />
&lt;PARAM NAME=&quot;showtracker&quot; VALUE=&quot;true&quot;&gt;<br />
&lt;PARAM NAME=&quot;ShowPositionControls&quot; VALUE=&quot;true&quot;&gt;<br />
&lt;PARAM NAME=&quot;Volume&quot; VALUE=&quot;0&quot;&gt;<br />
&lt;param name=&quot;SendPlayStateChangeEvents&quot; value=&quot;1&quot;&gt;<br />
&lt;param name=&quot;SendErrorEvents&quot; value=&quot;1&quot;&gt;</p>
<p> &lt;EMBED TYPE=&quot;application/x-mplayer2&quot; SRC=&quot;&lt;*%= strFilePath %*&gt;&quot; NAME=&quot;MediaPlayer&quot; WIDTH=&quot;550&quot; HEIGHT=&quot;400&quot;&gt;&lt;/EMBED&gt;<br />
&lt;/OBJECT&gt;</p>
<p>&lt;script language=&quot;javascript&quot; event=&quot;EndOfStream( lResult )&quot; for=&quot;MediaPlayer&quot;&gt;top.location.replace(&quot;xxxxxxx&quot;);alert(&quot;xxxxxxxxxx&quot;);&lt;/script&gt;<br />
&lt;script language=&quot;javascript&quot; event=&quot;Error()&quot; for=&quot;MediaPlayer&quot;&gt;top.location.replace(&quot;xxxxxxx&quot;); alert(MediaPlayer.ErrorDescription);&lt;/script&gt;

by Andrei Pociu on Monday, March 27th 2006 at 01:17 PM

What Windows server OS are you using? Windows Server 2003 Web Edition / Standard / Enterprise....?
Since a friend told me he couldn't get the video to stream over one of the editions because that version didn't support streaming, and it would only play when the file was completely downloaded.

by tony on Monday, March 27th 2006 at 02:25 PM

streaming? By embedding video files a user is essentially downloading the file correct? Thus playing the file as it is being downloaded to some temporary location. By streaming one thinks of buffers and streaming servers... isnt this a different technology?

by Andrei Pociu on Monday, March 27th 2006 at 02:49 PM

There is a buffer, and once it is filled the player will start playing the video and continue to download the remaining data. This way it ensures a smooth, uninterrupted play.

by tony on Monday, March 27th 2006 at 03:55 PM

I am using windows 2000 server... and an http reference to the video file.

by Andrei Pociu on Monday, March 27th 2006 at 04:25 PM

Have you tried different browsers (although unlikely to cause the problem)? Is there a link where I can see the video?

by Karl on Tuesday, March 28th 2006 at 01:50 PM

Hi Francis,

You say you have solved the problem of getting a poster frame to work for windows media player. This is interesting. Can you post the css that you have used or a link to the site so I can have a look?

Thanks

Karl

by Marco on Thursday, March 30th 2006 at 10:47 AM

Does anyone has an idea how to play multiple files in the player, as there is one tag filename? Probably there is a simple answer, but I cannot find it...

by damiangt on Monday, April 3rd 2006 at 01:14 AM

I am trying to just raise the volume to MAX &quot;100&quot; on this video music code, cant do it!! please take a look what am I doing wrong?

&lt;div id=vpdiv&gt;&lt;embed allowScriptAccess=&quot;never&quot; name='RAOCXplayer' src='http://www.hotget.com/dovid.php?vid=5552' type='application/x-mplayer2' width='300' height='300' ShowControls='1' ShowStatusBar='0' loop='true' EnableContextMenu='0' DisplaySize='0' Volume='100' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/'&gt;&lt;/embed&gt;

by Chris on Wednesday, April 5th 2006 at 04:30 AM

Marco

Not sure if this will work, as I havn't tried it, but you could try using a playlist file, then in your code call that.

by Frances Maxwell on Thursday, April 6th 2006 at 08:37 AM

<p>Hello everyone, just to respond to your queries...</p>
<p>Ankur: My WMP in Firefox plays fine, I am looking for a way to stop FF from automatically connecting to the media on page load. Are you still having trouble?</p>
<p>ocertain: I don't know if this helps but the following script tracks the playstate of the media player (there are 10 states - see WMP SDK) - you can use this to control behaviour according to state. I have only included my script for when it has stopped (state 1) which calls on two of my own defined functions (in external script file). Incidentally this particular script does not seem to work if you put it in an external file, so put it directly in the head section of your page.</p>
<p>&lt;script for=&quot;Player&quot; language=&quot;javascript1.2&quot; event=&quot;playstatechange(newstate)&quot;&gt;<br />
&lt;!--<br />
switch (newstate) <br />
{<br />
case 1:<br />
displayDefaultImage();<br />
Player.uiMode=&quot;invisible&quot;;<br />
displayState(&quot;Stopped&quot;);<br />
break;<br />
}<br />
--&gt;<br />
&lt;/script&gt;</p>
<p>Karl: I am contolling the display through using the above script. The player's default uimode is invisible so background &lt;div&gt; shows through when page loads. when the state changes to loading, uimode remains invisible, but i change the CSS ref of the background &lt;div&gt; to display the loading graphic (animated gif). when it starts playing, fast forwarding etc, i uimode is set to none (I am using javascript to control the player) which makes the player display instead of the background image. if the state changes to stop, i set uimode is invisible again to display the background image underneath.</p>
<p>I wrote two functions to change the CSS in the background div:</p>
<p>function displayLoadingImage()<br />
{<br />
var oDiv = document.getElementById(&quot;divBgPlayer&quot;);<br />
oDiv.className = &quot;bgPlayerLoading&quot;;<br />
}</p>
<p>function displayDefaultImage()<br />
{<br />
var oDiv = document.getElementById(&quot;divBgPlayer&quot;);<br />
oDiv.className = &quot;bgPlayerDefault&quot;;<br />
}</p>
<p>Hope this makes sense. </p>
<p>I am still totally stuck on preventing Firefox from connecting automatically to the media. Anyone have a suggestion?</p>
<p>Frances<br />
</p>

by Frances on Thursday, April 6th 2006 at 08:41 AM

<p>Oops - the script I included was inside script tags with comments so it hasn't appeared. Here it is again:</p>
<p>&lt;script for=&quot;Player&quot; language=&quot;javascript1.2&quot; event=&quot;playstatechange(newstate)&quot;&gt;</p>
<p> switch (newstate) <br />
{<br />
case 0:<br />
displayDefaultImage();<br />
Player.uiMode=&quot;invisible&quot;;<br />
displayState(&quot;Undefined&quot;);<br />
break; <br />
case 1:<br />
displayDefaultImage();<br />
Player.uiMode=&quot;invisible&quot;;<br />
displayState(&quot;Stopped&quot;);<br />
break;<br />
case 2:<br />
Player.uiMode=&quot;none&quot;;<br />
displayState(&quot;Paused&quot;);<br />
break;</p>
<p>[close it all properly etc]</p>

by Andrei Pociu on Thursday, April 6th 2006 at 08:47 AM

Thank you for your response Frances.
I fixed the formatting of your comments, sorry about that.

by Marco on Thursday, April 13th 2006 at 08:01 AM

Is it possible to embed a player in a page, but have 2 or more video files play in it (not at the same time, obviously)?

by Frances Maxwell on Thursday, April 13th 2006 at 11:31 AM

Marco, did you try the playlist thing that Chris suggested? I have not tried it either, but would be curious to know how it works. Have you downloaded the windows media player sdk from the microsoft website? You can easily have more than one video if you dynamically drive the link. If your site is not database driven, you could simply store the different links in an array and call them as you please (using javascript/php whatever you like).

by Andrei Pociu on Thursday, April 13th 2006 at 11:47 AM

As Chris suggested, linking to an M3U playlist file instead of the file directly will result in the embedded Windows Media Player to play one file right after the other, in the order in which they are listed in the M3U playlist.

by Bryn MacPhail on Monday, April 17th 2006 at 03:14 PM

I have a dilemma that I cannot find an adequate answer to. Once I have the WMP embedded within a web page, how do I get other links(files) on the same page to play within the embedded WMP? I realize that I could create a playlist (.asx), but if I have 40 media files on the playlist, I need an easier way for the visitor to go straight to file #38 if that is the one they want to see. Please advise. Thanks in advance!

by Frances Maxwell on Tuesday, April 18th 2006 at 05:49 AM

Is it possible to create a customised seek bar (slider) for the current position of the media?

by Bryn MacPhail on Monday, May 1st 2006 at 04:04 PM

The customized slider sounds like a good idea--how do I implement?

by Bernie on Thursday, May 4th 2006 at 08:45 PM

My embedded WMP works perfectly with PARAMs hard coded on the HTML. But I can't find a method to change a Player property dynamically. For example, how can I change the default Player.Url programmatically?

by Frances on Monday, May 8th 2006 at 01:03 PM

You can dynamically change the URLs easily in PHP, but.......... can anyone tell me if you can do it using javascript?

My URLs are stored in a Javascript array (it has to be this way because of the tabbing system I am using).

I have tried using document.getElementById("blah").value = "blah.asx". When I print this value out, it recognises the URL correctly, but the player simply won't play it. Why is this? Can anyone help?

by Frances on Monday, May 15th 2006 at 07:01 AM

Re customized seek bar - I have not achieved it myself, but according to somebody on the Microsoft's WM.Talk discussion group - it is possible (their company has developed it but won't share the code which is fair enough I suppose). Has anyone else implemented it who would be kind enough to share the solution?

by Cat on Tuesday, May 16th 2006 at 09:40 AM

<p>Francis, talking about setting a background image that shows behind windows media player at start, said, </p>
<p>&quot;Thanks for your advice. I have solved my problem by setting uimode = &quot;invisible&quot;. This means that the background image behind the player object shows through (I have set the background image in CSS). </p>
<p>When the user clicks play, I am using javascript to change the uimode = &quot;none.&quot; This solves the problem perfectly, so Ralph - if you can capture an image from your video using print screen (and making it the right size etc), you can set this as the background image.&quot;</p>
<p>OK, so I have set my attribute to transparentatstart='true' and I have achieved the desired effect to put an image behind Windows Media Player. I then used style=&quot;position:relative to tell the image to move up behind the player. But, there seems to be a &quot;placeholder&quot; still there where the image would be according to HTML placement rules. See here:</p>
<p>http://www.myspace.com/inthecatbox</p>
<p>&lt;table&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;<br />
&lt;font size =4; align=&quot;center&quot;;&gt;&lt;b&gt;Ladies! Where U At?! Where U At?!&lt;/b&gt;&lt;br&gt; <br />
&lt;br&gt;&lt;/font&gt;<br />
&lt;div style=&quot;position:relative; z-index:2;&quot;&gt;<br />
&lt;img src=&quot;http://myspace-282.vo.llnwd.net/00728/28/20/728450282_l.jpg&quot;&gt;<br />
&lt;/div&gt;<br />
&lt;div <br />
align='center'&gt;&lt;div id='video'&gt;&lt;embed allowScriptAccess=&quot;never&quot; name='MediaPlayer' src='http://www.Music-Codes.com/code.php?id=12375' type='application/x-mplayer2' width='340' height='300' style=&quot;position:relative; top:-258; left:-1; z-index:2;&quot; transparentatstart='true' ShowControls='1' ShowStatusBar='0' <br />
loop='false' autoplay='false' EnableContextMenu='0' DisplaySize='0' <br />
pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/'&gt;<br />
&lt;/embed&gt;<br />
&lt;/div&gt;<br />
&lt;div&gt;&lt;a href='http://www.music-codes.com'&gt;&lt;font style='font-size: 10pt;'&gt;<br />
Music Video Codes&lt;/a&gt; - &lt;a href=&quot;http://www.html-codes.com&quot;&gt;MySpace Codes&lt;/a&gt; - &lt;a href=&quot;http://www.videodumper.com&quot;&gt;Funny Videos&lt;/a&gt;&lt;/font&gt;<br />
&lt;/div&gt;<br />
&lt;/tr&gt;<br />
&lt;/td&gt;<br />
&lt;/table&gt;<br />
&lt;/body&gt;</p>
<p>Have I got a stray tag or something?</p>

by Cat on Tuesday, May 16th 2006 at 09:43 AM

Well, I guess I need to know how to post code without it running! lol

by Geekpedia Support on Tuesday, May 16th 2006 at 11:01 AM

Don't worry about it; I fixed it for you.

by ninad on Friday, May 19th 2006 at 12:28 AM

when i try to play the video file in firefox it,it plays with the embed tag and also the controls are not displayed.i wanted to display the controls of media player too but it doesnt get displayed in firefox

by Justin Johnson on Wednesday, May 24th 2006 at 09:49 PM

um for eg. how would i get a video from youtube to wmp???????Plz respond to this !!!!!!!

by EJ on Tuesday, June 6th 2006 at 04:05 AM

How do I get this video to play starting out on mute? Tried just inserting &lt;PARAM name=&quot;Volume&quot; value=&quot;0&quot;&gt; but not sure if I put it in the right place or what. I know I'm a slacker, but I'd appreciate the cheat.</p>
<p>&lt;div&gt;&lt;div&gt;&lt;embed allowScriptAccess=&quot;never&quot; type=&quot;application/x-mplayer2&quot; pluginspage=&quot;http://www.microsoft.com/Windows/MediaPlayer/&quot; src=&quot;http://playlist.yahoo.com/makeplaylist.dll?id=946560&amp;segment=55900&amp;s=1807426884&amp;ru=y&amp;b=fjp5n791at7lk4316da9a&quot; showstatusbar=&quot;1&quot; autostart=&quot;1&quot; width=&quot;320&quot; height=&quot;305&quot;&gt;&lt;/embed&gt;&lt;/div&gt;&lt;div&gt;

by ej on Tuesday, June 6th 2006 at 04:07 AM

well i typed the code and it disappeared shows what i know<br />
<br />
&lt;div&gt;&lt;div&gt;&lt;embed allowScriptAccess=&quot;never&quot; type=&quot;application/x-mplayer2&quot; pluginspage=&quot;http://www.microsoft.com/Windows/MediaPlayer/&quot; src=&quot;http://playlist.yahoo.com/makeplaylist.dll?id=946560&amp;segment=55900&amp;s=1807426884&amp;ru=y&amp;b=fjp5n791at7lk4316da9a&quot; showstatusbar=&quot;1&quot; autostart=&quot;1&quot; width=&quot;320&quot; height=&quot;305&quot;&gt;&lt;/embed&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://www.pcplanets.com<br />
&gt;Music Video Codes&lt;/a&gt; | &lt;a href=&quot;http://www.linkchaos.com/games<br />
&quot;&gt;Myspace Games&lt;/a&gt; | &lt;a href=&quot;http://www.san-diegos-real-estate.com<br />
&quot;&gt;San Diego Homes&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;

by darylcharm on Tuesday, June 6th 2006 at 10:24 PM

hi this is a fantastic tutorial, but i was wondering if how can i edit the buttons of PLAY FORWARD etc. like giving it a "skin" because i saw at www.nba.com they did it. anybody?

by Andrei Pociu on Wednesday, June 7th 2006 at 04:05 AM

You can edit them by creating your own so called skin. More exactly you will only be showing the video window and choose to hide the other controls. Then you will create your own buttons (by using graphics) and use JavaScript to control the Windows Media Player object when they are clicked.
I can't give you more details, but there are a few tutorials on the web covering this; or you can look at the code that other websites use.

by Mike on Monday, June 12th 2006 at 10:16 AM

I have embedded the .wma file however it prompts other users with a \"network password\" box, and prompts them to type in a user name and password. I didn\'t even know I had one! I am using IIS if this helps, so the file is on my computer. Any ideas?!

by Antony on Friday, June 23rd 2006 at 07:18 AM

Hi Andrei,

Do you know how play a video file with a .mpg extension using windows media player? Or do I have to convert the mpg to a wmv first? Any idea how to do this? Many thanks!

Antony

by Mark on Monday, June 26th 2006 at 10:14 PM

Do you know how to change the skin on an embeded media player? I want to change the standard if it's possible. Thanks

by emily on Wednesday, July 5th 2006 at 12:17 PM

Guys, guys: to get multiple songs to play in succession on your webpage, then use the WebJay player on www.webjay.com and upload your files into a playlist. It will then give you the code to embed this playlist into your page.

The question i have is, how can i play a song on my page with an INVISIBLE media player? just music, no slider, no song title, etc? Please email me an answer or a suggestion if you have one at xemilyatkinsonx@aol.com

thankyou xxx

by lucky4ever on Friday, July 7th 2006 at 07:37 AM

Hello all I have searched high and low to find this answer, and have been to many blogs. I have tested tons of code. Even after all efforts no luck. Well I have found the answer! I intend to go to all blogs and post it too. This question will baffle people no more!

Here goes...

After some searching and a lot of testing... Here\'s how I coded the embedded Media Player 9 to play more than one file in succession:

One of two files need to be created: either an \".asx\" or a \".m3u\" file. These files are
created through the Media Player itself.

First create a \"playlist\" of \".mp3\" files that you want to play on the web page:

1. Choose \"new playlist\" in the media player tool bar

2. Name it, then begin selecting \".mp3\" files or video files from the media library

3. Place these files in the \"new playlist\" you just created.

4. Once you have all the files you want in the playlist:

5. Select your playlist (highlight it)

6. Go to \"file\" in the media tool bar

7. Choose \"save playlist as\"

8. In the window that opens you will create your \".asx\" or \".m3u\" file

9. Name it

10. In the \"save as type\" box use the drop down menu to choose the file type

**You can choose either \".m3u\", \"any (.asx, .m3u, or .wpl)\"
[i](I chose to use the .asx format because it just works easier. By choosing \"any\" it seems to only save your file in the \".wpl\" format, which did not appear to be applicable to the embedded
player code according to all the information I could gather in my searches).[/i]

Now that you have created your \".asx\" or \".m3u\" file:

11. Upload this file and all \".mp3\" files associated with it (what\'s in your playlist) to your server.

The code for the embedded player, using these playlist files is as follows:

<OBJECT ID=\"mediaPlayer\"
CLASSID=\"CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95\" width=\"300\" height=\"120\"
CODEBASE=\"http://activex.microsoft.com/activex/
controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\"
STANDBY=\"Loading Microsoft Windows Media Player components...\"
TYPE=\"application/x-oleobject\">
<PARAM NAME=\"fileName\" VALUE=\"http://myserver.com/New Playlist.m3u\">
<PARAM NAME=\"animationatStart\" VALUE=\"true\">
<PARAM NAME=\"transparentatStart\" VALUE=\"true\">
<PARAM NAME=\"autoStart\" VALUE=\"true\">
<PARAM NAME=\"showControls\" VALUE=\"true\">
<PARAM NAME=\"ShowDisplay\" VALUE=\"true\">
<PARAM NAME=\"loop\" VALUE=\"true\">
</OBJECT>

Of course you\'ll need to adjust the width and height if you\'ll be using this to play videos; at the current settings listed above only the player controls and track info will be visible.

Well that\'s it friends. Feel free to embed, and play any media file associated with windows media player.
I hope this proves useful to people.

Pax vobiscum,
lucky4ever

by Len Chase on Saturday, July 15th 2006 at 10:06 AM

Very clear tutorial.
I would like to use the embeded player with asp.net vb.net to play wav files I have loaded into a list box. But I can seem to find a wat to change the file to be played dynamically.
Can you point me to an answer or example. One question I also had was what is the diffenrence between the src and url properties?

Thanks Len

by Randy Turner on Saturday, July 15th 2006 at 03:07 PM

I used the embed tag above to play an mp3 file on a webpage. Is there a way to avoid the "click here to run an active X control on this page" box from popping up in IE? This scares most people away from the page all together. In firefox it starts and plays on its own with no problems....

by Alex Danik on Tuesday, July 18th 2006 at 11:22 AM

Do anyone know why a picture in Media Player go after IE6 window with delays under WindowsXP SP2. (I checked under 2k3 and it works correctly there)... Can it be fixed somehow ?

thank you

by Alex Danik on Tuesday, July 18th 2006 at 11:30 AM

And one more question...
Do you happen to know whether it is possible to change Media Player size in runtime?
(in response to window.onresize event for example)
I tryed to implement this but faced with problems:
player size was changed, but picture disappeared :(

Thank you

by Bruno Andrade on Wednesday, July 19th 2006 at 04:43 PM

Great tutor.. But I would do like to know if anyone knows where can I found one step by step tutorial on how to produce an corporate WMP (custom) player for my site.
Tks to all support

by Michael C on Thursday, July 27th 2006 at 03:53 PM

I know someone mentioned this before... but when I embed the wmv into my webpage... in IE it sometimes shows as "ready" in the player but nothing happens when you click play.

And in firefox it says its getting data from the video hosting site but eventually it stops and nothing ever happens. Help would be appreciated!

by delboy on Sunday, August 6th 2006 at 04:40 PM

Does anyone know if its possible to change video using php instead of javascript...

by DWesson on Wednesday, August 9th 2006 at 05:44 PM

I've been able to get all of my videos playing fine, in succession, with the embeded media player using an m3u playlist, but I was wondering if it was possible to have links that are off to the side of the player actually tell the player which track to play. So, rather than having to "skip" through the tracks to find the one they would like to see, they can simply click "play blah blah" and that video will load. Thanks in advance if anyone knows.

by Amanda on Thursday, August 10th 2006 at 10:03 PM

I need help!!!!!! on my myspace page i have the video's and stuf playing and there fine but the only problem is that they all start playing at once!!!!!how can i embed the code so that they dont do that and how and where do i put it in and what is the code!!!

by on Saturday, August 12th 2006 at 09:30 PM

in the code look at autostart and change it from true to false prob.

by Lawrence on Saturday, August 19th 2006 at 09:26 PM

Greetings
I used the playlist method for playing files back to back. When I do this my media player initially shows the available buttons for moving forward to a new track, then it just shows play ready. When I click on Play nothing happens.

Anyone have a solution answer to this ?

Peace
Lawrence

by Lawrence on Tuesday, August 22nd 2006 at 06:41 PM

Greetings,
I figured it out. Instead of the ask or m3u. I had to use the wpl.
The asx and m3u files appear to be like shortcuts to the wpl.
When I switched from asx or m3u to wpl it worked fine. www.wisdomtones.com

Thanks for the tutorial. Good stuff

by rich on Wednesday, August 30th 2006 at 09:13 AM

I would like to embed the WMP in a page with autostart set to false, and have it display a frame from the movie (rather than a black screen). In other words, the movie that is embedded on the page shouldn't play automatically, but I would like it to display a still frame from the movie.


I have a great deal of experience with QuickTime and this is called setting a 'poster frame'. Is there a way to do an equivaent thing with WMP?

by Frances on Thursday, September 7th 2006 at 04:55 AM

Dear Rich
I don't know how (or if) you could automate that, but if you could manually get the graphic by doing a screen grab, you easily display it before the user has pressed play. See my earlier contributions about this.
Sorry if that doesn't help, I suspect it is not exactly what you were looking for.
Frances

by Megs on Friday, September 8th 2006 at 02:34 AM

I am trying to add a video to my myspace and I've been using MYTHEME.COM myspace editor to create my codes. I inserted a video url into the code correctly but for some reason it keeps saying PLUG-IN CONTENT and You need a plug-in to view this. There is an option to download the plugin but it just brings me to download WMP11 wich I've already downloaded and upgraded twice but it still shows the same plug in error. Can someone please help me get this video to work.

by aFriend on Tuesday, September 12th 2006 at 03:29 PM

Display Image when video is set with autoStart="False" no Javascript needed.
Obviously this would need to be updated to work with your site:

<!-- Background Image Div -->
<div style="width:305px; height:250; background-color:#00FF00;background: url('images/videoBG/lifewareTrailerBG.jpg') top left no-repeat;">

<!-- Windows Media Player -->
<OBJECT ID="Video" width="305" height="250"
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
type="application/x-oleobject" VIEWASTEXT>
<PARAM NAME="FileName" VALUE="myWMFile">
<PARAM NAME="ShowControls" VALUE="True">
<PARAM NAME="ShowStatusBar" VALUE="True">
<PARAM NAME="TransparentAtStart" Value="True">
<PARAM NAME="AutoStart" Value="True">
<PARAM NAME="AnimationatStart" Value="True">
<PARAM NAME="autoSize" Value="false">
<PARAM NAME="displaySize" Value="False">
<PARAM NAME="enableContextMenu" Value="False">
<PARAM NAME="uiMode" Value="invisible">
<EMBED type="application/x-mplayer2"
pluginspage = "http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
SRC="myWMFile"
Name="MediaPlayer1"
Width="305"
Height="250"
autoStart=1
transparentAtStart=1
animationAtStart=1
autoSize=0
ShowStatusBar=1
ShowControls=1
displaySize=0
enableContextMenu=0
uiMode="invisible"
align="center">
</EMBED>
</OBJECT>

by Rubern on Wednesday, September 13th 2006 at 05:12 PM

hey, this has nothing to do with WMV, but rather WMA.. I want to put a "posterframe" that would be displayed during the entire lenght of the stream.

I can only do the one frame before the audio starts, then it goes to black screen.

could someone help me ?

by charles on Tuesday, September 19th 2006 at 01:14 PM

I am having a problem getting a video to play at all. I have used the code from this site with no luck. I have my own Apache server on my network that I use to test my site before it goes live. I use Apache on Suse Linux. All of my pages work just fine but I can\'t get the video to play. I just reads \"ready\". I did try another web server(abyss web server) and it worked just fine. Has anyone seen this issue before? Is this a Apache issue? Please help if you can.

by Steeve on Wednesday, September 20th 2006 at 03:10 AM

When using controls and status bar:

Add 65 pixels to the height of the video for total object tag height

Add 70 pixels to the height of the video for total embed tag height

(non IE browsers see a different UI)

by kranthi on Saturday, September 23rd 2006 at 06:27 AM

I need to start the clip in between so i need to define the start point and endpoint of clip in the param.. so can ne one please tell me what parameter should i set i n the object

by Jose Canusea on Friday, October 20th 2006 at 01:42 PM

Don't you people realize how annoying it is to visit a website and have audio & video start automatically? I am all for being able to put videos on a website, but having them start blaring and taking over whatever audio a machine is already playing, without the users permission, is over the line.

by Sophie on Tuesday, November 14th 2006 at 01:11 PM

How do I let music files open up with windows media player from the visitor's computer when they want to listen to a song on my web page?

by Srinivas on Friday, December 22nd 2006 at 07:19 AM

Nice topic. I have one doubt. Window Media player default property, when multiple files selected, it plays one by one. Next, Prev arrow buttons will be enalbed. How do I get this type of facility using html and embed tags?

Any suggestions, please share with me..

by ivan on Saturday, December 23rd 2006 at 03:26 PM

sorry, i have a problem here. how do i create a hyperlink that allows me to play a song in the wmp when i clicked on it

by diego on Thursday, January 25th 2007 at 10:04 PM

Hi, I have a problem with a ASX file, when I open this file appear the msg box "Enter Network password"..Do you know if I can the credential information into the ASX file ?? or do you know where I can store this information in order that Windows Media player doesnt asked me again these information ?
Thanks for your help!!
Diego

by HawQ on Saturday, January 27th 2007 at 06:04 AM

A simple example for all of you that would like to play more than one video in the same media player.

Note:
In the script you must change Player.URL to same id as the object id of your media player. If you use <Object id=Video> you must put Video.URL in the script.

Add this script in the HEAD of your web page:

<SCRIPT language = "JScript">

// Here you should add the first video URL.
function PlayVideo1 ()
{
Player.URL = "myVideo1.wmv";
}

// Here you should add the second video URL.
function PlayVideo2 ()
{
Player.URL = "myVideo2.wmv";
}

</SCRIPT>

In the HTML part of your page you embedd the media player and below you add something like this:

<a onclick=PlayVideo1()>Play video 1!</a><BR>
<a onclick=PlayVideo2()>Play video 2!</a>

You can use pictures, buttons or whatever you want, just add the onclick function to your tag.

You can also use onmouseover=PlayVideo1() to start the video just by moving the mouse over the tag.

Enjoy!

by CaseyJ on Thursday, February 1st 2007 at 09:16 PM

Does anyone know if/how to display closed caption subtitles in an embedded media player? The encoder scripted subtitles gets displayed in the stand alone media player but can't get it to work in the embedded player, little bubble icon appears that says "captioning not available" when it is configured in the webpage html, I've been told it is not supported in embedded player using Media Player 9 or 10

by Wha on Sunday, February 4th 2007 at 10:34 PM

Mga Putang ina nyo diko maintindihan

by What on Sunday, February 4th 2007 at 10:36 PM

Mga Ungas Ang gulo nyo mag paliwanag! Wala akong maintindihan sa pinagsasabi nyo! ang gulo! >.<

by Binu on Wednesday, February 14th 2007 at 06:17 AM

Can I change the odd looking background of the embedded mediaplyer? or can I customize the player by which i can show slider and volume control separte? like play and stop can i use javascript commands for Previuos track and Next ? please help...

by lalit on Wednesday, February 21st 2007 at 03:01 AM

can i set any property of player object for show image before play the video

by Steve on Thursday, February 22nd 2007 at 10:37 PM

How can the webpage be designed to detect when a video has finished and then go to another page? Is there an event that JavaScript can access?

by Patrick on Friday, February 23rd 2007 at 11:21 AM

This is an excellent tutorial and Q&A!!!! Thank you for this!

My question is about buffering. I have been using this code for some time now to play audio files (mainly MP3). It works great most of the time and in the main browsers. Sometimes they do not play correctly though. They will buffer up about 30sec - 1min of audio and play it, but then they stop buffering and when it finishes playing what has been buffered, it just stops without finishing the rest of the files. You can click refresh and sometimes that fixes it sometimes it doesn\'t. I\'ve tried other computers, browsers, checked my server error logs and there\'s not indication of the source of the problem.

I\'d be fine with requiring the FULL file to load before playing. Anything so that the files play in their entirety instead of getting chopped up about half the time. Any suggestions?

by arun on Saturday, February 24th 2007 at 05:06 AM

How to control windows media player when embedded in a html page using Javascript in fiefox ? Plz give a solution as soon as possible ...........

by piyush on Friday, March 2nd 2007 at 11:55 AM

How to start and stop the player at a predefined time instants in the timeline??

by Tariq on Thursday, March 22nd 2007 at 11:17 AM

Hi, this tutorial is very helpful. I want to play the video on the click of onclick event of a button using javascript. I have achived that functionality for Internet Explorer but this is not working in Firefox. Firefox displays error \"Error: document.getElementById(\"Player\").controls has no properties\".
Following is the javascript code
function playvideo(fileurl)
{
document.getElementById(\"Player\").URL = fileurl;
document.getElementById(\"Player\").controls.play();
return false;
}

by Aaron on Thursday, March 29th 2007 at 10:47 PM

Great article. One question I have is this. I have an application where I need to reduce the lag time (caused by buffering) of the video sent from the encoder to the Media Player.

How can I programmatically change the buffering time? Or is there a property I can set? I do NOT want the user to have to right click and use the GUI interface to change the buffering time. I want to have the code do it.

Thanks!

by kira on Monday, April 2nd 2007 at 02:31 AM

i would like to embed an mp3 file that plays with one button that changes to on or off, depending on it's state. i haven't seen a tutorial for this simple action anywhere, though i see it on a lot of web pages. any ideas, anyone? thanx...

by mike on Tuesday, April 3rd 2007 at 10:52 AM

Dear Andrei and the crew, please help us !

What should we do, when we like to hide the source URL /streaming.../ by clicking right on the mouse. We only need to appear the resize-
part /50%-100%-200%-full screen/ and nothing else !

Every help is VERY appreciated !
Best thanks
Mike

by Abdullah on Wednesday, April 4th 2007 at 09:12 AM

is it possible to disable the seek bar when streaming a pre-recorded file

by mike on Thursday, April 5th 2007 at 09:47 AM

Abdullah, my friend, you have right, but

If we disable the right click option, disappears also the resizing possibility to 50%. Many of that streams are poor quality and
we have to offer this option.

Best
Mike

by mike on Thursday, April 5th 2007 at 09:59 AM

Abdullah, my friend, you have right, but

If we disable the right click option, disappears also the resizing possibility to 50%. Many of that streams are poor quality and
we have to offer this option.

Best
Mike

by Abdullah on Thursday, April 5th 2007 at 02:34 PM

Thanks Mike

Another query-what is the parameter to show the playlist?

by Audrey on Friday, April 6th 2007 at 02:36 PM

I've got multiple problems with wmp. First, when I'm testing the page on my computer, I can't get the OBJECT tag to work in Firefox. When I'm using the EMBED tag, Firefox won't scale the video to the size I've specified, so I only see part of it. When I try putting the video online, the player is visible, but nothing happens, both in IE and Firefox. Help, anyone?

by Reaper on Monday, April 9th 2007 at 01:59 AM

@What/Wat

Please refrain from your profanities. You attitude is not appreciated. If there is something that you don't understand, state your inquiries properly. Answers comes to those who asks and asks well. And shame on you. I'm ashamed to call you my "kabayan" :-(

by Joseph on Monday, April 9th 2007 at 05:31 PM

Dear Frances,

Was just seaching the web looking for a solution to my problem when i came across your tutorial - very interesting!

The problem that i am having is with the buffer time on my music video - HOW CAN I DECREASE THE BUFFER TIME??

I have tried putting in the html code ' buffer="0" ' but nothing happens! - i just want my video to start playing - as soon as my webpage opens without having to wait 10 - 30 seconds for it to buff

Any ideas would be grately appreciated.

Best Regards,Joseph.

by guinus on Wednesday, April 18th 2007 at 11:37 AM

Hi all !

Well I've got a question for the community (that I've been asking to myself for a while now...). Does anybody know if it is possible to hide the WMP controls with Firefox ? It seems to be the "showcontrols" parameter but in my page it does not help.
With IE, it is possible to hide all the control buttons with the "uimode" parameter...
Thanks in advance for your help.

by CryoFox on Thursday, April 19th 2007 at 10:00 AM

hi guines,
try adding the following attributes after "showcontrols":

showtracker='-1' showdisplay='0' showstatusbar='0' videoborder3d='-1'

I don't really know which one of those is responsible for disabling the controls, but it works just fine for me :)

by Rinal on Saturday, April 21st 2007 at 11:44 PM

Help me...

I want to play diff videos according to schedule..

suppose:

at system.now=\"12:00:00\"--> play \"abc.wma\"

at system.now=\"12:09:00\"--> play \"def.wma\"

I will have schedule of time and filename.

so how can i make it possible for whole day(24 hrs)

i want continueous display of Videos in media player.

one more que:

Is it possible to display any image for some time in media player.?

by guinus on Monday, April 23rd 2007 at 10:04 AM

Finally I solved my problem using the code :

"<OBJECT type=\"application/x-ms-wmp\""+
" id="+sPlayerId+" name="+sPlayerName+
" width="+iWidth+" height="+iHeight+" />"+
"<PARAM NAME=\"enableContextMenu\" VALUE=\"false\">"+ "<PARAM NAME=\"uiMode\" VALUE=\"none\">"+
"<PARAM NAME=\"stretchToFit\" VALUE=\"True\">"+
"</OBJECT>";

Thank anyway

by LorD ExoskeletoN on Tuesday, April 24th 2007 at 11:20 PM

is this possible if the source file is gif or jpeg? boss want me to program that if gif files were clicked...it should open in Windows Media Player..

help pls...

by satish on Wednesday, April 25th 2007 at 07:19 AM

hi,

plz help me,

does any one can tell me how to see the buffering pr streaming status in the seek bar. Do i need to download any plugins for that, i need the player appear to be streaming when it is been pause, like as we see in youtube.com site.

does any tell me how to do it.

by Amit Champaneri on Thursday, April 26th 2007 at 05:02 AM

Hi,
i am facing one problem with this embedded media player control, that i m browsing file with simple input html control,
Now, when we assign file name to the player object, it directly starts playing the file,
but the file must be placed in the same folder where the container file is, we cant play file giving Physical path.Like,

http://localhost/Test/testFile.mp3 --- will be played but,
c:\\testFile.mp3 -----------------will not.

any Solution ?
Amit.


by vatsal on Thursday, May 3rd 2007 at 01:32 AM

i want to create playlist in ambeddend wmp. is there any idea???? it it's possible how can i go on next treck???

by goDog on Tuesday, May 8th 2007 at 12:20 AM

Too helpfull, thanks a lot.

by :mafia on Wednesday, May 9th 2007 at 04:05 PM

Hi,
I\'m using html code like this:
<EMBED src=\"Corvetta.MPG\" type=video/mpeg ShowStatusBar=True Cache=True AutoStart=False>

It works good but I\'d like to see a progress bar of loading movie (similar to dark-red progress bar on youtube.com). Is it possible with <EMBED> tag?
I\'ve been looking it for 2 days :/

Thanks for your help!

by shona on Tuesday, May 15th 2007 at 10:18 AM

Hi
I can play a number of videos in WMP on the onclick event of buttons using javascript. This works perfectly in IE. I cannot get this to work in Firefox or Netscape. Any help appreciated.

by Michael S. on Tuesday, May 15th 2007 at 11:39 PM

Is there any way to make a wmv play (loop) the last frame indefinately? Currently whan a wmv reaches the last frame the movie stops and goes to 'black'. I would like it to loop the very lsat frame instead. (using WME 9)

by Andrei Pociu on Wednesday, May 16th 2007 at 12:36 AM

Michael,
Using Javascript you are able to check the status of the player, and when the video has finished, you can set the position of the player at the last second of the video.

by Michael S. on Wednesday, May 16th 2007 at 10:03 AM

For Andrei regarding looping the last frame of a wmv - You said some javascript could check the status of the video and then reset the position of the player to the last second. Does this have to actually be one second (29 frames) or can it be the last frame itself? Could you post or email me the javascript and how the code is placed on the page (i'm assuming it would be placed inside the code that plays the wmv - but i don't know) Thank you for your help

by david on Thursday, May 17th 2007 at 02:22 PM

how do i have a video load into the same player on my page? like if i had 2 videos to play and both with links on the page to the video? please email me

by Michael S. on Thursday, May 17th 2007 at 07:58 PM

Andrei - at least post the script. I'll figure out how to use it by myself

by Augi on Friday, May 18th 2007 at 06:38 PM

someone help me please!! When I open a Windows Media player file on the internet, it only shows the Play button. The stop and all other buttons are white. I\'m using FireFox, Windows Media Player 10 installed, and the plugin for IE installed for Firefox. I also can\'t use Internet Explorer for some reason so someone please help me!!

by zeshan on Monday, May 28th 2007 at 11:16 AM

can u help me
can i ply two videos in the same window player 8html)
can u tell me plzz

by atif on Monday, May 28th 2007 at 02:28 PM

STOP right click on MEDIA PLAYER both in IE and FF with FULL SCREEN button option..

<object id=\"sudn3sc3dPlayer\" type=\"application/x-mplayer2\" pluginspage=\"http://www.microsoft.com/Windows/MediaPlayer/\" align=\"top\" height=\"66\" width=\"320\">
<param name=\"URL\" value=\"http://192.168.1.3:0000\">
<param name=\"rate\" value=\"1\">
<param name=\"balance\" value=\"0\">
<param name=\"currentPosition\" value=\"0\">
<param name=\"defaultFrame\" value=\"\">
<param name=\"playCount\" value=\"1\">
<param name=\"autoStart\" value=\"-1\">
<param name=\"currentMarker\" value=\"0\">
<param name=\"invokeURLs\" value=\"-1\">
<param name=\"baseURL\" value=\"\">
<param name=\"volume\" value=\"100\">
<param name=\"mute\" value=\"0\">
<param name=\"uiMode\" value=\"full\">
<param name=\"stretchToFit\" value=\"-1\">
<param name=\"windowlessVideo\" value=\"0\">
<param name=\"enabled\" value=\"-1\">
<param name=\"enableContextMenu\" 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\">
<param name=\"_cx\" value=\"9922\">
<param name=\"_cy\" value=\"9075\">
</object>
</p>
<p align=\"center\"><font color=\"#FFFFFF\">
<input value=\"Full Screen\" name=\"FSBUTTON\" onclick=\" /* Check to be sure the player is playing. */

if (sudn3sc3dPlayer.playState == 3)

sudn3sc3dPlayer.fullScreen = \'true\';

\" style=\"border-style: solid; border-width: 1px; font-family: Verdana; font-size: 8pt; background-color: rgb(125, 125, 125); color: #FFFFFF; letter-spacing: 1pt; font-weight: bold; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px\" type=\"button\">
</font><font color=\"#FFFFFF\"> </font>

by kate____ on Tuesday, May 29th 2007 at 06:14 AM

how can i make the palyer play only music..like i don't want the video screen to appear..:/ so help anyone? I would like my player to look a like in that one in http://saleminasukkaat.urli.net :D

by kate___ on Tuesday, May 29th 2007 at 06:19 AM

so i just edit the height? :) any sites where i could host my music file cause that might be easier than linking them from my computer.. :DD

by Andrei Pociu on Tuesday, May 29th 2007 at 09:23 AM

Yes Kate, you set the height.
If you don't have the appropriate licenses, it's difficult to find (especially free) webhosts that allow you to store music files.

by Kaiser on Wednesday, May 30th 2007 at 01:24 PM

I have a question, how about this, I used this codes and they worked. But what I want is, after the file is done playing, the next file in the array will load.. can anyone help me pls??


var LinkArray = new Array()

LinkArray[0] = "http://www.ffshrine.org/ff8/ff8/ff8-1-02-balamb_garden.mid"
LinkArray[1] = "http://www.ffshrine.org/ff8/ff8/ff8-1-03-blue_fields.mid"
LinkArray[2] = "http://www.ffshrine.org/ff8/ff8/ff8-1-05-the_winner.mid"

function play(i)
{ document.getElementById('Player').URL = LinkArray[i] }

by Joanne on Friday, June 1st 2007 at 09:35 AM

I everyone :

Can someone help me have a new window open after someone click on the start button of the media player ?

I have added a local radio station to play in my home web page and would like people to be able to continue listening to the radio while they browse elsewhere in my site...

Any hints on how to properly achieve that ?

Thank you in advance.

by bjh on Monday, June 4th 2007 at 06:38 PM

I would like to set the player size base of the acutal dimension of the video that will be played. In IE you can use

Player.imageSourceHeight and Player.imageSourceWidth

to get the orginal dimensions of the video. To use this you have to use the Player 6.4
classid=\"clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95\"
As an example
<html>
<script type=\"text/javascript\">
function displaymessage()
{
alert(Player1.imageSourceHeight)
alert(Player1.imageSourceWidth)
alert(Player1.FileName)
}
</script>


<form>
<input type=\"button\" value=\"Click me!\"
onclick=\"displaymessage()\" >
</form>

<center>
<table>
<td id=\"playerCode\" >
<OBJECT ID=\"Player1\" data=\"http://east.streamguys.com/WMOD-demo/sample-video.wmv\"
classid=\"clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95\" width=436 height= 431 DisplaySize =-1>
<PARAM NAME=\"AutoStart\" VALUE=\"True\">
<PARAM NAME=\"Balance\" VALUE=\"0\">
<PARAM NAME=\"DisplaySize\" VALUE=\"0\">
<PARAM NAME=\"ShowControls\" VALUE=\"-1\">
<PARAM NAME=\"AutoRewind\" VALUE=\"1\">
<PARAM NAME=\"Filename\" VALUE=\"http://east.streamguys.com/WMOD-demo/sample-video.wmv\">
<PARAM NAME=\"URL\" VALUE=\"http://east.streamguys.com/WMOD-demo/sample-video.wmv\">
</OBJECT>
</td>
</table>
</html>

Clicking on the button should brings up a series of message boxes that displays the height, width, and location of the video being played. This works in IE but in browsers like Opera the message box displayes a value of undefined.

Does anyone know how to retrive the actual video dimension of a video file in browsers other that IE,such as Opera, or NetScape?

by avinrosh on Thursday, June 7th 2007 at 06:40 AM

Hello;
In my webpage I have embeded WMP and on the left hand side of the page links are given for the media content. Currently when one clicks on the media link on the left hand side for every different link the pages reloads and media palys in the WMP. Is it possible to avoid the reload of page for every different link. User will click the link and in the same page WMP starts playing the new media content.

by Depres on Monday, June 11th 2007 at 08:47 PM

Hi~

First let me say, "Thank You for this tutorial, it is very helpful."

I understand that I'm supposed to add the url in order for my video to play. I just don't know how to get the url. I record my short videos for my new podcast using my webcam. Then I convert and compress them to wmv files. Where exactly do I upload it to get the url (filepath)? I'm very confused about that. My webpage has the HTML module to add the codes you gave me. Aside from that there's no way to upload my video.
I would appreciate any help.

by Depres on Monday, June 11th 2007 at 08:49 PM

After I figure this out I have to create an RSS Feed. That should be equally as interesting. :)

Again Thank You...very precise instructions here and I can see I'm not the only one who's most appreciative!

by Kenny on Monday, June 11th 2007 at 08:54 PM

I want to embed my wmp skin into webpage. How to do that? Thank you

by Andrei Pociu on Monday, June 11th 2007 at 09:13 PM

Depres - you upload them on an online server that you preferably have access to using FTP. Your webhost should provide you with this. If not you can open a free or paid webhosting account that offers FTP access.

by Depres on Monday, June 11th 2007 at 11:16 PM

Thank You...My webhost is Microsoft Office Live and I have contacted them to see if they provide FTP for my basic website. I should have my answer in the morning. Wow! You responded soo quickly.

by Claudia on Tuesday, June 12th 2007 at 03:39 PM

I\'ve embedded a video on a website and the video freezes constiently when I play it. The sound will play perfectly, but the video won\'t. The buffering/loading suggests everything will run smoothly and then it doesn\'t. Is there any way to ensure the successful run of the video? Both sound and images? Thank you for your help, C-

by Izzy on Tuesday, June 12th 2007 at 04:59 PM

How can I embed a video from windows media player or youtube into an email? So that you actually see the video and not the link or html code?

by tommy campbell sr. on Thursday, June 14th 2007 at 04:43 PM

I have embedded the wmv not how do I get it to my path to get the video out of my video on my computer

by oguguo on Friday, June 22nd 2007 at 09:54 PM

Hi,
I have been trying to position windows media player at the center of my web page. It doesn't seem to want to work. Any help out there please? I really need it
Oguguo

by Depres on Sunday, June 24th 2007 at 03:39 PM

Hello again Andrei~

I have successfully embeddedmy windows media player and uploaded my video. The problem is, it won't play when I add my url. What exactly goes after src="?" My url is: http://deprestalks.com/Documents/SINGING%20HOUNDS.wmv

this is my url for the video i'm trying to upload but it won't play. Can you help me?

by Jordi on Thursday, June 28th 2007 at 10:17 PM

Hi All

I have no problems with loading, viewing & showing the \"wmv\" file on a website i am designing, thank god. But what I need is a command to auto shut Windows Media after it has played the last clip , so I can reveal text behind the window that autoplays on entering site.. Say, Play video , WindowsMedia Player closes or dissolves to reveal say a text file on an html web site..

Thanks..

by kaizer on Friday, June 29th 2007 at 09:21 PM

Hi! Good day! Can I ask how can I make an embedded video blank at first? I mean, isn’t it that when you use an embedded video(like for example posting in a blog), the content of the video is already on preview… What can I add to the script, for it to be blank at first so it will be a surprise when some one clicked it?

Hoping for your kind advice…
Kaizer26

by surgeon on Thursday, July 5th 2007 at 07:53 PM

I was wondering how to create a playlist for the embedded player. src has only one song in it. Is there a way to access multiple songs that I have on my server in the same embeded player?

by Andrei Pociu on Friday, July 6th 2007 at 12:28 AM

Check the April 2006 comments above - you'll need to create an M3U playlist and place it in the SRC attribute.

by jayyuma on Friday, July 6th 2007 at 07:03 AM

This is what I want to do:

http://www.dreamworks.com/dreamworks_home.html

Click on movies on the left side where the float lands.

I have read a year\\\'s worth of input and I\\\'m still not sure if anyone has accomplished this yet, Is it still unsolved? Can We Get Multiple Movie Poster Thumbnails on the same page all with links to the same player? A simple yes or no will do Thankyou. I may have overlooked...
J

by on Friday, July 13th 2007 at 08:08 AM

fdfgdfgdfgdfgdfgdfgdfgdfgdfgdfgdfgfgdfgdfgdfgdfgdfgd

by Jack on Saturday, July 14th 2007 at 08:45 PM

Excellent information, thank you,
My question:
I have video on my site at 640x480, for the player to be the correct size for the video, you have to set the width to 640 and the height to 540 to compensate for the controls. How do I add a border around the player for this.
Thank you

by Jack on Saturday, July 14th 2007 at 08:56 PM

Excellent information, thank you,
My question:
I have video on my site at 640x480, for the player to be the correct size for the video, you have to set the width to 640 and the height to 540 to compensate for the controls. How do I add a border around the player for this.
Thank you

by Jack on Tuesday, July 17th 2007 at 12:52 PM

Never mind, I found it.
Thanks anyway

by VampyreFantasy on Thursday, July 19th 2007 at 03:10 AM

ok how do you embed music onto a page just in the background. no musicplayer, nothing visible. just straight up music. Like for my myspace I want to have music but i dont want a player cuase then i think that looks sloppy. what code would i use to do this? like auto-play and loop as well.

by Doni on Wednesday, July 25th 2007 at 05:16 AM

embedding WMP how to enable shuffle mode...so that everytime I visit my page it plays a random song from the .m3u list? thanks

by John on Friday, July 27th 2007 at 04:30 PM

Is there anyway to pre-load another .avi file while one is playing? I\'ve been looking everywhere, and haven\\\'t been able to come up with anything.

by Terry on Tuesday, July 31st 2007 at 02:47 PM

my only problem is scripting the track info into the player....i am using sam broadcaster...has anyone had this problem

by Marc on Friday, August 3rd 2007 at 02:25 PM

Great Info!
my question!

I have created a mediaplayer combining pics and illtustrations to give it a kind of costomised windows media player look and successfully embeded it, thanks to the ode available on this site. In my site there is audio catergorsied in several categories. Listeners have the liberty of choosing what they want to listen, but when this happens i want the audio files to open in this media player i have created. I am not able to do this. Dont ask me to create applets or write javascript code coz i dont know any. Plz provide me with a solution. I will probably be able to acheive this by playlist and actual windows media player, but i want people to listen it on the custom palyer. Check BBC Radio - it is some thing i wana accheive.... thank u. Well another question will follow soon. LOL thank u

by Prateek on Monday, August 20th 2007 at 06:32 AM

Hey.. Could you please tell me how to control functions like Play, Stop etc in Windows Media Player if I embed it in Firefox ?

by Raven on Monday, August 20th 2007 at 07:19 PM

Hey! Thanks for the tutorial! Its a great jumping off point! What I need to know and I believe it has already been asked here in various forms, is:

How do I embed multiple movies in one page to play in one player. Now before you answer with the playlist, I need them to play ONLY when clicked on. Example of this would be - http://www.nationalaccessgroup.com/video_corp.aspx

Any help would be much appreciated!

by Raven on Monday, August 20th 2007 at 08:22 PM

Actually after doing a little further research I found the answer....


<!--
function playvideo(m)
{
document.WMP.URL=m;
}
function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}
// -->

At the top of the page


<OBJECT id=\"WMP\" name=\"WMP\" height=\"355\" width=\"346\" classid=\"clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6\"> <PARAM NAME=\"URL\" VALUE=\"\"> <PARAM NAME=\"rate\" VALUE=\"1\"> <PARAM NAME=\"balance\" VALUE=\"0\"> <PARAM NAME=\"currentPosition\" VALUE=\"0\"> <PARAM NAME=\"defaultFrame\" VALUE=\"\"> <PARAM NAME=\"playCount\" VALUE=\"1\"> <PARAM NAME=\"autoStart\" VALUE=\"-1\"> <PARAM NAME=\"currentMarker\" VALUE=\"0\"> <PARAM NAME=\"invokeURLs\" VALUE=\"-1\"> <PARAM NAME=\"baseURL\" VALUE=\"\"> <PARAM NAME=\"volume\" VALUE=\"50\"> <PARAM NAME=\"mute\" VALUE=\"0\"> <PARAM NAME=\"uiMode\" VALUE=\"full\"> <PARAM NAME=\"stretchToFit\" VALUE=\"0\"> <PARAM NAME=\"windowlessVideo\" VALUE=\"0\"> <PARAM NAME=\"enabled\" VALUE=\"-1\"> <PARAM NAME=\"enableContextMenu\" VALUE=\"-1\"> <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\"> <PARAM NAME=\"_cx\" VALUE=\"9155\"> <PARAM NAME=\"_cy\" VALUE=\"9393\">
</OBJECT>

As the actual object and:

<a href=\"#video\" onClick=\"playvideo(\'mms://Your URL here\')\">

As your link to the player

by Nilay Anand on Wednesday, August 22nd 2007 at 12:46 PM

Do we have any PARAM for streaming setting?

by Steven on Monday, August 27th 2007 at 09:23 AM

Are there any parameters that I can set so that playing and buffering can occur simultaneously?

The media player will buffer.. play.. buffer again.. play again..

Can I remove such interruptions?

<OBJECT ID=\"MyPlayer\" CLASSID=\"CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6\" type=\"application/x-ms-wmp\" width=\"320\" height=\"240\"><PARAM NAME=\"URL\" VALUE=\"documents/business_opportunity.wmv\"><PARAM NAME=\"enabled\" VALUE=\"True\"><PARAM NAME=\"AutoStart\" VALUE=\"true\"><PARAM name=\"PlayCount\" value=\"1\"><PARAM name=\"Volume\" value=\"50\"><PARAM NAME=\"balance\" VALUE=\"0\"><PARAM NAME=\"Rate\" VALUE=\"1.0\"><PARAM NAME=\"Mute\" VALUE=\"False\"><PARAM NAME=\"fullScreen\" VALUE=\"False\"><PARAM name=\"uiMode\" value=\"full\"><embed src=\"documents/business_opportunity.wmv\" width=\"320\" height=\"240\" autostart=\"true\" url=\"documents/business_opportunity.wmv\" enabled=\"True\" playcount=\"1\" volume=\"50\" balance=\"0\" rate=\"1.0\" mute=\"False\" fullscreen=\"False\" uimode=\"full\"></embed></OBJECT>

by Prem on Sunday, September 2nd 2007 at 08:58 PM

CAN ANY ONE TELL HOW TO EMBED THE WMP IN FIREFOX IF THE BROWSER DOESNOT HAVE WMP PLUGIN INSTALLED. WHAT CODE TO DETECT IF THE BROWSER HAVE THE PLUGIN AND IF NOT TO DOWNLOAD AND INSTALL TO PLAY A BROADCAST.

by Chris on Thursday, September 6th 2007 at 05:52 AM

I have a bit of an odd application, where I want to get xy coordinates the mouse over the video as it is stepped forward. I had this working several years ago, but Microsoft seems to have changed something. http://www.univie.ac.at/cga/dig/

At the moment everything works except I can't get the movie to step forward. Can you tell me how to do this? I want to use this for teaching next week, so a quick response would be much appreciated!

by JP on Saturday, September 8th 2007 at 04:44 AM

I have been working the past three days trying to get wmv videos to work in IE and Firefox using codebase, embed src and object id codes with no luck. I used If IE code as well. The strange thing is that in the HTML-Kit when I use the Object code and I preview the files the video automatically opens as designed and previe in browser works in IE but not in FIrefox but if I call the video from the server it doesn\'t start in either browser. I have read the different codes from 2005 and 2006 above and I am at a loss. I am using Windows Media 10 and if I go to properties in the player panel the length is 0.0. I seem to remember if I tried to open directly in the player one of the methods worked but not embedded. Does anyone have any ideas? I\'ve run out of ideas.

by charles boisseau on Monday, September 10th 2007 at 04:06 PM

How to add a static image at the beginning of a Windows Media Player, instead of having the video automatically plan. I'm embedding the video player in a Web page, but want to use a still frame as the first image, not a black box, and not start the video automatically. (I see someone asked the question above but there doesn't appear to be an answer. ) Any help would be most appreciated.
Charles

by Toc on Thursday, September 20th 2007 at 08:08 AM

Hi
Does anybody know if I can access the elapsed time value in an ebedded player to use in my javascript. ie I want to test where someone is in a movie and then perform certain actions at specified times. I cannot just use my own counter as people skip backwards and forwards in the movie so I need to know exactly at what second in the movie they are rather than the elapsed time since the movie was loaded.
Thanks in advance

by DAVID on Tuesday, September 25th 2007 at 12:07 PM

HI
I LIKE TO KNOW HOW TO ADD SUBTITLE ENGLISH TO MY WINDOW MEDIA PLAYER EMBEDDE IN WEB PAGES

by bert cooper on Tuesday, September 25th 2007 at 03:05 PM

Hi.
I just added the player to my webpage and it works fine except when I try to skip forwards or backwards with the slider, it has no effect. It gets pretty annoying when, for example, wanting to see the last 10 seconds of a 3 minute movie. How can this be fixed? Is it a movieformat issue? I first tried with .avi-files. Then the player wouldn't buffer, and would preload the whole movie before being able to watch, but the slider worked. Then I saved my moviefiles as .wmv, and then it buffered fine, but as stated above, I couldnt use the slider for skipping forwards or backwards. Any ideas?

/BC

by Pete Allen on Saturday, September 29th 2007 at 10:46 AM

Hi,
Could you tell me how to make windows media player open up in a small window, rather than on a full blank page.

Thanks

Pete

by PAUL on Friday, October 26th 2007 at 03:01 AM

YER HI... RE: MYSPACE ive add a program to myspace for W.M.P. it will play in windows I.E but not in firefox, ive down loaded plugins for my PC but still wont work. can any one help me here

regards PAUL..

by Miha on Wednesday, November 28th 2007 at 11:09 AM

I have more tha one players on one page. For some reason only the last player works corrrectly. The other one gets stuck on a frame . Anybody know why ?
thanks.

by Tata on Sunday, December 2nd 2007 at 07:07 AM

I use CMSimple as a basic environment for my website (http://salas.cmsimple.sk). And I used this tutorial to insert a player there (the last item in TOC). The code of this page is simple:

<H1>Videotéka</H1>
<DIV align=center>
<OBJECT id=music style=\"BORDER-RIGHT: maroon 1px solid; BORDER-TOP: maroon 1px solid; BORDER-LEFT: maroon 1px solid; WIDTH: 296px; BORDER-BOTTOM: maroon 1px solid; HEIGHT: 246px\" height=246 width=296 align=center classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95></OBJECT><BR><SELECT id=cancion onchange=document.all.music.filename=document.all.cancion.value; size=1 name=Music> <OPTION selected>::::::::::::::::::::::::::: Vyberte si video súbor :::::::::::::::::::::::::::</OPTION> <OPTION value=./downloads/MyVideo.wmv>MyVideo</OPTION> <OPTION value=./downloads/Buuu.wmv>Buuu</OPTION><OPTION value=./downloads/nazov-suboru.wmv>Názov súboru</OPTION></SELECT></DIV>

Nothing else can be saved (no PARAMs). The videos run really smoothly but without sound. What\'s wrong? Please, send me a PM.

by Tata on Sunday, December 2nd 2007 at 07:25 AM

OOOOPS, excuse me, what a shame... I had earphones switched in and wondered why no sound went from loudspeakers. Everything works 100%. Great feature. Thanks.

by Praful on Wednesday, December 12th 2007 at 07:22 AM

Hi,
I need to play an .avi file onto the browser. I can play the .avi file from windows media player directly. However when i try to put the SRC = xyz.avi, it does not work. Maybe i am missing something in hte setup, but don\'t know what.
Any clues?
THanks,

by benjamin on Thursday, December 13th 2007 at 08:29 AM

9
allowing the client to play a spesific media
player.pause()
item:player.currentPlaylist is the media media.getitem(string)
player.controls.play()

by pascal on Saturday, December 15th 2007 at 04:30 AM

I am testing some movies on my website, and everything works fine in IE7.

When I try to open the same page in FIREFOX, the movie will not only play in the browser, but also in a separated WMPwindow.

How can I stop FIREFOX (or wherever the command is given) from opening the Windows Media Player Window ???

I woud only like to see the movie in my browser as per IE7

Example: http://www.fastmovie.be/en/trailerx.php?Id=1942 (!!! adult content !!!)

by tamilthecreator on Monday, December 24th 2007 at 01:07 AM

it is very nice... i need to know how can we find the length of the video (ie: total duration of the video) ?

Thanks in advance.

by Praveen(param) on Thursday, December 27th 2007 at 05:21 AM

Hi
In my webpage i have more than 10 WMV files.I need to show only bullhorn images for WMV files if i clicks on that image i need to play the file.
I have followed below two Methods
Firs Method is: When I click on bullhorn image I am generating embed and object tags but it will take loading time. I am thinking it is not a good way. But it is working fine.
Second Method is : i am preloading all the audio files with autostart=false but when i click on image it is not playing audio file . For this I used javascript
1. if ((navigator.userAgent.indexOf(\\\"IE\\\") > -1) && (navigator.platform == \\\"Win32\\\")) {
document.getElementById(\\\"mediaPlayer\\\").autoStart = true;
} else {
document.MediaPlayer.SetAutoStart(true);
}

2.
if ((navigator.userAgent.indexOf(\\\"IE\\\") > -1) && (navigator.platform == \\\"Win32\\\")) {
document.getElementById(\\\"mediaPlayer\\\").controls.play();
} else {
document.MediaPlayer.controls.play()
}

in above both cases not playing my audio file

Please anyone help me. suggest me an idea

by Jason Boyd on Thursday, December 27th 2007 at 09:05 AM

Is there any way to change volume, or jump to a point in the media?

Microsoft has docs up fairly recently as to how to control WMP in Firefox, and I\'m confused as to why, of all the methods they document, some which say they do work in FF, some which say they do not, none actually work in IE7. Using WMP 11 in IE7, it appears I can do:

mediaPlayer.Play();
mediaPlayer.Pause();
mediaPlayer.Stop();

But mediaPlayer does *not* have any controls or settings objects (or actually it has a settings, which is null). I have scoured the web looking for any documentation, and only come up with that Firefox howto and another page that says it only applies to WMP 6.4. Which was a while ago...

by Lokesh on Thursday, January 3rd 2008 at 07:52 PM

I am using QuickTime Player in Asp.net 2.0 with IE7,
It is opening the Player Window and play movie fine,
but when i close that window, it close the window but not the player.

Please anyone help me. suggest me an idea

Thanks.

by Juice on Wednesday, January 9th 2008 at 02:16 PM

I have the media player on the web page .Now how do I GET MY WMV DOCUMENTS FROM MY documents to come up on the player?

by Slawomir on Thursday, January 10th 2008 at 06:16 PM

Anybody knows why the sound plays nicely but the video is just a green screen?

Thx!

by Dragon on Saturday, January 12th 2008 at 11:44 PM

I have built a nice web interface to watch my movies over a local area network, my only problem is that because i am calling them from a web browser the movie has to be downloaded to each computer b4 it starts playing causing delays up to 10 mins or so b4 they play. Is there a way to get the movies to start playing straight away like they would if i was to open them thru windows explorer, the default player used is windows media player, and I dont really wish to convert all the movies to ASX or ASF, can anyone help :P, thank you

by Adam on Tuesday, January 22nd 2008 at 06:35 PM

I am creating a online radio station for a friend, which he uses SAM Broadcaster. I got windows media player to play the stream he has set up, but I can\'t figure out how to display the subtitles that he got set up. I am working on this website remotely, away from the computer that is doing the streaming, not sure if that makes a difference. I am new to web development and don\'t know too much about streaming media.

by alex on Monday, January 28th 2008 at 04:46 AM

I've used <PARAM name="loop" value="True"> so WMP plays the movie continuously on the home page. It works fine in Explorer but in Firefox it only plays once. Can anyone shed light on this?.....thanks

by angelationgson on Thursday, January 31st 2008 at 05:40 AM

wow! thanks! see my videos @ aEmbedding Windows Media Player WMV

by angelationgson on Thursday, January 31st 2008 at 05:41 AM

wow! thanks! see my videos @

http://angelationgsonblog.blogspot.com/

by TaylrMayd on Monday, February 4th 2008 at 12:35 PM

I am trying to get my embedded audio player (WMP) to shuffle the playlist. Is this possible??

Here is the current code:
<embed width="250" height="150" src="http://www.playlist.com/node/23708272/playlist/asx" AutoStart="true" ShowTracker="true" ShowControls="true" ShowGotoBar="false" ShowDisplay="false" ShowStatusBar="true" AutoSize="false" pluginspage="http://www.microsoft.com/windows/windowsmedia/download/"></embed>

by tom on Tuesday, February 5th 2008 at 01:23 PM

I am trying to disable the screen for the windows media player. It works fine on IE but Firefox the screen keeps showing up.
Is there any tweaks for firefox to disable the screen?

Thanks

<object CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" HEIGHT="51" WIDTH="320" ID="MediaPlayer" NAME="MediaPlayer" TYPE="application/x-oleobject" STANDBY="Loading Microsoft Windows Media Player components..." HSPACE="0" VSPACE="0" VIEWASTEXT border=1>
<param NAME="FileName" VALUE="../media/audio/aj_3q_earnings2007.mp3">
<param name="AutoStart" value="0">
<param name="ShowDisplay" value="0">
<param name="ShowPositionControls" value="1">
<PARAM NAME="ShowControls" VALUE="1">
<param name="ShowStatusBar" value="1">
<param name="ShowTracker" value="1">
<param name="ShowGoToBar" value="0">
<PARAM NAME="fullScreen" VALUE="1">
<embed type="application/x-mplayer2" ID="MediaPlayer" NAME="MediaPlayer" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" src="../media/audio/aj_3q_earnings2007.mp3" HEIGHT="300" WIDTH="320" AutoStart="1" ShowDisplay="0" ShowPositionControls="1" ShowStatusBar="1" ShowControls="1"></object>

by Nirmal Gupta on Wednesday, February 27th 2008 at 08:38 AM

Why people here give half answers.
How to show a still image at the beginning of play of the media or after the media player has finished playing?
This question were posted in many forms but no answers.
Please post the answer if someone has it.

by Rotec on Tuesday, March 4th 2008 at 07:47 AM

Is there anyway to shuffle a .m3u playlist in the embedded wmp?

by ElwoodKain on Tuesday, March 11th 2008 at 02:51 PM

tom,

Dude that code is simple you just have to change the uni mode... If you make it mini you will get all the controls but you will not have a screen.

<PARAM name="uiMode" value="mini">

by Maddie on Wednesday, March 12th 2008 at 11:18 AM

Greetings! I have everything running as desired in IE. However, in Firefox I can not get any of the parameters to be recognized, meaning I have disabled controls, status bar using embed tag and they still appear.

Here is code I am using. any ideas how to turn them off? Thanks so much!

<OBJECT id="VIDEO" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject" width="320" height="240" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/">
<PARAM NAME="URL" VALUE="bb.wmv">
<PARAM NAME="enabled" VALUE="True">
<PARAM NAME="AutoStart" VALUE="True">
<PARAM name="Volume" value="75">
<PARAM name="ShowControls" VALUE="false">
<param name="ShowStatusBar" value="false">
<PARAM name="ShowDisplay" VALUE="false">
<PARAM NAME="fullScreen" VALUE="False">
<PARAM name="uiMode" value="none">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM name=EnableContextMenu="false">
<PARAM name="BufferingTime" value="0">

<!-- BEGIN PLUG-IN HTML FOR FIREFOX-->

<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" ShowStatusBar="0" ShowControls="0" ShowDisplay="0" EnableContextMenu="0" autostart="1" uiMode="mini" width="320" height="240" loop="0" src="bb.wmv" />

by Rachel Sherman on Friday, March 14th 2008 at 10:51 AM

I've sucessfully embeded the wmv on my website, but I've limited the number of people who can view by streaming video because of bandwidth restrictions. I can get an error message to display when I've exceeded the number of users when the player is launched externally. But how do I get it to display within the emedded player? The message is as follows: "Windows Media Player cannot connect to the server because it is not accepting any new connections. This could be because it has reached its maximum connection limit. Please try again later" Please advise.

by JC on Tuesday, March 18th 2008 at 04:06 PM

I have embedded an avi file using the following shows and plays fine however when I am using my digital projector and I want to show the web page the video plays in full screen and you can not see the rest of the web page.

Code is below

<object id="VIDEO" type="application/x-oleobject" height="240" width="320" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param value="file.wmv" name="URL" /><param value="True" name="SendPlayStateChangeEvents" /><param value="True" name="AutoStart" /><param value="True" name="Loop" /><param value="False" name="Enabled" /><param value="none" name="uiMode" /><param value="9999" name="PlayCount" /><param value="false" name="AllowChangeDisplaySize" />
</object>

by Anya on Monday, March 24th 2008 at 09:33 AM

I'm trying to create a page where there are several links each to a different video. I want a new page to open when you click the link, and in that new page I've embedded Windows Media Player which automatically starts playing the appropriate video. It works for the first video on my page but the subsequent 3 I can't get to show. Any help would be appreciated. The actual webpage is www.seanwrightpro.com/contenderasia
Here is the relevant bits of code:

For the first video -
<a href="contenderasia/play_video.html" onClick="window.open(this.href,'video','top=50, left=50, width=280, height=257, toolbar=no, menubar=no, location=no, scrollbars=no, resizable=no'); return false;">1 - Introduction</a>

The second video is linked to with the same code but obviously different page (href="contenderasia/play_video2.html") and then play_video3.html for the third and video4 for the fourth.

The source for page play_video.html is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Video Clip</title>
<style type="text/css">
body {
padding-top:0;
padding-bottom:0;
padding-left:0;
padding-right:0;
margin-top:0;
margin-bottom:0;
margin-left:0;
margin-right:0;
}
</style>
</head>
<body>

<object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/ nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="280" height="256">
<param name="fileName" value="http://www.seanwrightpro.com/contenderasia/play_video.m3u">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="Volume" value="-300">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://www.seanwrightpro.com/contenderasia/play_video.m3u" name="MediaPlayer1" width=280 height=256 autostart=1 showcontrols=1 volume=-300>
</object>

</body>
</html>

Each play_video file (ie 2,3,4) has the same code but with the .m3u file change (ie play_video2.m3u or play_video4.m3u).

The .m3u files contain only the location of the video in question:

http://www.seanwrightpro.com/contenderasia/intro.wmv

This one is for the first video, the other videos have .m3u files the same but obviously a different video name.

The first clip works but the subsequent 3 don't. Is this something to do with the way I've named the .m3u files or can anyone else help with spotting where my mistake is? I'm new to all this so please forgive me for the messy code!

by Drigr on Saturday, May 3rd 2008 at 08:54 PM

I do not have much experience using HTML so I am sure the answer to my question is simple. I need to find out how to code a music player to have multiple songs on it. I have tried changing a few things on the music players coding already but I can't seem to find one that allows for more then one song to play. I can get it to continuously play the first though.

The coding for my current player, having both songs included in it but not playing, is:
<embed src="music/runescape-7th realm.mid" src="music/runescape-adventure.mid" width=145 height=15 autostart=true loop=true>
</noembed>

I would like to add many more songs to this player, so your method needs to allow me to add many more songs to this one player

by Ken on Thursday, May 29th 2008 at 01:29 PM

HELP PLEASE! I copy this from Miscrosoft, but the previous and next button doesn't work.. I've talk to them online without success, can anyone tell me how to get it to go the next or previous?

<OBJECT ID="MediaPlayer1" WIDTH=320 HEIGHT=240
CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/
nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject">
<Param Name="FileName" Value="http://jazyy.info/myjukebox/myjukebox_files/luciano - Lord give me strenght.mp3">
<Param Name="FileName" Value="http://jazyy.info/myjukebox/myjukebox_files/luciano - Hold Strong.mp3">
<Param Name="FileName" Value="http://jazyy.info/myjukebox/myjukebox_files/luciano - a new day.mp3">
</OBJECT>

by radiofono1 on Monday, June 9th 2008 at 02:39 PM

various players i use:

http://users.otenet.gr/~tvradio

by carlton on Sunday, June 22nd 2008 at 02:06 PM

HI,
It was like a miracle when i found this site, i have started up a website for almost one year now and was searching for a video player to put on my web page i google and discover you guys last week and i have embedded the play on my page its working fine but there is only one thing i would like you guys to help me with how do i get the player to stream while its playing or cut down the loading time it takes around 30sec to 1minute
thank you

by Vega on Tuesday, July 1st 2008 at 12:51 AM

how do i play songs using wmp??

by Sean on Tuesday, July 1st 2008 at 11:49 AM

Hi,
How do I use the first frame for the preview instead of a black screen, as your demos?

a lot of thanks!

by Donna on Tuesday, July 1st 2008 at 10:14 PM

I am having an odd problem I have it up on my site it works fine with my quicktime version but my wmv version works and plays on mozilla firefox but on ie wmp shows up but it wont play what do you think I should do to make this work on ie as well as the mozilla.

You can look at www.gscmchorus.org I just dont know what else to do. Please help!!!!

by Donna on Tuesday, July 1st 2008 at 10:14 PM

I am having an odd problem I have it up on my site it works fine with my quicktime version but my wmv version works and plays on mozilla firefox but on ie wmp shows up but it wont play what do you think I should do to make this work on ie as well as the mozilla.

You can look at www.gscmchorus.org I just dont know what else to do. Please help!!!!

by Donna on Tuesday, July 1st 2008 at 10:14 PM

I am having an odd problem I have it up on my site it works fine with my quicktime version but my wmv version works and plays on mozilla firefox but on ie wmp shows up but it wont play what do you think I should do to make this work on ie as well as the mozilla.

You can look at www.gscmchorus.org I just dont know what else to do. Please help!!!!

by Donna on Tuesday, July 1st 2008 at 10:14 PM

I am having an odd problem I have it up on my site it works fine with my quicktime version but my wmv version works and plays on mozilla firefox but on ie wmp shows up but it wont play what do you think I should do to make this work on ie as well as the mozilla.

You can look at www.gscmchorus.org I just dont know what else to do. Please help!!!!

by Donna on Tuesday, July 1st 2008 at 10:14 PM

I am having an odd problem I have it up on my site it works fine with my quicktime version but my wmv version works and plays on mozilla firefox but on ie wmp shows up but it wont play what do you think I should do to make this work on ie as well as the mozilla.

You can look at www.gscmchorus.org I just dont know what else to do. Please help!!!!

by Donna on Tuesday, July 1st 2008 at 10:15 PM

I am having an odd problem I have it up on my site it works fine with my quicktime version but my wmv version works and plays on mozilla firefox but on ie wmp shows up but it wont play what do you think I should do to make this work on ie as well as the mozilla.

You can look at www.gscmchorus.org I just dont know what else to do. Please help!!!!

by Donna on Tuesday, July 1st 2008 at 10:16 PM

I am having an odd problem I have it up on my site it works fine with my quicktime version but my wmv version works and plays on mozilla firefox but on ie wmp shows up but it wont play what do you think I should do to make this work on ie as well as the mozilla.

You can look at www.gscmchorus.org I just dont know what else to do. Please help!!!!

by Tim on Friday, July 18th 2008 at 09:55 PM

I can't get my wmv video to show the progress bar, everything else works great. Does anyone no what part of the embed script I might be missing?

by ???????? on Sunday, August 31st 2008 at 02:36 AM

What i see here is only questions where we find the sollution of problems list?..one more question lol

by amadiya on Sunday, August 31st 2008 at 02:54 AM

I embed a windows media player and I can play both video and audio on my web site. Pls anyone can tell me HOW CAN I PUT A NAME ( EX- AXN, BBC,STAR TV) TOP OF THE PLAYER SCREEN? Please help me some one. thankx

by Sham on Thursday, September 11th 2008 at 07:25 AM

I am using media player object in my project(.net).
In that,
can any one tell me which property is used to set the first frame as default display in a media player by using html(embedded).
or how to do programaticaly using c#.
please help my

by Aman on Sunday, September 28th 2008 at 06:58 AM

This is a very good Site by Aman Sinha

by rajiv sharma on Tuesday, September 30th 2008 at 12:20 AM

Hi,
This tutorial is very helpfull.
plz tell me how to add flash in a web page.
thanks

by ccstyxs on Saturday, October 11th 2008 at 10:34 PM

I have seen more than one person ask this same question, but perhaps me asking again will bring a response....IS THERE ANY WAY TO ENABLE THE SHUFFLE OR RANDOM FUNCTION SO THAT YOU'RE PLAYLIST WILL PLAY IN A DIFFERENT ORDER EACH TIME THAT PAGE IN YOUR WEBSITE IS LOADED????? I appreciate any answer that someone can give. GOD BLESS AND HOPEFULLY HEAR FROM YA' SOON.

by Arch on Monday, October 13th 2008 at 10:03 AM

Check out this site http://midistudio.com/MPlayer9/CodeGen-MP9.htm, it will answer most of your questions. I'm using wmp javascript at my music code website.

by ngagyit on Friday, November 7th 2008 at 02:48 AM

thnz that i can embed.
but how can i find classID for different version?
how can i know my windos media player's classID

by ngagyit on Friday, November 7th 2008 at 02:48 AM

thnz that i can embed.
but how can i find classID for different version?
how can i know my windos media player's classID

by ngagyit on Friday, November 7th 2008 at 02:48 AM

thnz that i can embed.
but how can i find classID for different version?
how can i know my windos media player's classID

by ngagyit on Friday, November 7th 2008 at 02:48 AM

thnz that i can embed.
but how can i find classID for different version?
how can i know my windos media player's classID

by Iacob on Saturday, November 8th 2008 at 04:13 AM

hi.i post the script on my site but it dont work :(( what's rong???

<body><embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" name="mediaplayer1" ShowStatusBar="true" EnableContextMenu="false" autostart="false" width="520" height="440" loop="false" src="http://wwitv.com/tv_channels/6232.htm" /></body>



or



<body><embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" name="mediaplayer1" ShowStatusBar="true" EnableContextMenu="false" autostart="false" width="520" height="440" loop="false" src="video3.wmv" /></body>

the same thing, dont work :((
the window of plugin of windows media player appear but it dont start nothing no video no nothing it's just a black window.
plssssssssssssssss help :((

by Vijay on Saturday, November 8th 2008 at 12:38 PM

Hi everyone
I would like to help from any one of u guys. I am using apache server 2.2 and i am maintaining files in the server and on the browser from other system I am able to run a movie from media player device. Now I am trying to use the same with WII internet connection but I am not getting any page loaded where as text files and other html files are getting displayed. If anyone know how to access the media files and run in WII internet TV it would be much helpful to me.
Can u please help me out.
Please reply to this mail id as well chiranvijay@gmail.com

Thanks in advance

by Arch on Saturday, November 8th 2008 at 07:29 PM

Try this code, see if this works.

<body>
<OBJECT ID="MediaPlayer" WIDTH="192" HEIGHT="190" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="yourvideofilename.wmv or audio.wma">
<PARAM name="autostart" VALUE="false">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="false">
<PARAM name="ShowDisplay" VALUE="false">
<EMBED TYPE="application/x-mplayer2" SRC="yourvideofilename.wmv or audio.wma" NAME="MediaPlayer"
WIDTH="192" HEIGHT="190" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </EMBED></OBJECT>
</body>

by Arch on Saturday, November 8th 2008 at 07:54 PM

Windows Media Player comes in many different versions.

Here are the class ID's of the different versions, with a list of parameters.

Why Has the class ID Changed?

The correct class ID for Windows Media Player 7 and later is: clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6.

Many places on the internet it states that the class ID should be: clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95. This class ID is the old one, but it will work, because of backward compability. However, if you use the old class ID you will not be able to use the new features added to the component.

Windows Media Player 10
clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6 (same as WMP7)

Windows Media Player 9
clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6 (same as WMP7)

Windows Media Player 7
clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6

Windows Media Player 6.4
clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95

by Vijay on Saturday, November 8th 2008 at 10:38 PM

Hi Arch

I tried with the above code already but its working fine only with from computer to computer but its not working with WII.Thanks for the reply.
If you know any other way to solve this issue please let me know.

Thanks
Vijay

by ccstyx on Saturday, November 8th 2008 at 11:02 PM

Still no word on a way to "random" the play list on wm in your website, eh?

by Iacob on Sunday, November 9th 2008 at 07:49 AM

but whow can i streaming a tv online?? not a video from pc but a url a http? i whot to embend a tv online with windows media player...
plss help

by sucks wmp on Tuesday, November 18th 2008 at 06:00 AM

i hate wmp it sucks god its the bain of my live at the moment - i hate how you cant display the version before a client opens the window and then finds out its not 10 its 11 gay

by sucks wmp on Tuesday, November 18th 2008 at 06:01 AM

i hate wmp it sucks god its the bain of my live at the moment - i hate how you cant display the version before a client opens the window and then finds out its not 10 its 11 gay

by Arch on Wednesday, November 19th 2008 at 08:01 PM

Streaming Windows Media Player to other computer does work as long each computers have windows media player installed with plug ins. I have no idea if WII can handle WMP streaming. You may have to install special plug in or flash to your computer or server or to WII to get it work since all computer systems require plug ins or flash plug ins to see each other. Sorry I can't help ViJay.

by Arch on Wednesday, November 19th 2008 at 08:13 PM

Random Playlist. Copy and paste to your HTML.

<script language="JavaScript">
midis = 3
var mid1 = "http://www.yourwebsite.com/audiofile1.mid or mp3"
var mid2 = "http://www.yourwebsite.com/audiofile2.mid or mp3"
var mid3 = "http://www.yourwebsite.com/audiofile3.mid or mp3"

num = parseInt(Math.random() * 3);
while (num > midis) {
num = parseInt(Math.random() * 3);
}
if (num == 0) {
document.write ("<embed src=\"" mid1 "\" loop=\"true\" hidden=\"true\">");
}
if (num == 1) {
document.write ("<embed src=\"" mid2 "\" loop=\"true\" hidden=\"true\">");
}
if (num == 2) {
document.write ("<embed src=\"" mid3 "\" loop=\"true\" hidden=\"true\">");
}


</script>

by Charles Chong on Tuesday, November 25th 2008 at 01:48 AM

Hi guys,
I have a problem on embedded windows player on browser. I need the player to keep in full screen mode without showing controls or browser window when the streaming is disconnected temporarily. Anyone can help ? Many Thanks.

Charles

by Charles Chong on Tuesday, November 25th 2008 at 01:48 AM

Hi guys,
I have a problem on embedded windows player on browser. I need the player to keep in full screen mode without showing controls or browser window when the streaming is disconnected temporarily. Anyone can help ? Many Thanks.

Charles

by pgeo on Friday, November 28th 2008 at 01:41 AM

As everyone says - great intro site and I've got WMP embedded. But, does anyone understand why when I embed into IE7 it's the Quick Time player that appears? Seems odd for a Microsoft product!

by Johanson on Saturday, December 27th 2008 at 12:17 PM

Hello all

I need some help with my web page , i´m not so smart with this stuff and i want to find someone to help me.

by santanu Biswas on Monday, December 29th 2008 at 05:14 AM

Hi guies,

Very good tutorial.You can get nice concept
to embed wmp from this...

by Chris D on Sunday, January 11th 2009 at 11:42 PM

I searched through as much of that as I could and didnt find the answer. How can I add a random start point for each time it loads?

Hope somebody can help me. Many thanks

by Sam Abraham on Monday, February 16th 2009 at 06:49 AM

Thank you. This was very Helpful

by Sam Abraham on Monday, February 16th 2009 at 06:49 AM

Thank you. This was very Helpful

by Sam Abraham on Monday, February 16th 2009 at 06:50 AM

Thank you. This was very Helpful

by hudd on Sunday, February 22nd 2009 at 10:52 PM

im very new at this whole website biz so plz be nice if my question is stupid...how do i put tha media player on my websitetha player works on my offline website but when i try to put tha player on my myspace site it doesnt play plz tell me wut i did wrong and how to fix it heres the code i use



<OBJECT ID="MediaPlayer" WIDTH="192" HEIGHT="190" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="converted.wmv">
<PARAM name="autostart" VALUE="false">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="false">
<PARAM name="ShowDisplay" VALUE="false">
<EMBED TYPE="application/x-mplayer2" SRC="converted.wmv" NAME="MediaPlayer"
WIDTH="192" HEIGHT="190" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </EMBED></OBJECT>

by jeevaka on Wednesday, March 4th 2009 at 12:11 AM

Thank you very much.
This was very helpful.
Thank very much again.
Jeevaka

by jeevaka on Wednesday, March 4th 2009 at 12:12 AM

Thank you very much.
This was very helpful.
Thank very much again.
Jeevaka

by Gary on Wednesday, March 4th 2009 at 08:31 PM

How do i place a media player or any video player into like a TV graphic to make it look like its playing from the tv as in a real life situation......i seen it somewhere but did not save the location can anyone help.......so in short if there was a tv in this roon and i wanted to play one of my vidios in it how can that be done

Thanks

gary

by Gary on Wednesday, March 4th 2009 at 08:31 PM

How do i place a media player or any video player into like a TV graphic to make it look like its playing from the tv as in a real life situation......i seen it somewhere but did not save the location can anyone help.......so in short if there was a tv in this roon and i wanted to play one of my vidios in it how can that be done

Thanks

gary

by Gary on Wednesday, March 4th 2009 at 08:31 PM

How do i place a media player or any video player into like a TV graphic to make it look like its playing from the tv as in a real life situation......i seen it somewhere but did not save the location can anyone help.......so in short if there was a tv in this roon and i wanted to play one of my vidios in it how can that be done

Thanks

gary

by dany on Saturday, March 28th 2009 at 08:01 PM

i have tried all i can think of and all i can find here, no luck.
I have tryed to stream an radio, using wmp as an player for website.First of all..it is posible?
I even upload the playlist on an online host,no luck. I insert as source my link from the radio ...and yet no good result.Why? and what to do? All I get close was an empty window with a text for "plug-in" i have instaled...and no response.Is it posible to stream .pls files with wmp embaded into an website?
Thank you very much...[i did not sleep over 2 days, this is the 3rd...and no luck trying resolving my problem]

by Shannon on Wednesday, April 15th 2009 at 02:06 PM

I've got the media player working on our site, but I do not want the video screen to show. We are only playing audio messages and don't need the video screen. Is there anywhere in the code that I can change to remove the video screen?

by Fanindra on Thursday, April 16th 2009 at 01:33 PM

Hi All,

we have built a web application and used the same stategy to embedding the windows media player into wen page and we are really enjoying.now we want to use same thing for mobile web application I have used same but in this case it shows media player embedded but it wont play video particularly having urls starting from mms:// and rtsp://.actually this is working in our normal web application. if I give it full http:// path it first downloaded and then it plays.please suggest what would be the problem with it? will the problem is with mobile device ? problem with encoding ? frame rate/bit rate ?

Video format is .WMV.

by Jon on Thursday, April 30th 2009 at 01:58 PM

Hi, great tutorial, I've got it working just fine however only in firefox, when I try to open my webpage in Internet Explorer it just comes up as a quicktime fault... anybody know why??

by BrookHill Labs on Monday, May 4th 2009 at 12:15 PM

I've been reading about this for a month now and this is the first time I actually have some hope that it will work! Your writing is very easy to understand - even for a neophite like me!

I am having the same problem that others have had but I do not see how their problem was fixed.

The window, the controls and the status bar are all there but when I click to play, it says very fast so it's hard to catch that it is connecting then goes back to the ready mode. But my video does not play.

Can you please help me too?

my URL is fortheloveoflabradors.com/video/view/puppyCamReruns.html and the file I am trying to play is in the same location and called May4-09.wmv.

Thanks for your nice site!!!

by hudd on Friday, May 8th 2009 at 08:49 AM

Can someone please help me embed a media player on my website using my own video from my pc I tried to do wut this tutorial said but it doesn't work plzzzzzzzz help me

by lewis harris on Saturday, May 9th 2009 at 03:50 AM

thanks for the tips really usful- but when I embeded the player onto my website that Im making for free it never allows me to see it in full screen. is there something Im doing wrong? well, anyway im using windows internet axplorer and the free website is called synthasite or yola as its changing its name soon. the URL for the website is called www.synthasite.com thnx again, hope a reply from you soooooon! bubi

by lewis harris on Saturday, May 9th 2009 at 04:19 AM

check out the new website - www.familyguy4free.synthasite.com

by subhash on Tuesday, May 12th 2009 at 04:33 AM

it is very brilliant idea of embeeding windows media player into a website
can somebody tell me is it possible to embeed playlist of songs with player
so that people can choose and play the song of their choice??????

by Steven on Thursday, May 21st 2009 at 01:33 PM

Ok, Like others before me, I am new at this and have volunteered to put my churches website together, so with that said. How do and were do I find the file to add my videos to in cPanel?

I have been sitting here for well of 3 hours trying to find the file and for the life of me cannot find it!!!!!!? Can anyone help. I even have smartftp and can't get it to login to my cpanel....

I will be patiently waiting for some kind of answer.

Thank You

by Musa on Friday, May 22nd 2009 at 04:57 PM

Hello, I embedded wm player in the webpage iwth a wmv file. I have <param name='transparentatStart' value='0'> which shows wm player in a black background in the webpage. How can I attach a picture/icon/thumbnail in the display area for the movie. I have autostart value as "0". Please help me. Thanks.

by Mark on Tuesday, June 9th 2009 at 03:27 AM

Thank you for that helpful tutorial

http://www.notechsoft.com

by Ron on Saturday, June 13th 2009 at 12:37 PM

I have been trying to embed a wmv video into my web site. I am now using WMP 11 (using Vista 32 bit) and everytime I insert my code (below):

<object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/ nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="500" height="500">
<param name="fileName" value="RomaineFamily_3.wmv">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="Volume" value="-300">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://mysite.verizon.net/vzezc2m5/RomaineFamily_3.wmv" name="MediaPlayer1" width=500 height=500 autostart=1 showcontrols=1 volume=-300>
</object>

It plays fine thru the test in Windows Expression Web but will not play at the web site. I click on Error Details in the WMP box on the web page and the following shows:

Windows Media Player cannot find the file. If you are trying to play, burn, or sync an item that is in your library, the item might point to a file that has been moved, renamed, or deleted.

I have tried about 20 different combinations of the coding and all get the same result. I never had this problem when using earlier versions of WMP and I'm starting to think that 11 is causing the problem but can't figure out how to correct it. I have done all the things that are given as fixes for the WMP error and still no luck.
Any help would be greatly appreciated....

by Femi on Tuesday, August 4th 2009 at 08:19 AM

I want to know if it is possible to populate playlist from a database instead of having to specify the URL in the playlist file. The idea is that, when the user clicks POP on my page, all music that have their genre as POP in my database should be played to him.

Looking forward to a quick response please!!!

by Femi on Tuesday, August 4th 2009 at 08:20 AM

I want to know if it is possible to populate playlist from a database instead of having to specify the URL in the playlist file. The idea is that, when the user clicks POP on my page, all music that have their genre as POP in my database should be played to him.

Looking forward to a quick response please!!!

by Femi on Tuesday, August 4th 2009 at 08:55 AM

I need a media player that is platform independent. thanks

by Ram on Thursday, August 6th 2009 at 01:43 AM

Hi, Thanks for the great post.
It is working fine in IE but it is not coming in Mozila and in any other browser. Is there anything missing?

Thanks

by Ram on Thursday, August 6th 2009 at 01:43 AM

Hi, Thanks for the great post.
It is working fine in IE but it is not coming in Mozila and in any other browser. Is there anything missing?

Thanks

by Saraid on Wednesday, August 12th 2009 at 06:23 PM

Hello, I am not having a good day I have tried lots and lots of programmes to get a medica player to work properly...I was wondering if you could assist me this is my source at the moment
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>MyMovie</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body background="../Webpage Sets/rosebud_bkground.jpg">
<div align="center">
<table width="75%" align="center">
<tr>
<td height="55">
<div align="center">
<p><font color="#FFFFFF" size=" 7" face="Edwardian Script ITC">Presenting</font></p>
<p><font color="#FFFFFF" size=" 7" face="Edwardian Script ITC">** Blood
Diamond **</font></p>
</div></td>
</tr>
<tr>
<td height="482">
<div align="center">
<p>

by Saraid on Wednesday, August 12th 2009 at 06:23 PM

Hello, I am not having a good day I have tried lots and lots of programmes to get a medica player to work properly...I was wondering if you could assist me this is my source at the moment
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>MyMovie</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body background="../Webpage Sets/rosebud_bkground.jpg">
<div align="center">
<table width="75%" align="center">
<tr>
<td height="55">
<div align="center">
<p><font color="#FFFFFF" size=" 7" face="Edwardian Script ITC">Presenting</font></p>
<p><font color="#FFFFFF" size=" 7" face="Edwardian Script ITC">** Blood
Diamond **</font></p>
</div></td>
</tr>
<tr>
<td height="482">
<div align="center">
<p>

by David on Tuesday, August 25th 2009 at 02:14 PM

I've see a lot of old code floating around try this instead:

<object type="video/x-ms-wmv"
data="XXX.wmv" style="width: XXXpx; height: XXXpx">
<param name="src" value="XXX.wmv" />
<param name="autostart" value="true" />
<param name="controller" value="true" />
<param name="showstatusbar" value="true" />
</object>

That's all you need ;) and W3C friendly!

by Kim on Thursday, August 27th 2009 at 04:55 PM

Hi,

For embedding WMP into the web page, does any one know how to enable the WMP menu (just like when you play the wmv file straight from your desktop), so that users can have an option to save the stream media to their local desktop?

Truly appreciate for your help.

by Kim on Thursday, August 27th 2009 at 04:56 PM

Hi,

For embedding WMP into the web page, does any one know how to enable the WMP menu (just like when you play the wmv file straight from your desktop), so that users can have an option to save the stream media to their local desktop?

Truly appreciate for your help.

by Kim on Thursday, August 27th 2009 at 04:56 PM

Hi,

For embedding WMP into the web page, does any one know how to enable the WMP menu (just like when you play the wmv file straight from your desktop), so that users can have an option to save the stream media to their local desktop?

Truly appreciate for your help.

by Juan on Saturday, September 5th 2009 at 02:31 PM

Does anyone have the Param code to get the seek bar and buttons to work?

Everything works fine, but I can't seek, when I drag the seek bar it goes right back to the spot the video is currently playing, and the seek buttons don't function.

Anyway I can change this so the seek bar and buttons work?

by tahseen on Wednesday, September 16th 2009 at 01:45 AM

hello every body
i have embeded WMP11 in my html it works fine but now i want my lyrics to be shown with it with text scrolling as audio play farword...thanks

so for my bad english

by mzaaa on Wednesday, September 16th 2009 at 12:14 PM

thanks, you solved my problem again thanks

by Joel on Wednesday, September 16th 2009 at 01:32 PM

Hi,

Thanks for the tutorial. I embeded the player and my video is playing. Unfotunately none of the controls work, except for play pause. Any ideas?

by Saraid on Wednesday, September 16th 2009 at 04:28 PM

Hello again sorry I was cut off, Thank you once again for you kind help but I gave up the idea of showing films as it just would not work.

I started to use UTube to show things but now it seems to me you put them on a page and they will not play.. I shall just stick to plain old pages.

I did get the last one to play but all at once , wrong again I thought I would be able to play them individually..Wrong again ...will leave url and you might get a chuckle at my attemtps.
http://thenorthsea.net/Tattoo2009/EdinburghTattoo2009.htm


Take care and thank you once again

Saraid

by Saraid on Wednesday, September 16th 2009 at 04:28 PM

Hello again sorry I was cut off, Thank you once again for you kind help but I gave up the idea of showing films as it just would not work.

I started to use UTube to show things but now it seems to me you put them on a page and they will not play.. I shall just stick to plain old pages.

I did get the last one to play but all at once , wrong again I thought I would be able to play them individually..Wrong again ...will leave url and you might get a chuckle at my attemtps.
http://thenorthsea.net/Tattoo2009/EdinburghTattoo2009.htm


Take care and thank you once again

Saraid

by Juan on Wednesday, September 16th 2009 at 07:18 PM

To anyone who only is able to use the play button, and none of the other controls work, I just figured out that the other controls, like the seek bar, and forward/reverse controls work after the video is fully loaded. While the video is loading these controls won't work...just wait for the whole video to load, and after whatever amount time that is (depending on the size of your video file), the other controls should be fully functional. It happened to me that way.

by David on Thursday, September 17th 2009 at 05:46 PM

I can get the player to work fine in IE but can,t get it to show on the page in FF, NS or safari. Please could you give me some advice. Video format is wmv

by baba on Friday, September 18th 2009 at 07:32 AM

VERY VERY THANKS. IT WORKS...

by Keith on Monday, September 21st 2009 at 01:05 AM

Hello everybody,

Does anybody know how to embed a media player with visualization and a drop down menu or list to select various songs to play? I am wanting to place to player on a webpage without the player opening up in a seperate page.

by Fimagens on Tuesday, September 22nd 2009 at 08:18 AM

how can i lock the size of the player, so it can's be opened to full screen mode.
thanks

by tvradio on Wednesday, September 23rd 2009 at 04:43 AM

to saraid
in your webpage you use mp4
try to use mp3

try this:
http://l.yimg.com/us.yimg.com/i/mig/playlistbadge/25_dark.swf?autoplay=1

by tvradio on Wednesday, September 23rd 2009 at 04:45 AM

try this:
http://l.yimg.com/us.yimg.com/i/mig/playlistbadge/25_dark.swf?autoplay=1

by tvradio on Wednesday, September 23rd 2009 at 04:46 AM

by Ram on Thursday, September 24th 2009 at 01:50 AM

Hi,
Thank you for this usefull post.
I want to view the media player in the full screen on the same window as I click on the button "view full screen" in the same window like you tube videos, please tell me the the function to do this.

Thanks
Ram

by Aqil on Friday, November 6th 2009 at 06:49 AM

Hi, really very helpful article.
It does what I need. Discussions are very nice and very helpful.

Regards
Aqil

by pula on Wednesday, December 2nd 2009 at 07:16 AM

Hithere,

Hi
What an article it is, indeed you really know your stuff good people. I wasn’t aware that it would be easy like this. Keep up the good work guys.
All the best
Pula

by Lakshmi on Wednesday, December 16th 2009 at 11:51 PM

Very good article. very helpful.Thanks.

by olivia on Friday, December 18th 2009 at 06:00 AM

Hi, i'm perhaps not very technical and gonna sound silly - I've managed to embed the media player got it in exactly the position and size I want on my page but the video doesn't play once uploaded to the web. Any help? I have uploaded the video to the server.
Thanks in advance.

by rick on Thursday, December 31st 2009 at 02:02 PM

How do i keep the video from auto starting ?

by Vijay Zutshi on Wednesday, January 6th 2010 at 02:29 PM

I want to have a media player on my web site which will play avi files. The files will be listed on the web page and the user can click on each avi clip and then it will play in the media player which is embeded on the web site. My files including avi files will be downloaded on remote server. Can anyone give me a complete working javascript or HTML code to do the above. Will really appreciate

by Swapnil Shah on Thursday, January 7th 2010 at 12:04 AM

Can you please send me a complete source code becoz I have started to learn this stuff

Thank you

by sam on Tuesday, January 19th 2010 at 04:49 PM

I too, would like to know how to have an image, whether it be the first frame or an image that must be referenced in the parameters. About a dozen people have asked this questions and no one has had an answer.

Is this possible?

by vijay on Wednesday, January 20th 2010 at 09:54 PM

Hi Swapnil,

The code is as follows:

<script type="text/javascript">
function play(media){
document.getElementById('mediaplayer').innerHTML=
'<object classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95"'
'type="application/x-oleobject" width="320" height="285">'
'<param name="showControls" value="false">'
'<param name="fileName" value="' media '">'
'<embed type="application/x-mplayer2" width="320" height="285"'
'showcontrols="false" src="' media '"><\/embed><\/object>'
}
</script>


<div id="mediaplayer"></div>
<ul id="menu">
<li><a onclick="play(this.href);return false" href="">Source 1</a></li>
<li><a onclick="play(this.href);return false" href="">Source 2</a></li>
<li><a onclick="play(this.href);return false" href="">Source 3</a></li>
</ul>

This code works but for the first time when you open the web page windows media player will not be visible only when you click on the link windows media player will appear and then the file will play. What I wont is as soon as we go to the web page windows media player is displayed on the web page along with the links to pay AVI files and then user clicks on any AVI file and then it play inside the windows media player.

Kindly help

thanks
Vijay

by parthi on Monday, January 25th 2010 at 01:36 AM

how to set input dynamically to src attribute in embed tag while clicking button

by parthi on Monday, January 25th 2010 at 01:42 AM

how to set input dynamically to src attribute in embed tag while clicking button

by Sankarganesh on Saturday, January 30th 2010 at 06:32 AM

How to change a video resolution in my web page.


Please give me the answer

by Sankarganesh on Saturday, January 30th 2010 at 06:34 AM

How to add a video to my web page via tracking the video file into the web page.

by Sankarganesh on Saturday, January 30th 2010 at 06:51 AM

how to play a video in web page in the linux environment

by parthiban.J on Tuesday, February 2nd 2010 at 06:08 AM

i want to play video in browser window while clicking link-button in grid view control...
reply answer as soon as possible...

Thank you...,

by parthiban.J on Tuesday, February 2nd 2010 at 06:11 AM

thank you Sankarganesh....,i need brief script for this process,in button click event..,
waiting for ur reply.............

by KK on Wednesday, February 3rd 2010 at 01:52 AM

Hey parthiban you dont know anything... you are good for nothing... Just Hang and die..

by parthi on Thursday, February 4th 2010 at 03:48 AM

dai KK,if u kno ans send me..otherwise keep mum...stupid...

by Sankarganesh on Wednesday, February 17th 2010 at 07:20 AM

How to add a video to my web page via tracking the video file into the web page.
how to play a video in a web page in the linux fedora.

by Vijay on Thursday, March 4th 2010 at 12:06 PM

The code is as follows:

<script type="text/javascript">
function play(media){
document.getElementById('mediaplayer').innerHTML=
'<object classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95"'
'type="application/x-oleobject" width="320" height="285">'
'<param name="showControls" value="false">'
'<param name="fileName" value="' media '">'
'<embed type="application/x-mplayer2" width="320" height="285"'
'showcontrols="false" src="' media '"><\/embed><\/object>'
}
</script>


<div id="mediaplayer"></div>
<ul id="menu">
<li><a onclick="play(this.href);return false" href="">Source 1</a></li>
<li><a onclick="play(this.href);return false" href="">Source 2</a></li>
<li><a onclick="play(this.href);return false" href="">Source 3</a></li>
</ul>

I had posted my code sometime back but did not get any reply. The code and script that is mentioned above works absolutely free of fault when I am running it on my local PC as soon I load my web page and script on a remote web server it does not work. I click on the video links but the video does not play. I am assuming there is some problem could any one help please .

by sam on Thursday, March 4th 2010 at 09:29 PM

aaaahhhh

by Bob on Thursday, March 4th 2010 at 10:14 PM

...

by snnrx on Monday, March 8th 2010 at 01:41 AM

kindly help if we can add save as option in media player.

by Michelle on Thursday, March 11th 2010 at 10:02 AM

I have the video playing in one frame and in a another frame I have a pop up menu. When you click on the menus, they apprear behind the video. How can I fix this problem so the menu items appear in front of the video?

by Barry on Friday, March 12th 2010 at 11:46 AM

Hey can someone help me out here? I am trying to get windows media player to play a song list. but i cant not get it to pick the folder where the songs are. can someone please give the the correct html code to do this. Thanks I have it so it will loop a song but i want it to play a list of songs. I'm crazy.. help.
http://eosdj.com


Comment Comment on this tutorial
Name: Email:
Message:
Comment Related Tutorials
There are no related tutorials.

Comment Related Source Code
There is no related source code.

Jobs HTML Job Search
My skills include:
Enter a City:

Select a State:


Advanced Search >>
Latest Tech Bargains

Advertisement

Free Magazine Subscriptions

Today's Pictures

Today's Video

Other Resources

Latest Download

Latest Icons