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

  • 50ar
  • Born
  • Born
  • No Avatar
  • Joined: Sep 15, 2004
  • Posts: 1
  • Status: Offline

Post September 15th, 2004, 11:23 am

This is cool.

I have hired a company to do a web page for me and told them up front that I wanted to be able to post mpegs on it. I really like what Nunzio390 has for viewing movies on his site!

I will refer my web-site-maker to his site to show just what I want.

Anyone have any advice on keeping track of how it is done?

Nunzio390's viewer seems very solid.

Thanks.

50ar
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 15th, 2004, 11:23 am

  • JimmyJimmy
  • Born
  • Born
  • No Avatar
  • Joined: Sep 15, 2004
  • Posts: 1
  • Status: Offline

Post September 15th, 2004, 1:32 pm

Hi all.
I am new to the forum, so forgive if this has been covered
I have read through this thread, and still haven't had any luck.
I want to embed an mpeg movie in the browser...
Everything shows up except the movie. I had to install a dvd program just to WATCH the movies. Is this what is causing the browser not to play the mpeg?
Thank you so much for your time!
  • hiteckart
  • Novice
  • Novice
  • No Avatar
  • Joined: Mar 14, 2003
  • Posts: 25
  • Status: Offline

Post November 12th, 2004, 1:06 am

Nunzio390 wrote:
:shock: ???

I'm confused. Not what you are looking for? I think it is.
This is what you originally posted...

CGFX wrote:
I once had the HTML script to embed a .avi movie file on a web page the same as we do jpg & gif files. No it didn't open up a Media player and I don't want it to, it simply played right in the table and/or frame you put it in. Do anybody know that script, I lost it. :roll:


