You are not logged in.

nelk

Intermediate

  • "nelk" started this thread

Posts: 358

Location: Paris

  • Send private message

1

Monday, July 6th 2009, 11:11pm

video preview ?

Hello,

Is this possible to have a specific jpg instead of the flv when the video is not loaded automatically ?

Like every video of Youtube for example : you have an image (usually not the first image of the video, it's often black) and when you click on it, the video is loaded.

Klaus ... ? *squint*

Thanks !
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

2

Tuesday, July 7th 2009, 7:17am

I haven't tried out the video plugin yet... but since it's a first round release, I doubt that there's something built into the player to do this... maybe something for a later release? It would be a good addition.

until then, the first thing that comes to mind is to stack an image plugin over the video (use zorder) and setup an onclick action for the image to remove it (set it's url to null so that it's removed) and start playing the video.

There might be a way to set the "preview" image when you create the video, depending upon the apps you use... but I can't say for sure.

nelk

Intermediate

  • "nelk" started this thread

Posts: 358

Location: Paris

  • Send private message

3

Tuesday, July 7th 2009, 11:11am

Thanks for your answer Graydon. I'm not sure you can put a preview image in a flv file. I think it's more the player that do that. (it's just a supposition)

Klaus, do you use the FLVPlayback class to make the video plugin ?

I've just check in the AS3 documentation, and there is a variable to apply a preview : preview
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

4

Tuesday, July 7th 2009, 12:44pm

Hi,

it should be also possible to set the "url" first to a normal image,
and then change it on click to the videoplayer plugin to play the video,

e.g.

Source code

1
2
3
4
5
<hotspot ... 
     	url="preview.jpg"
     	videourl="video.flv"
     	onclick="set(url,videoplayer.swf);"
     	/>


Quoted

Klaus, do you use the FLVPlayback class to make the video plugin ?
no, I don't use any Flash components (fl.*),
I'm using directly Video and NetStream

best regards,
Klaus

nelk

Intermediate

  • "nelk" started this thread

Posts: 358

Location: Paris

  • Send private message

5

Tuesday, July 7th 2009, 1:25pm

Is there a particular reason why you don't use the fl package ?

Licence ? or performance ?
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

6

Wednesday, July 8th 2009, 3:57pm

Hi,

I work only with the free FlexSDK, there it's not included
and the more important thing - when looking at the code of it - it seems very bloat and not very good designed (much to much and unnecessary code)

best regards,
Klaus