Current time: 04-24-2014, 03:10 PM Hello There, Guest! (LoginRegister)

Cannot get Flash Player to work
03-28-2007, 07:12 PM
Post: #1
Cannot get Flash Player to work
I can't understand what am I doing wrong. I uploaded a video file, the video converter emailed me saying it successfully converted the video to FLV format and it gave me some code to place in my HTML page which I did. I put it in the HEAD section, then on the BODY section but all I see is a message that says "Get the Flash Player to see this player" What am I doing wrong? I uploaded the mediaplayer.swf to my home directory where the index.htm resides.

This is the code I am placing in the HTML file:
<script type="text/javascript" src="https://media.dreamhost.com/ufo.js"></script>
<p id="AntonySantosEnElCasandra07_480x360.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:"mediaplayer.swf",width:"480",height:"360",majorversion:"7",build:"0",bgcolor:"#FFFFFF";,
flashvars:"file=http://www.vaciloneros.com/videos/AntonySantosEnElCasandra07_480x360.flv&showdigits=true&autostart=false"; };
UFO.create(FO,"AntonySantosEnElCasandra07_480x360.flv");
</script>

Why isn't the Flash Player showing up?
Find all posts by this user
03-28-2007, 07:45 PM
Post: #2
Cannot get Flash Player to work
Well, looking at this it appears that you don't have a complete url to the mediaplayer.swf file.

The DH example is at https://media.dreamhost.com/mediaplayer.swf (http: also works)

AND the flashvars argument is passed through with translation so you MUST use & a m p ; (no spaces) instead of &

And it appears that your flv file isn't where you documented so i can't actually try it from your site.

Hopefully all that info will help you out. Lemme know!

Wholly - Use promo code WhollyMindless for full 97$ credit. Let me know if you want something else!
Find all posts by this user
03-28-2007, 07:48 PM
Post: #3
Cannot get Flash Player to work
Problem solved!

After examining the code letter by letter I found the problem to be the code I was sent via email had a problem. I found that there was a semicolon after the bgcolor:"#FFFFFF" and another one after the autostart=false" (please see my code above)

Those semicolons must be removed or else the player won't work. This is a bug in the automated emails sent that Dreamhost should pay attention to.

You could not find the file because I had renamed it. While troubleshooting I thought the name was too long so I renamed it accordingly and changed it in the running page code.

You can try it here now, it is working fine!

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

I had also fixed the & a m p ; code too. The amp was missing from the automated email.

Here's the working code:

<script type="text/javascript" src="https://media.dreamhost.com/ufo.js"></script>

<p id="Santos.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=http://www.vaciloneros.com/videos/Santos.flv&showdigits=true&autostart=false" };
UFO.create(FO,"Santos.flv");
</script>
Find all posts by this user
03-28-2007, 07:53 PM
Post: #4
Cannot get Flash Player to work
That's good to hear. I remember stripping some semicolons off too.

It's hard to deal with translated text but I noticed that the samples on http://media.dreamhost.com showed clean scripts that worked.

Wholly - Use promo code WhollyMindless for full 97$ credit. Let me know if you want something else!
Find all posts by this user
03-28-2007, 07:56 PM
Post: #5
Cannot get Flash Player to work
Yes, I had to compare my code with the code from media.dreamhost.com to figure out what was the difference.

By the way, I had copied the mediaplayer.swf to my home directory, so no need to specify the entire URL.

Thanks for your help!
Find all posts by this user
03-28-2007, 08:04 PM
Post: #6
Cannot get Flash Player to work
Considering I'd created a local html file that relative path wouldn't work for me!..

I'm glad you got it working though. It's pretty slick.

Wholly - Use promo code WhollyMindless for full 97$ credit. Let me know if you want something else!
Find all posts by this user


Forum Jump: