Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Playing media files in the browser

Reply
Thread Tools

Playing media files in the browser

 
 
Jaydeep
Guest
Posts: n/a
 
      04-08-2004
Hi All,
Requirement is, I want to execute .asf or .wma files from browser.
Following is my code...

<object id="MediaPlayer1" width=180 height=200
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"


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" align="middle" VIEWASTEXT>
<param name="url" value="http://localhost:86/e-learning/sample.asf">
<param name="ShowStatusBar" value="True">
<PARAM name="autoStart" value="True">

<embed type="application/x-mplayer2"
pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/"
src="http://localhost:86/e-learning/sample.asf" align="middle"
width=176
height=144
defaultframe="rightFrame"
showstatusbar=true>
</embed>
</object>

When I browse the page, I can see the Media player but, instead of executing
the sample.asf in the media player,
it asks to download the sample.asf file
I don't understand why it is not running the .asf file in the media player,
and why it is asking me to download the file...

O/S: Win 2k Server. Windows Media Player Version: 9

TIA
Jaydeep
--


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Media Player11 not playing WMV files =?Utf-8?B?TWlrZQ==?= Windows 64bit 7 02-22-2007 12:01 AM
Playing media files Mark Rae ASP .Net 0 02-16-2006 08:57 AM
Preventing in-page playing of wma-files in XP (which are started from .wax-files) Erik van Duijn HTML 3 01-30-2004 05:22 PM
Getting basic information about media file playing with MediaPlayer rosmi Java 0 11-24-2003 05:43 PM



Advertisments