Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   ASP.NET (http://www.programmingforums.org/forum35.html)
-   -   Using Windows Media Player with Asp.NET (http://www.programmingforums.org/showthread.php?t=11848)

lucifer Nov 10th, 2006 6:03 AM

Using Windows Media Player with Asp.NET
 
I want to play movies on my website ,but i am not able to embedd media player in asp.net page
can some body help me

melbolt Nov 13th, 2006 9:30 AM

one way to do it, which really has nothing to do with asp .net but rather html is like so:


:

  1. <object width="320" height="290"
  2. classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
  3. id="mediaplayer1">
  4. <param name="Filename" value="kids.mpg">
  5. <param name="AutoStart" value="True">
  6. <param name="ShowControls" value="True">
  7. <param name="ShowStatusBar" value="False">
  8. <param name="ShowDisplay" value="False">
  9. <param name="AutoRewind" value="True">
  10. <embed
  11. type="application/x-mplayer2"
  12. pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/"
  13. width="320" height="290" src="/support/dreamweaver/ts/documents/kids.mpg"
  14. filename="kids.mpg" autostart="True"
  15. showcontrols="True" showstatusbar="False"
  16. showdisplay="False" autorewind="True">
  17. </embed>
  18. </object>


stolen from http://www.adobe.com/cfusion/knowled...fm?id=tn_15777



another possible way might be to download the windows media player sdk thing and see if there is a control that you can use in asp .net. here's an example but this is in a regular .Net app, but may be somewhat similar to the way its done in asp as well.
http://www.informit.com/articles/art...?p=101752&rl=1

Iftikhar Nov 13th, 2006 9:40 AM

I used the similar method in my experiment site, ie. using object tag. However if you also want that your movie clip play in other browsers like FF2 then also use embed tag with object tag. The url of my experiment is
http://uxisfyp1.brunel.ac.uk/cspgiak

ziyad6 Aug 28th, 2008 2:31 AM

Re: Using Windows Media Player with Asp.NET
 
Here is the link http://dotnetsoldier.blogspot.com/20...pages-and.html that explains how to embed wmp in asp.net

HTH:icon_cry:


All times are GMT -5. The time now is 1:37 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC