View Full Version : flv video control
jaaaab
06-27-2007, 06:35 PM
Hi
Is there a way to control the start of an flv video?
I mean i would like to play it after the user clicks a "play" hotspot over it, i don't like it to start automaticaly with the panorama.
++
Denis
06-28-2007, 06:00 PM
Yes, you can create a hotspot with empty url and then set this url to flvPlayer:
onClick="video.url=files/flvplayer.swf?file=myfile.flv"
Another way is to change flvplayer.fla a little. Remove autoplay option and set the click event for any hotspot (by default the click sets to the same hotspot)...
jaaaab
06-28-2007, 08:13 PM
so obvious... ;)
HawkEye Media
07-10-2007, 07:41 PM
I'm trying to add a hotspot which will pause/play the flvPlayer. I've tried creating an object to reference the hotspot and then adding an eventlistener to it, but I get an error the object is null.
In the flvplayer.fla, you create a reference "hotspot = loaderInfo.loader.hotspot"
To reference my hotspot with an id "PlayPause", don't I have to create an object and then a reference like "PlayPause = loaderInfo.loader.PlayPause"?
Regards,
Mark LaBoyteaux
Denis
07-28-2007, 12:24 PM
You need to pass link to flvPlayer soever. You can browse thru all DisplayObjects collection, but the most simple way is to set some global link from flvPlayer: "loaderInfo.loader.root.myPlayerRef = this", then use in any other hotspot: "loaderInfo.loader.root.myPlayerRef" object to get access to flvPlayer movie.
testure
10-25-2007, 07:56 PM
When I this the video is narrow and the offset is wrong..
http://testure.eu/examples/flashplayer/forum.htm
If I use this code:
<box id="vid"
url="images/click_to_play.png"
pan="115.00"
tilt="-17.66"
distance="1.03"
rotationX="23.00"
rotationY="-1.00"
rotationZ="-1.00"
depth="-12"
scale="0.58"
alpha="0.84"
refreshRate="20"
enableSoundPanning="1"
soundRadius="150"
onClick="vid.url=files/flvplayer.swf?file=../images/ftb_sneak_320.flv"
/>
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.