FORUMS: list search recent posts

FLV will not load in SWF when embedded on an HTML page

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
konakazi
FLV will not load in SWF when embedded on an HTML page
on May 16, 2006 at 3:42:55 am

Hey all!

Long time podcast listener, first time poster. :)

I'm trying to convert my site from Quicktime videos over to FLVs.

I have the FLVs encoded.

I'm designing my site in Flash and want the FLVs to play inside my SWF files.

Seems like a simple notion.

I built the SWF, gave a path to the FLV and tested it on my server. Looks great.

When I put the SWF in to an HTML page, I can not get the FLV to play anymore.

I've updated the FLV component parameters and tried just about every path variation possible.

Relative paths result in the SWF loading, but no FLV.

An ABSOLUTE path seems to even stop the SWF from loading for some reason.

Here's how it's set up:

myurl.com/myplayerpage.html
myurl.com/multimedia/swfContainingFlv.swf
myurl.com/multimedia/myVideo.flv

I'm really going bananas setting this up and google has not been of much help.

Can anyone with some experience help me out?

Thanks.


Return to posts index

Matt Klundt
Re: FLV will not load in SWF when embedded on an HTML page
on May 16, 2006 at 3:01:07 pm

When putting swf's into html pages, your path should be relative to the html page, so in your case:

multimedia/myVideo.flv

Does the html page work on your local computer?
I've run into this problem a couple times with windows servers, which may or may not be the case with you. An easy way to tell is to type the path to the flv into your browsers address bar. If nothing happens (it should ask you if you want to save the file), then follow this link.

Matt
--------------------
http://www.mcquillendesign.com
http://www.mattfoxgames.com


Return to posts index

konakazi
Re: FLV will not load in SWF when embedded on an HTML page
on May 17, 2006 at 8:19:19 pm

That's what I would think to, in regards to the path, but it doesn't work.

I don't know what the problem is.

Here's the page I'm trying to load it in to: http://defkoncity.com/videoBlockhead.html

Here is the path of the FLV: http://defkoncity.com/multimedia/flashBlockhead2.flv

I enter multimedia/flashBlockhead2.flv in the SWF's video parameter, and it loads nothing.

Is there some kind of bug I'm missing?



Return to posts index


konakazi
Re: FLV will not load in SWF when embedded on an HTML page
on May 18, 2006 at 2:18:09 am

Any thoughts?

I'm very eager to get this new site up.

I'll post the FLA on my site, so hopefully someone can take a look and help me debug it.

http://defkoncity.com/_working/playerBlockhead2.fla

Thanks again.


Return to posts index

Mike_S
Re: FLV will not load in SWF when embedded on an HTML page
on May 18, 2006 at 8:34:28 am

It works fine here.

When you publish as you have using a Macromedia player, a player 8.swf is also output which holds the skin.

In your case, this is called SteelExrternalNoVol.swf. You have to upload this to your server, into the same directory as the PlayerBlockhead2.swf.

This should fix your problem ..


Return to posts index

Mike_S
Or, with fewer typos, I hope ...
on May 18, 2006 at 8:36:15 am

It works fine here.

When you publish (as you have) using a Macromedia player, a player *.swf is also output which holds the skin.

In your case, this is called SteelExternalNoVol.swf. You have to upload this to your server, into the same directory as the PlayerBlockhead2.swf.

This should fix your problem ...


Return to posts index


konakazi
Re: Or, with fewer typos, I hope ...
on May 18, 2006 at 1:01:13 pm

Hey thanks for taking a look.

Yeah I'm aware of the player skin, and that's uploaded too.

Part of my confusion has been what the FLV path is relative to: the HTML page or the SWF itself.

It seems like it's relative to the SWF itself. I can now get the page working locally when I preview it in Safari from Dreamweaver.

However, once it's staged, the video still doesn't load.

I've changed the video parameter so that it just has the FLV path with no directory, since I realized that the path is relative to the SWF, it's already looking in the multimedia directory.

I'm not sure why it stops worked when it's FTP'd to my server though.


Return to posts index

Mike_S
Re: Or, with fewer typos, I hope ...
on May 18, 2006 at 1:15:36 pm

OK, just looked at where files are on your server.

It seems that you have loaded the player skin into the multimedia directory: I'd try moving it up a level to the root / public_html / web directory alongside the html page and your project swf ....

Report back?


Return to posts index

Mike_S
Re: Or, with fewer typos, I hope ...
on May 18, 2006 at 1:36:53 pm

That's one very big flv file ...

It seems to all play from http://defkoncity.com/multimedia/playerBlockhead2.swf at present ..?

If I were guessing, I'd think that the relative paths info is getting lost when you rejig the html to putthe playerBlockhead2.swf file down a directory in Dreamweaver. That .swf then doesn't manage to call the skin successfully, from its new location in the (active) root directory.


Return to posts index


konakazi
Re: Or, with fewer typos, I hope ...
on May 18, 2006 at 2:48:44 pm

YES!!!!

Oh man!

Thank you so much for helping me out with this, lol.

Moving the shell to the root level, next to the actual HTML page, did the trick.

http://defkoncity.com/videoBlockhead.html

A little back story:

When I first put up this site, I encoded all the videos (usually about 28 minutes) in H264, and was really pleased at the relatively small file sizes (28-30MB at 240 x 180).

The problem was that the Quicktime embeds were all going to hell on PC's. Additionally a lot of people couldn't install the Quicktime 7 plug in on their PCs because they didnt' have admin rights or what have you.

I figured that converting the episodes to FLVs would take out the X factor of the Quicktime embeds across platforms and that most people already have the Flash plug in.

The only downside to the FLV format is the comparably huge file sizes on my server. The upshot is that they download very quickly despite their actual size.

Thanks again for all the suggestions. Very eager to get the full site up!



Return to posts index

Mike_S
Re: Or, with fewer typos, I hope ...
on May 18, 2006 at 4:03:37 pm

Glad it's working out!

I've had problems with QT7 on some Windows systems here, so appreciate the move to Flash video.

I'm surprised that flvs are coming out bigger than H.264 files though - On2 make great play of their claim that, per file size, their VP6 codec in Flash produces best available results. { http://www.on2.com/cms-data/pdf/1123531744838491.pdf }

I guess you haven't found that: if you cut the VP6 data rate to comparable to your H.264 files, are you getting visibly different / worse results?

But as you say, given that they stream so smoothly and start so fast, it's not too big a problem - though it must be eating server space and bandwidth for you.

All best,



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]