Cannot get Flash Player to work

Cannot get Flash Player to work

Posted by: bobolito
Posted on: 2007-03-28 19:12:00

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?

Re: Cannot get Flash Player to work

Posted by: wholly
Posted on: 2007-03-28 19:45:00

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!Edited by wholly on 03/28/07 07:46 PM (server time).

Re: Cannot get Flash Player to work

Posted by: bobolito
Posted on: 2007-03-28 19:48:00

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>

Re: Cannot get Flash Player to work

Posted by: wholly
Posted on: 2007-03-28 19:53:00

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!

Re: Cannot get Flash Player to work

Posted by: bobolito
Posted on: 2007-03-28 19:56:00

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!

Re: Cannot get Flash Player to work

Posted by: wholly
Posted on: 2007-03-28 20:04:00

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!

Tags: html pageuploadedvideo fileflvhome directoryswfflash player