views:

2680

answers:

6

Hi,

I am trying to put an FLV video on a website.

I tried using Dreamweaver CS3 (Insert - Media - Flash Video), it works great except for 2 problems:

  1. The video starts black (How do you show an image prior to playing the video?)

  2. The browser starts downloading the whole movie even before the play button is clicked (I want the video to be downloaded only after the user clicks on Play)

Anyone has a solution for this? Thank you.

+4  A: 

I don't know if Dreamweaver's FLV player supports this. However, you can use a different player such as JW FLV Media Player, which supports the features you ask for.

strager
Hi strager, thank you! It works. But I got a little arrow icon on the top left (if clicked it shows the code to share). How do you get rid of it? Thanks!
I got it, don't tick include Viral when downloading. Thank you for your other comments as well
A: 

What the browser may or may not do with regards to precaching is not defined and thus cannot really be controlled. If you really think you know better than the browser, insert the tag using JavaScript after the video is supposed to start to load.

Given the behaviour you want, that's likely best. Put an <img/> tag in the page with an ID, then when you want to play the video, have javascript replace the <img/> with the <object></object>

singpolyma
The flash video does not have the FLV embedded in it. The flash video loads the FLV itself, not the browser.
strager
On the img/object swap, <object> can be used to display an image. (Not sure about browser support, though.) A few attribute changes can solve the problem as well.
strager
While <object> can display an image, it's just as easy to swap the tags out, and this improves browser support.I wasn't aware that Dreamwever used an SWF to embed an FLV. That seems like silly overkill.
singpolyma
@singpolyma, I would assume it would. I don't think FLV files are natively playable by most computer setups without the aid of Flash.
strager
A: 

maybe a simple javascript function would work best here, something like:

<div id="videodiv" style="width:300px; height:300px;"
      onclick="this.innerHTML='whatever HTML dreamweaver gives you'">
  <img src="yourimage">
</div>
cobbal
Weird escaping would need to occur because 'whatever HTML dreamweaver gives him' probably includes ", ', <, and >.
strager
A: 
A: 

In the properties area, simply click 'autoplay' and turn it off.

Robin
A: 

Video to Flash converter mac has the ability to add image/text and insert hyperlink to the beginning and end of the flash video.

panamadany