How To Embed a .avi or .mpeg file on a web page?

  • kikwete
  • Novice
  • Novice
  • No Avatar
  • Joined: Mar 26, 2008
  • Posts: 17
  • Status: Offline

Post January 18th, 2009, 11:59 pm

You can make your Web site more dynamic by adding video to it. By using Microsoft Office FrontPage 2003, you can embed a video directly in a Web page so that it downloads automatically when a site visitor opens the page. You can also add a hyperlink in your Web page to the location of a video file. This enables site visitors to decide whether or not they want to download it.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post January 18th, 2009, 11:59 pm

  • tekila
  • Born
  • Born
  • No Avatar
  • Joined: May 24, 2010
  • Posts: 1
  • Status: Offline

Post May 24th, 2010, 3:56 am

Hello all im new here :)

Im using thsi code but only player shows and it sias that it is "Ready"
But i cant play movie ;[



Code: [ Select ]
<object id="MediaPlayer1" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" width="280" height="256" codebase="http://activex.microsof/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject">
<param name="fileName" value="RussianStyle.avi" />
<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" width="280" height="256" src="RussianStyle.avi" pluginspage="/www.microsf/Windows/MediaPlayer/" name="MediaPlayer1" autostart="1" showcontrols="1" volume="-450"></embed>
</object>
  1. <object id="MediaPlayer1" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" width="280" height="256" codebase="http://activex.microsof/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject">
  2. <param name="fileName" value="RussianStyle.avi" />
  3. <param name="animationatStart" value="true" />
  4. <param name="transparentatStart" value="true" />
  5. <param name="autoStart" value="true" />
  6. <param name="showControls" value="true" />
  7. <param name="Volume" value="-450" /> <embed type="application/x-mplayer2" width="280" height="256" src="RussianStyle.avi" pluginspage="/www.microsf/Windows/MediaPlayer/" name="MediaPlayer1" autostart="1" showcontrols="1" volume="-450"></embed>
  8. </object>
  • southdeltan
  • Born
  • Born
  • No Avatar
  • Joined: Jun 08, 2011
  • Posts: 3
  • Status: Offline

Post June 8th, 2011, 10:12 am

I know this is a very old thread - but it was at the top of the google search and has good info in it - however I'm having a problem with this code:

Nunzio390 wrote:
Code wrote:
<object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://EDITTED/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="280" height="256">
<param name="fileName" value="
Kick_Baby_2.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="http://EDITTED/Windows/MediaPlayer/" src="
Kick_Baby_2.mpg" name="MediaPlayer1" width=280 height=256 autostart=1 showcontrols=1 volume=-450>
</object>


Just change both instances indicated in red in the above code to point to your .avi movie file instead of mine. That's all.

If you prefer to not have the player controls showing (visible), then change these lines...
Code wrote:
<param name="showControls" value="true">
showcontrols=1


to this instead...
Code wrote:
<param name="showControls" value="false">
showcontrols=0


If you do that though, you may also have to change the 2 instances of the height value of the movie to compensate for the missing controls, to not show any "black" space where the controls should have been.

Example:
Change the 2 height values of 256 to 212 or so. That should embed the movie nicely cross-browser, since the player controls are approximately 44 pixels high.

*Note: width and height values will need to be changed to reflect the size of the actual movie, since different movies have different dimensions. Your movie may be larger/smaller than mine.


The player displays on the page but nothing happens when I click the play button.
  • Zealous
  • Guru
  • Guru
  • User avatar
  • Joined: Apr 15, 2011
  • Posts: 1201
  • Loc: Sydney
  • Status: Offline

Post June 24th, 2011, 1:46 am

lol get some clip bucket happening as a video management system and embeded the video's into the site and even use youtube servers to hos the content. There is a lot of work in the setup and shared hosting is not recommended for this script either from the server-load and traffic it uses.

Post Information

  • Total Posts in this topic: 49 posts
  • Users browsing this forum: No registered users and 169 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.