p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 2.0 Professional (http://p2p.wrox.com/forumdisplay.php?f=215)
-   -   Adding Windows Media Player to ASPX page (http://p2p.wrox.com/showthread.php?t=58580)

bleitner May 31st, 2007 02:28 AM

Adding Windows Media Player to ASPX page
 
Hi all,

I've got a web site that I want to be able to play .wmv movie files on. I want to embed a windows media player activex control on the page and when someone clicks a hyperlink/link button under the control it starts an associated movie.

I thought I could just add an <object> to the page and access it programatically from the code behind to set the player.URL property to kick off the movie but I'm getting an error on the page that the player doesn't exist - it's not seeing it because it's not a server control I asssume.

I also found directions to add the COM object of the windows media player to the toolbox by adding a reference to the project, but I don't see the player added to the toolbox so I can't addit to the page.

Can anyone give me direction on what is the best way to go about this?

Thanks!
Bob

pfang100 August 13th, 2007 12:37 AM

Did you ever get this question answered? I have the same question and wonder if you HAVE to create a custom server side control to accomplish the task.


Jonax August 13th, 2007 03:08 AM

You'll need to generate some client-side script I think, have a look at these references:
http://www.mioplanet.com/rsc/embed_mediaplayer.htm
http://www.microsoft.com/technet/scr...ne/player.mspx
http://msdn2.microsoft.com/en-us/library/bb249259.aspx




All times are GMT -4. The time now is 04:10 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.