Have a mpeg play on the web page not open a media player

Posted on 2004-11-07
Last Modified: 2013-11-17
I want a video to be able to be played on the web page not open up a new media window.  Is that possible and how?
Question by:brycol24
    LVL 6

    Expert Comment

    You can embed it as an Object and it should with no problems!
    LVL 6

    Expert Comment

    <embed src="YourMovie.mpg" width="400" height="400" controller="false" loop="false" autoplay="true">
     or convert it to Flash using Swish here,!

    Hope this helps
    LVL 6

    Expert Comment

    more info:

    How to embed a Video through html (for opening within browser)

       1. Open your web page in an editing program
       2. View the html coding for your page
       3. Locate where you would like to embed the video
       4. Copy and paste the supplied code below in the desired spot
          note:  There is code for *.mov movie files in case QuickTime is needed
       5. Be sure to change the name of the video file to match yours, and you may need to

    Html Code for *.avi and *.mpg files

    <embed width=75 height=100 src="video/VIDEONAME.mpg" controls="true" autoplay="false">

    Html Code for *.mov files

    <embed width="75" height="100" pluginspage="" src="video/" type="video/quicktime" autoplay="true" loop="false">

    LVL 12

    Expert Comment

    This should do the job... just change the value for "FileName"


    <object id="MediaPlayer" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
    standby="Loading Microsoft Windows Media Player components..."

    <param name="FileName" value="mpeg/mpeg1.mpg">
    <param name="TransparentatStart" value="true">
    <param name="AutoStart" value="true">
    <param name="ShowControls" value="1">

    Author Comment


    I tried that and the video didnt play.  Is there something missing?
    LVL 12

    Expert Comment

    Hi brycol24

    Are you using netscape or any other browser that is not IE? I just tested the code i posted above and it only worked in IE and not in Netscape.
    And I got it to work in netscape as well with the code below.
    Remember to change the value for "FileName" and the src for the embed tag.

    Hope this works for you....

    <object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase=",1,52,701"
    standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="280" height="256">
    <param name="fileName" value="mpeg/mpeg1.mpg">
    <param name="animationatStart" value="true">
    <param name="transparentatStart" value="true">
    <param name="autoStart" value="true">
    <param name="showControls" value="true">
    <param name="Volume" value="-450">
    <embed type="application/x-mplayer2" pluginspage="" src="mpeg/mpeg1.mpg" name="MediaPlayer1" width=280 height=256 autostart=1 showcontrols=1 volume=-450>

    Author Comment

    I assume that <param name="fileName" value="mpeg/mpeg1.mpg"> is what I need to edit.  However, I put the name of the file in there, it was simply called videos.mpg and nothing came up.  Do I need to direct it a path?  If so what would the path be?

    LVL 6

    Expert Comment

    The path to your Video on your webserver.

    or any subfolder you FTP it into:

    or another location on the web maybe:

    LVL 6

    Expert Comment

    The Value is what you change...
    LVL 12

    Expert Comment

    <param name="fileName" value="mpeg/mpeg1.mpg"> --> CHANGE the VALUE to your_video.mpg

    <embed type="application/x-mplayer2" pluginspage="" src="mpeg/mpeg1.mpg" name="MediaPlayer1" width=280 height=256 autostart=1 showcontrols=1 volume=-450> --> CHANGE the SRC to your_video.mpg

    it can be a relative path or absolute path.....


    Author Comment

    ok that is what I did and it is still not working.  

    Author Comment

    I am going to try and do it with this "" and hopefully that will work.

    LVL 6

    Accepted Solution

    Try it with this video, I know this one works!

    This is how they have it at Stupid Videos:

    <object classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase=",4,7,1112" id="wmp" type="application/x-oleobject" width="240" height="207" standby="Loading Microsoft Windows Media Player components...">
                              <param NAME="AudioStream" VALUE="-1">
                              <param NAME="AutoSize" VALUE="0">
                              <param NAME="AutoStart" VALUE="-1">
                              <param NAME="AnimationAtStart" VALUE="-1">
                              <param NAME="AllowScan" VALUE="0">
                              <param NAME="AllowChangeDisplaySize" VALUE="0">
                              <param NAME="AutoRewind" VALUE="0">
                              <param NAME="Balance" VALUE="0">
                              <param NAME="BufferingTime" VALUE="5">
                              <param NAME="ClickToPlay" VALUE="-1">
                              <param NAME="CursorType" VALUE="0">
                              <param NAME="DisplayBackColor" VALUE="0">
                              <param NAME="DisplayForeColor" VALUE="16777215">
                              <param NAME="DisplayMode" VALUE="0">
                              <param NAME="DisplaySize" VALUE="0">
                              <param NAME="Enabled" VALUE="-1">
                              <param NAME="EnableContextMenu" VALUE="0">
                              <param NAME="EnablePositionControls" VALUE="-1">
                              <param NAME="EnableFullScreenControls" VALUE="0">
                              <param NAME="EnableTracker" VALUE="-1">
                              <param NAME="Filename" VALUE="">
                              <param NAME="InvokeURLs" VALUE="-1">
                              <param NAME="Language" VALUE="-1">
                              <param NAME="Mute" VALUE="0">
                              <param NAME="PlayCount" VALUE="1">
                              <param NAME="PreviewMode" VALUE="0">
                              <param NAME="Rate" VALUE="1">
                              <param NAME="SAMILang" VALUE>
                              <param NAME="SAMIStyle" VALUE>
                              <param NAME="SAMIFileName" VALUE>
                              <param NAME="SelectionStart" VALUE="-1">
                              <param NAME="SelectionEnd" VALUE="-1">
                              <param NAME="SendOpenStateChangeEvents" VALUE="-1">
                              <param NAME="SendWarningEvents" VALUE="-1">
                              <param NAME="SendErrorEvents" VALUE="-1">
                              <param NAME="SendKeyboardEvents" VALUE="0">
                              <param NAME="SendMouseClickEvents" VALUE="0">
                              <param NAME="SendMouseMoveEvents" VALUE="0">
                              <param NAME="SendPlayStateChangeEvents" VALUE="-1">
                              <param NAME="ShowCaptioning" VALUE="0">
                              <param NAME="ShowControls" VALUE="-1">
                              <param NAME="ShowAudioControls" VALUE="-1">
                              <param NAME="ShowDisplay" VALUE="0">
                              <param NAME="ShowGotoBar" VALUE="0">
                              <param NAME="ShowPositionControls" VALUE="0">
                              <param NAME="ShowStatusBar" VALUE="0">
                              <param NAME="ShowTracker" VALUE="0">
                              <param NAME="TransparentAtStart" VALUE="0">
                              <param NAME="VideoBorderWidth" VALUE="0">
                              <param NAME="VideoBorderColor" VALUE="0">
                              <param NAME="VideoBorder3D" VALUE="0">
                              <param NAME="Volume" VALUE="0">
                              <param NAME="WindowlessVideo" VALUE="0">
                                      <embed TYPE="video/x-ms-asf-plugin" PLUGINSPAGE=""
                                      SRC="" name="wmp" SHOWCONTROLS="1" EnableContextMenu="0" SHOWDISPLAY="0" SHOWTRACKER="0" SHOWPOSITIONCONTROLS="0" SHOWSTATUSBAR="0" autosize="1" autostart="1" width="240" height="207" displaybackcolor="black">
                              <a href="">Click Here to Play the Video</a>

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
    Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
    The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
    The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: : Go t…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now