View Full Version : Problem with flvplayerx.swf
Hello,
I have a video into a panorama and everything is ok. The problem appears when I leave that panorama and return. The video loads again under the first video that is now paused. I use only one video in my tour.
What should I do to prevent the video from loading again when I revisit that panorama?
Here is my code:
<box id="play-film" url="img/play.png" alt="Play"
linked="mov/pano2"
pan="0.16" tilt="10.01" alpha="0.5" visible="1" depth="10" scale="0.2"
onOver="alpha=0.6,600" onOut="alpha=0.7,600"
onClick="startFilm(); play-film.visible=0; pause-film.visible=1;
pano.pan=0,1000; pano.tilt=10,1000; pano.zoom=2,1000;
external.autorotator.disabled=1;"
startFilm="film.command=play;"
/>
<box id="pause-film" url="img/pause.png" alt="Pause"
linked="mov/pano2"
pan="0.16" tilt="10.01" alpha="0.05" visible="0" depth="11"scale="0.2"
onOver="alpha=0.6,600" onOut="alpha=0.05,300"
onClick="pauseFilm(); play-film.visible=1; pause-film.visible=0;"
pauseFilm="film.command=pause;
pano.pan=0,1000; pano.tilt=2,1000; pano.zoom=0.8,1000;
"
/>
<box id="film" url="files/flvplayerx.swf" file="movie.flv"
linked="mov/pano2"
pan="0.91" tilt="10.18" orientation="front" rotationX="4.00" rotationZ="-1.00" depth="1" scale="0.35"
segmentsX="6" segmentsY="4" enableSoundPanning="1" soundRadius="240"
refreshRate="20" playerWidth="448" playerHeight="346" refreshRateStopped="0" showLoading="false"
autoLoad="true" autoPlay="false" autoRewind="true" playLoop="false" showSize="false"
onOver="" onOut=""
onFinish=""
onClick=""
/>
I hope someone can help me.
Thanks!
I have uploaded here a test page for my problem with flvplayerx.swf :
http://tinyurl.com/yzmag4y
Click play on the TV => go to pano2 (second image from bottom left) => go to pano1 => click pause/play again... is the video working ok?
I hear just the sound, the image is paused from where it remained when I was in pano1.
Can someone test this please and tell me if it's working ok for you?
Thanks!
Trausti Hraunfjord
10-12-2009, 08:57 PM
The first time around the video behaves correctly. Plays, and the sound is directional. Going to the next pano, then back, the video is stopped and only the sound plays.
I'm using PC XP FF
Hi Tuddi,
Thanks for testing my tour.
I have the same configuration (PC XP FF) and I don't know why this plugin doesn't work corectly.
Do you have any idea?
Trausti Hraunfjord
10-12-2009, 09:52 PM
I have no idea... if I did, I would certainly tell you my thoughts.
360VT.co.uk
10-12-2009, 10:32 PM
Hi Aris
have you tryed two xml files,
try it by adding
<global
onStart="external.autorotator.disabled=1;"
onOver="scale=1.1,600,elastic; alpha=1;"
onOut="scale=1,300; alpha=0.85;"
loadpano1="loadPano(panoName=mov/pano1&xml_file=test1.xml&panHome=-100&tiltHome=-5&zoomhome=0.7&panoType=mov,1500,stripes);"
loadpano2="loadPano(panoName=mov/pano2&xml_file=test2.xml&panHome=60&tiltHome=-3&zoomhome=0.7&panoType=mov,1500,stripes);"
>
then saving your xml as test1.xml AND as test2.xml
the video should reset as the xml is reloaded
unless someone has a better idea
Harry
Hi Harry,
Thanks for your suggestion.
Yes, the video resets when the xml is reloaded.
I have uploaded the new files and the video works correctly now. http://tinyurl.com/ykxr9mp
Here I have a tour with only 2 panos and nothing special, but the problem occurred when I was testing a more complex tour with 25 locations and about 4000 lines of code in the xml file.
I wonder if this solution (25 xml files) can be applied the my 25 pano tour without affecting its functionality.
Also this tour is for offline use, distributed on CD's.
Would the extra xml files increase the RAM memory needed ?
Thanks again!
360VT.co.uk
10-13-2009, 09:07 AM
more complex tour with 25 locations and about 4000 lines of code in the xml file.
I would suggest Not putting 4000 lines of code in one xml file, I try to keep mine down to three or four hundred line max. You’re just asking for problems.
Also this tour is for offline use, distributed on CD's.
Would the extra xml files increase the RAM memory needed ?
I’ll be honest with you, I’ve never done an offline pano, so I don’t really know!
But I would think that one extra large xml file that needs to be stored in your RAM, is going to use up more memory than 25 smaller ones that are only loaded as they are needed and can be purged when they are not needed!
Harry
jordi
10-13-2009, 10:57 AM
For me everything it's working fine ;)
XP, FF, and many many ram
Some times FPP makes trouble when need a lot of memory, and work only with very powerful computers...
you should try to compress the video as much as you can 500kb -- 1,5 mb...
360VT.co.uk
10-13-2009, 02:21 PM
For me everything it's working fine ;)
jordi
I think the link is just to a small test pano, and not his big offline one
Harry
allSaints
10-13-2009, 02:47 PM
Harry,
- "He knows nothing - he's from Barcelona"
Sorry Jordi, couldn't resist it...
I would suggest Not putting 4000 lines of code in one xml file, I try to keep mine down to three or four hundred line max. You’re just asking for problems.
I hope not.
About my big xml file (4000 lines of code), I use the linked="pano-name" attribute to almost all hotspots.
I have many hotspots between panos and many details to show in each pano.
In the FPP documentation it says:
linked list of panoramas where hotspot is loaded
This is the way to organize automatic loading/unloading for hotspot images depends of loaded panorama image.
When linked name is different from the current panoName,a hotspot object doesn't load image, doesn't take processor time, takes only a few kilobytes in memory, but you can address any parameter of the hotspot object.
So this means that the panorama player doesn't load all the hotspots found in the xml when it starts the tour, right?
Should I also use unlinked attribute?
Thanks for your input.
360VT.co.uk
10-13-2009, 04:30 PM
a hotspot object doesn't load image, doesn't take processor time, takes only a few kilobytes in memory
I find that hard to believe, but your computer still has to examine the whole xml file and store it to memory.
Ok, so the “unlinked” only take a few kilobytes in memory,
You have 4000 times a few kilobytes in memory, how big is that?
I don’t know, but if it works with one xml file, well just use one
Me, I think, I would have used one per pano, just to keep track and make it easier to edit.
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.