Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 31st, 2007, 02:28 AM
Authorized User
 
Join Date: Nov 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
 
Old August 13th, 2007, 12:37 AM
Registered User
 
Join Date: Aug 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

 
Old August 13th, 2007, 03:08 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 184
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Jonax
Default

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







Similar Threads
Thread Thread Starter Forum Replies Last Post
Add Media Player Control in webpage(.aspx) dharmeshtandel C# 1 April 3rd, 2008 07:28 AM
Windows Media Player 10 gigamars04 VB.NET 1 December 17th, 2007 12:12 AM
Windows Media Player 1g0r Pro VB 6 0 October 16th, 2006 12:51 AM
embedding media player in your c# windows app aravindv C# 0 August 28th, 2005 11:24 AM
How to embed the media player in the .aspx page doctorsom Classic ASP Components 1 December 24th, 2004 02:19 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.