Embedding .flv file into a website |
Author: |
Message: |
Th3rmal
Veteran Member
Peek-a-boo! I see you!!
Posts: 1226 Reputation: 26
32 / /
Joined: Aug 2005
|
O.P. Embedding .flv file into a website
I need help on embedding a .flv file into a website. I have tried the following two codes to no avail:
code: <html>
<body>
<script type="text/javascript" src="https://media.dreamhost.com/ufo.js"></script>
<p id="simpsons_CUT.flv"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
var FO = { movie:"http://www.th3rmal.com/dana/simpsons/simpsons_CUT.flv",width:"575",height:"400",majorversion:"7",build:"0",bgcolor:"#FFFFFF",
flashvars:"file=http://www.th3rmal.com/dana/simpsons/simpsons_CUT.flv&showdigits=true&autostart=false" };
UFO.create(FO,"simpsons_CUT.flv");
</script>
</body>
</html>
and
code: <html>
<body>
<div id="mvcontainer"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>
<script type="text/javascript" src="http://www.th3rmal.com/dana/simpsons/simpsons_CUT.flv"></script>
<script type="text/javascript">
var s1 = new SWFObject("http://www.th3rmal.com/dana/simpsons/simpsons_CUT.flv","ply","320","260","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
s1.addParam("flashvars","file=http://www.th3rmal.com/dana/simpsons/simpsons_CUT.flvℑ=https://media.dreamhost.com/mp4/preview.jpg");
s1.write("mvcontainer");
lt;/script>
</body>
</html>
The file is located at http://www.th3rmal.com/dana/simpsons/simpsons_CUT.flv
With the first code, the movie doesnt seem to load at all, while with the second code, the error of "Get Flash Player" seems to come up.
Any help would be appreciated
You have the intellect comparable to that of a rock. Be proud.
|
|
01-22-2009 05:02 AM |
|
|
WDZ
Former Admin
Posts: 7106 Reputation: 107
– / /
Joined: Mar 2002
|
RE: Embedding .flv file into a website
You need a player to play the video... look at the examples on the DreamHost wiki and notice how they link to a .swf file where you're linking directly to the .flv.
|
|
01-22-2009 05:46 AM |
|
|
Th3rmal
Veteran Member
Peek-a-boo! I see you!!
Posts: 1226 Reputation: 26
32 / /
Joined: Aug 2005
|
O.P. RE: Embedding .flv file into a website
quote: Originally posted by WDZ
You need a player to play the video... look at the examples on the DreamHost wiki and notice how they link to a .swf file where you're linking directly to the .flv.
I have had a look at the wiki, thats where the first code came from =/
You have the intellect comparable to that of a rock. Be proud.
|
|
01-22-2009 07:32 AM |
|
|
WDZ
Former Admin
Posts: 7106 Reputation: 107
– / /
Joined: Mar 2002
|
RE: Embedding .flv file into a website
The problem is that you replaced the player URL (highlighted in blue below) with the URL of your flv file... try changing it back.
code: <script type="text/javascript" src="https://media.dreamhost.com/ufo.js"></script>
<p id="sample.flv"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
var FO = { movie:"https://media.dreamhost.com/mediaplayer.swf",width:"320",height:"240",majorversion:"7",build:"0",bgcolor:"#FFFFFF",
flashvars:"file=https://media.dreamhost.com/sample.flv&showdigits=true&autostart=false" };
UFO.create(FO,"sample.flv");
</script>
You could also upload a flash video player to your own site if you don't want to use DreamHost's copy.
|
|
01-22-2009 08:02 AM |
|
|
Th3rmal
Veteran Member
Peek-a-boo! I see you!!
Posts: 1226 Reputation: 26
32 / /
Joined: Aug 2005
|
O.P. RE: Embedding .flv file into a website
quote: Originally posted by WDZ
The problem is that you replaced the player URL (highlighted in blue below) with the URL of your flv file... try changing it back.
code: <script type="text/javascript" src="https://media.dreamhost.com/ufo.js"></script>
<p id="sample.flv"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
var FO = { movie:"https://media.dreamhost.com/mediaplayer.swf",width:"320",height:"240",majorversion:"7",build:"0",bgcolor:"#FFFFFF",
flashvars:"file=https://media.dreamhost.com/sample.flv&showdigits=true&autostart=false" };
UFO.create(FO,"sample.flv");
</script>
You could also upload a flash video player to your own site if you don't want to use DreamHost's copy.
OHHHHHH thanks testing now....
EDIT: Yay works! ty
This post was edited on 01-22-2009 at 08:28 AM by Th3rmal.
You have the intellect comparable to that of a rock. Be proud.
|
|
01-22-2009 08:23 AM |
|
|
Ezra
Veteran Member
Forgiveness is between them and God
Posts: 1960 Reputation: 31
37 / /
Joined: Mar 2003
|
|
01-22-2009 02:57 PM |
|
|
prashker
Veteran Member
Posts: 5109 Reputation: 104
– / / –
Joined: Mar 2005
Status: Away
|
RE: Embedding .flv file into a website
JW fails at life, get FlowPlayer
http://sonicsam.net for example (720p too!)
|
|
01-22-2009 09:17 PM |
|
|
Mike
Elite Member
Meet the Spam Family!
Posts: 2795 Reputation: 48
32 / /
Joined: Mar 2003
|
RE: Embedding .flv file into a website
ALL flv players that use Flash suck. Period.
Suggestion: Use DivX Web Player.
|
|
01-22-2009 09:41 PM |
|
|
prashker
Veteran Member
Posts: 5109 Reputation: 104
– / / –
Joined: Mar 2005
Status: Away
|
RE: Embedding .flv file into a website
hey cool lets use a player nobody has!
|
|
01-22-2009 09:51 PM |
|
|
Mike
Elite Member
Meet the Spam Family!
Posts: 2795 Reputation: 48
32 / /
Joined: Mar 2003
|
RE: Embedding .flv file into a website
quote: Originally posted by SonicSam
hey cool lets use a player nobody has!
And that's the reason Flash still dominates the market...
|
|
01-22-2009 10:01 PM |
|
|
Pages: (3):
« First
[ 1 ]
2
3
»
Last »
|
|