|
|
#1 |
|
Daemon Poster
Join Date: May 2009
Posts: 690
|
I need some help with how to get a Video say an MPG to play on a web page.
I see a lot of things about FLASH and I know if something plays in FLAS on a web page it also meens you can do a lot with it. Like move diferant controles and look at the move from diferant looks. But I don't even know if I have to use Flash. I just want to know how to get a Video to Play on a web page. If anyone can help me with a simple way thanks |
|
|
|
|
|
#2 |
|
In Runtime
|
This should do it:
Code:
<embed src="yourmovie.mpg" width="200" height="200"></embed>
__________________
**Official Self-proclaimed glorified excessive (insert additional adjectives here) post editor/modifier. Edit = Best feature ever http://www.twitter.com/xDaevax |
|
|
|
|
|
#3 |
|
Daemon Poster
Join Date: May 2009
Posts: 690
|
You say the code is
<embed src="yourmovie.mpg" width="200" height="200"></embed> Should it not be <embed> src="yourmovie.mpg" width="200" height="200" </embed> |
|
|
|
|
|
#4 |
|
In Runtime
|
No, the src, height, and width are all attributes belonging to the embed element and are therefore inside of the tag. There should be nothing that goes in between the <embed></embed> tags.
Hope this helps. Using a flash player to serve the video is the safest way to make sure that everyone (or most everyone) can view the video, you would either have to write your own in flash, or find a free flash movie player. But the embedding of the mpg is the most simple way to get it done.
__________________
**Official Self-proclaimed glorified excessive (insert additional adjectives here) post editor/modifier. Edit = Best feature ever http://www.twitter.com/xDaevax |
|
|
|
|
|
#5 |
|
Beta Member
Join Date: Jul 2009
Posts: 3
|
Would this not work?
Code:
<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="video.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="video.mpg" name="MediaPlayer1" width=280 height=256 autostart=1 showcontrols=1 volume=-450> </object> |
|
|
|
|
|
#6 |
|
Beta Member
Join Date: Aug 2009
Posts: 1
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|