Forums  

Go Back   Forums > Talk > General FPP Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 06-27-2007, 07:35 PM
jaaaab jaaaab is offline
Moderator
 
Join Date: Dec 2006
Posts: 294
Downloads: 0
Uploads: 0
Default flv video control

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.

++
Reply With Quote
  #2  
Old 06-28-2007, 07:00 PM
Denis Denis is offline
Site admin
 
Join Date: Nov 2006
Posts: 355
Downloads: 0
Uploads: 0
Default

Yes, you can create a hotspot with empty url and then set this url to flvPlayer:
Code:
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)...
Reply With Quote
  #3  
Old 06-28-2007, 09:13 PM
jaaaab jaaaab is offline
Moderator
 
Join Date: Dec 2006
Posts: 294
Downloads: 0
Uploads: 0
Default

so obvious...
Reply With Quote
  #4  
Old 07-10-2007, 08:41 PM
HawkEye Media HawkEye Media is offline
Junior Member
 
Join Date: Jul 2007
Location: Fort Worth, Texas USA
Posts: 5
Downloads: 0
Uploads: 0
Default

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
Reply With Quote
  #5  
Old 07-28-2007, 01:24 PM
Denis Denis is offline
Site admin
 
Join Date: Nov 2006
Posts: 355
Downloads: 0
Uploads: 0
Default

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.
Reply With Quote
  #6  
Old 10-25-2007, 08:56 PM
testure testure is offline
Member
 
Join Date: Sep 2007
Posts: 35
Downloads: 0
Uploads: 0
Default Offset wrong.

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"
/>
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 03:30 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.