Results 1 to 4 of 4

Thread: Playing mpeg files in IE

  1. #1

    Thread Starter
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Playing mpeg files in IE

    Hi,
    How to play a mpeg files by embed tag in html pages.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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>

  3. #3
    Frenzied Member litlewiki's Avatar
    Join Date
    Dec 2005
    Location
    Zeta Reticuli Distro:Ubuntu Fiesty
    Posts
    1,162

    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??

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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
  •  



Click Here to Expand Forum to Full Width