According to what you originally asked, you are looking for a movie to play right within (embedded in) a web page (table - frame - doesn't matter), without the person's media player of choice installed in Windows opening instead to play the movie. Right? That's the way I read your initial post and that is what my response was based on.

I think you misread/misunderstood the references I posted.

Let's isolate just one movie that is part of the selection list at my Wacky Videos page....

http://nunzioweb.com/misc/wacky/rescue_baby.htm

When you click on the above link, a web page opens with the movie embedded right within that page, and the movie begins playing. Unless I'm completely misunderstanding you, that is exactly what you want to do.

So, in case that is what you want (and I'm pretty certain it is), then here is the cross-browser object and embed controls (for cross-browser compatability) used on that page, to allow the video to play and work perfectly within a web page in all major browsers...
Code wrote:
<object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" 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" 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://www.microsoft.com/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.



THANK YOU!
  • joe_liew
  • Born
  • Born
  • No Avatar
  • Joined: Dec 06, 2004
  • Posts: 2
  • Status: Offline

Post December 6th, 2004, 1:34 am

Hello to everybody, i'm new here. lately i've been trying to embed WMV file into a web page. i've copied and tried all the codes posted in this forum. The media player loads. However the movie cannot play. Nothing appears at all except for the player itself. Can anyone advice me?

Below is a link to the site,

http://www.jiwabaru.com/test.htm

i have uploaded the STour.wmv file into web server under Video folder.
Any idea why it couldn't load the file?
The WMV file is only 700+kb.

Please email me at joe_liew@jiwabaru.com. Thanks.
  • meman
  • Web Master
  • Web Master
  • User avatar
  • Joined: Aug 03, 2004
  • Posts: 3432
  • Loc: London Town , Apples and pears and all that crap
  • Status: Offline

Post December 6th, 2004, 4:36 am

I doubt people will email you the answer, if you cant be bothered to come back people wont make the effort running after you.

I would guess either the movie needs more time to load (test it on your computer).
Or the code is looking in the wrong location for the movie file, double check that you put the correct path in.
GodBeGone - Atheist Blog
  • joe_liew
  • Born
  • Born
  • No Avatar
  • Joined: Dec 06, 2004
  • Posts: 2
  • Status: Offline

Post December 6th, 2004, 11:06 pm

Hi Meman,

Thanks for your advice. I do come back to the forum to check out if there is any reply. Anyway i've checked the path and it is correct. The file loads perfectly in local computer. Is there anything got to do with the web server whether it supports mpeg or wmv file?
  • hiteckart
  • Novice
  • Novice
  • No Avatar
  • Joined: Mar 14, 2003
  • Posts: 25
  • Status: Offline

Post December 9th, 2004, 10:31 am

Code: [ Select ]
<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="160"HEIGHT="16"
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
<PARAM name="SRC" VALUE="your.wmv" >
<PARAM name="AUTOPLAY" VALUE="true">
<PARAM name="CONTROLLER" VALUE="true">
<EMBED SRC="your.wmv" WIDTH="160" HEIGHT="144" AUTOPLAY="true" CONTROLLER="false" PLUGINSPAGE="http://www.apple.com/quicktime/download/">
</EMBED>
</OBJECT>
  1. <OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="160"HEIGHT="16"
  2. CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
  3. <PARAM name="SRC" VALUE="your.wmv" >
  4. <PARAM name="AUTOPLAY" VALUE="true">
  5. <PARAM name="CONTROLLER" VALUE="true">
  6. <EMBED SRC="your.wmv" WIDTH="160" HEIGHT="144" AUTOPLAY="true" CONTROLLER="false" PLUGINSPAGE="http://www.apple.com/quicktime/download/">
  7. </EMBED>
  8. </OBJECT>


For wmv files I like to use the Quicktime plugin, it looks better.
  • Dubya
  • Proficient
  • Proficient
  • User avatar
  • Joined: Oct 22, 2004
  • Posts: 468
  • Status: Offline

Post December 9th, 2004, 10:40 am

joe_liew, I think what meman was trying to say was if it loads fine on your local computer, then it is probably just a very large file that will take time to load once it's up on the server. If you could, post you internet connection type (eg. cable or dialup) and the size of the video you are trying to embed. Then we can confirm if this is in fact the case.
  • rtrev64
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Nov 24, 2004
  • Posts: 38
  • Status: Offline

Post December 9th, 2004, 7:05 pm

CGFX wrote:
I once had the HTML script to embed a .avi movie file on a web page the same as we do jpg & gif files. No it didn't open up a Media player and I don't want it to, it simply played right in the table and/or frame you put it in. Do anybody know that script, I lost it. :roll:

Thanks
cgfX


Well I don't know if this is what you are looking for. It was a wmv but I changed it to flash.. check it out..
http://www.roberttrevino.com/rockonmusic.html
  • rtrev64
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Nov 24, 2004
  • Posts: 38
  • Status: Offline

Post December 9th, 2004, 8:38 pm

[flash width=100 height=100 loop=false]http://www.roberttrevino.com/guitar2ca.swf[/flash]

http://www.roberttrevino.com/rockonmusic.html
  • Chief Geek
  • Born
  • Born
  • No Avatar
  • Joined: Dec 16, 2004
  • Posts: 1
  • Status: Offline

Post December 16th, 2004, 3:03 am

Thanx for your answer numzio, it has helped me tremendously!
  • rtrev64
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Nov 24, 2004
  • Posts: 38
  • Status: Offline

Post December 16th, 2004, 5:00 am

I scrolled up see if there was a numzio and did not see that.. what is a numzio?

If you were calling me stupid then sorry for even replying.
  • deaconblues86
  • Born
  • Born
  • No Avatar
  • Joined: May 11, 2005
  • Posts: 1
  • Status: Offline

Post May 11th, 2005, 1:27 pm

I'm having problems with embedding a .wmv into a page for Opera. The code works fine when I open the page directly with Opera, but when I click a link to the page from another, Opera goes to the new page with the video for a split second and then goes back to the previous page. I simply cannot figure it out.

Here is the code, the umpteenth revision based on other posts here:

Code: [ Select ]
<p class="media">
<object id="MediaPlayer1" width=180 height=200
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
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">
<param name="FileName" value="//server/AUCTIONS/2005/20050428/1004.wmv">
<param name="ShowStatusBar" value="True">
<param name="DefaultFrame" value="mainFrame">
<embed type="application/x-mplayer2"
pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/"
src="//server/AUCTIONS/2005/20050428/1004.wmv" align="middle"
width=176
height=144
defaultframe="rightFrame"
showstatusbar=true>
</embed>
</object>
</p>
  1. <p class="media">
  2. <object id="MediaPlayer1" width=180 height=200
  3. classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
  4. codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
  5. standby="Loading Microsoft® Windows® Media Player components..."
  6. type="application/x-oleobject" align="middle">
  7. <param name="FileName" value="//server/AUCTIONS/2005/20050428/1004.wmv">
  8. <param name="ShowStatusBar" value="True">
  9. <param name="DefaultFrame" value="mainFrame">
  10. <embed type="application/x-mplayer2"
  11. pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/"
  12. src="//server/AUCTIONS/2005/20050428/1004.wmv" align="middle"
  13. width=176
  14. height=144
  15. defaultframe="rightFrame"
  16. showstatusbar=true>
  17. </embed>
  18. </object>
  19. </p>


It works great if opened directly, but, for the projection presentation for we're using this, that isn't an option. I've removed the code and the page functions properly, so I'm pretty sure the problem is here. Any help would be appreciated.
  • johnson8169z
  • Banned
  • Banned
  • No Avatar
  • Joined: May 17, 2005
  • Posts: 22
  • Loc: *TOP SECRET* (Not So)
  • Status: Offline

Post May 17th, 2005, 7:15 am

hey nunzio!! mind if u show me how u do that slidin' nav on your site? thx
  • johnson8169z
  • Banned
  • Banned
  • No Avatar
  • Joined: May 17, 2005
  • Posts: 22
  • Loc: *TOP SECRET* (Not So)
  • Status: Offline

Post May 17th, 2005, 7:17 am

johnson8169z wrote:
hey nunzio!! mind if u show me how u do that slidin' nav on your site? thx


about it, can u pm me or something?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 17th, 2005, 7:17 am

Post Information

  • Total Posts in this topic: 49 posts
  • Users browsing this forum: No registered users and 108 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
 
 

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