What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Embedding .flv file into a website

Pages: (3): « First [ 1 ] 2 3 » Last »
Embedding .flv file into a website
Author: Message:
Th3rmal
Veteran Member
*****

Peek-a-boo! I see you!!

Posts: 1226
Reputation: 26
32 / Male / Flag
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&#8465;=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
Profile E-Mail PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
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. :p
01-22-2009 05:46 AM
Profile PM Web Find Quote Report
Th3rmal
Veteran Member
*****

Peek-a-boo! I see you!!

Posts: 1226
Reputation: 26
32 / Male / Flag
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. :p
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
Profile E-Mail PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
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
Profile PM Web Find Quote Report
Th3rmal
Veteran Member
*****

Peek-a-boo! I see you!!

Posts: 1226
Reputation: 26
32 / Male / Flag
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 :D 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
Profile E-Mail PM Web Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Embedding .flv file into a website
If you are looking for other flv players this is a good one: http://www.longtailvideo.com/players/jw-flv-player/

You can also add plugins to it for ratings and other stuff.
[Image: 1-0.png]
             
01-22-2009 02:57 PM
Profile PM Web Find Quote Report
prashker
Veteran Member
*****


Posts: 5109
Reputation: 104
– / Male / –
Joined: Mar 2005
Status: Away
RE: Embedding .flv file into a website
JW fails at life, get FlowPlayer

http://sonicsam.net for example :D (720p too!)
01-22-2009 09:17 PM
Profile PM Find Quote Report
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
32 / Male / Flag
Joined: Mar 2003
RE: Embedding .flv file into a website
ALL flv players that use Flash suck. Period.

Suggestion: Use DivX Web Player.
YouTube closed-captions ripper (also allows you to download videos!)
01-22-2009 09:41 PM
Profile E-Mail PM Web Find Quote Report
prashker
Veteran Member
*****


Posts: 5109
Reputation: 104
– / Male / –
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
Profile PM Find Quote Report
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
32 / Male / Flag
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... :(
YouTube closed-captions ripper (also allows you to download videos!)
01-22-2009 10:01 PM
Profile E-Mail PM Web Find Quote Report
Pages: (3): « First [ 1 ] 2 3 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On