473,394 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Using Windows Media Player 10 on an ASPX page

Hi all, I found this succint and straightforward example at
http://msdn.microsoft.com/library/de...inawebpage.asp :

<HTML>
<HEAD>
</HEAD>
<BODY>
<OBJECT ID="Player" height="0" width="0"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
</OBJECT>
<INPUT TYPE="BUTTON" NAME="BtnPlay" VALUE="Play" OnClick="StartMeUp()">
<INPUT TYPE="BUTTON" NAME="BtnStop" VALUE="Stop" OnClick="ShutMeDown()">
<SCRIPT>
<!--

function StartMeUp ()
{
Player.URL = "laure.wma";
}

function ShutMeDown ()
{
Player.controls.stop();
}

-->
</SCRIPT>
</BODY>
</HTML>

Only problem is, it does not work. :) When I click the play button,
nothing happens. I've tried the obvious things, verified the url to file,
etc...

Can anyone verify that this is indeed the class id for WMP 10?

Or does anyone else have a simple example of playing a WMA file from a web
page without popping up the Media Player?

Thanks in advance,

Jon Schwartz
Morrison Schwartz
www.ms-inc.net
Nov 19 '05 #1
0 1140

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Meddle | last post by:
How to receive the name of song, sounding in real time in a Windows Media Player 10? I tried to use Marshal.GetActiveObject("MediaPlayer.MediaPlayer"), but win Windows Media Player it don't work....
0
by: ASPuser | last post by:
Hello I have 2 questions. Hope someone answer...if possible, please include code example, please. Thanks in advance 1. I have ASP.NET page and I placed Windows Media Player in it. It has Play,...
2
by: Vanga Sasidhar | last post by:
Already posted the same message but the date and time of my machine was set back. and it was listed under the old date. Thats why I am posting the same message again. Please accept this. ...
0
by: NiNiT | last post by:
I need to display embedded Windows Media Player plugin inside a browser that fetches its video over HTTPS. Is that possible? In other words, does Windows Media Player embedded plugin support...
1
by: Mark C | last post by:
How do you close windows media player in a web page after its played. I have added a windows media player to my web page as: <object id="Player"...
0
by: dongarbage | last post by:
Hi there, I've created a user control to put in a web page. I'd like to add a windows media player control to the user control that I've created. But, for some reason, the user control does not...
3
by: Muhammad Ammad Saleem | last post by:
Hi, I just want to know how to control the Windows Media Player Control using JScript in an ASP .NET page? I have tried going through the Windows Media Player SDK but there is no proper help...
13
by: =?Utf-8?B?Um9nZXIgTWFydGlu?= | last post by:
This is a follow-up to my post "Silverlight video doesn't work when file is streamed from handler in ASP.net" at...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.