|
-
Aug 20th, 2006, 02:44 AM
#1
Playing mpeg files in IE
Hi,
How to play a mpeg files by embed tag in html pages.
-
Aug 21st, 2006, 10:55 AM
#2
Re: Playing mpeg files in IE
From microsoft:
Code:
<HTML>
<HEAD>
<TITLE>Document Title</TITLE>
</HEAD>
<BODY>
<script language="JavaScript">
<!--
if ( navigator.appName == "Netscape" )
{
//-- This next line ensures that any plug-ins just installed are updated in the browser
//-- without quitting the browser.
navigator.plug-ins.refresh();
// We don't need the APPLET within IE
// ***Please note that if you do not need to script events, you can safely remove the next two lines
document.write("\x3C" + "applet MAYSCRIPT Code=NPDS.npDSEvtObsProxy.class")
document.writeln(" width=5 height=5 name=appObs\x3E \x3C/applet\x3E")
}
//-->
</script>
<!-- Set ShowControls, ShowDisplay, ShowStatusBar to value 0 to not display the corresponding thing under the video window -->
<OBJECT ID="MediaPlayer" WIDTH=320 HEIGHT=240 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject">
<PARAM NAME="FileName" VALUE="Station1.asx">
<PARAM NAME="ShowControls" VALUE="1">
<PARAM NAME="ShowDisplay" VALUE="1">
<PARAM NAME="ShowStatusBar" VALUE="1">
<PARAM NAME="AutoSize" VALUE="1">
<Embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/windows/windowsmedia/download/AllDownloads.aspx/"
filename="Station1.asx"
src="Station1.asx"
Name=MediaPlayer
ShowControls=1
ShowDisplay=1
ShowStatusBar=1
width=320
height=240>
</embed>
</OBJECT>
</BODY>
</HTML>
-
Aug 22nd, 2006, 12:50 PM
#3
Re: Playing mpeg files in IE
Mendhak ,i have a doubt .
You tube generally provides an embed tag code like
Code:
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/<some value>"></param>
<embed src="http://www.youtube.com/v/<some value>"
type="application/x-shockwave-flash" width="425"
height="350"></embed></object>
Now if i just copy and paste the above to an html page ,it works.
So why should we have to code so much to embed a windows media player into a page??
-
Aug 24th, 2006, 12:05 PM
#4
Re: Playing mpeg files in IE
Because youtube uses a flash object, not a windows media player object. Its flash object contacts its server and streams the movie and plays it in its own interface.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|