I need help please  

Share your tips and tricks here or get help with any Panotour problem!
No bug reports (of any kind) in this forum!
no avatar
pitigarcia
Member
 
Topic author
Posts: 18
Likes: 0 post
Liked in: 0 post
Joined: Sat Oct 27, 2012 4:13 pm
Info

I need help please

by pitigarcia » Sat Oct 27, 2012 8:10 pm

Hi to everyone, i´m triying to insert a video (inside of rectangle) but, i want the video start in pause.
I mean, i want to open the virtualtour with video in pause automatically
Can be possible?


Thanks in advance

no avatar
Gund
Member
 
Posts: 69
Likes: 0 post
Liked in: 0 post
Joined: Fri Oct 26, 2012 3:00 pm
Info

by Gund » Sat Oct 27, 2012 9:14 pm

Yes Sir, it is possible
When you build a tour - do not embedd xml files - then build a tour and find the xml file for the panorama with the video in a rectangle (suppose you have a virtual tour of a house and in one room there is a TV - you find this TV click on the screen - and you want it to start playing a video only after you clicked on it) So find an xml for the panorama with this TV (i.e. a video in a rectangle) open this xml with a notepad or Dreamweaver or Notepad++(a good program for this purpose)
Find the code for your rectangle video - it would look like that

<hotspot name="spot3" handcursor="false" url="testdata/graphics/videoplayer.swf" videourl="testdata/graphics/spots/spot1.flv" onclick="closeglobalobjects();togglepause()" distorted="true" ath="50.032" atv="-24.6507" width="244" height="185" rx="-29.8628" ry="31.1294" rz="0.811296"/>

(this paragraph is optional - you may skip it)
If you decode this it means 1) "spot3" - this is the 4th hotspot you added to panorama (in my example it was the 4th) as there is also a hotspot0. 2) handcursor="false" means that when you move your mouse over the rectange it would turn into a handcursor (in this example it won't as it is set to false) 3) url="testdata/graphics/videoplayer.swf" - this is the path to the videoplayer that would start the video 5) videourl="testdata/graphics/spots/spot1.flv" - this is the path to the video file 6) onclick option defines the actions done when you click on this object (you've got pausetoggle here) 7) distorted="true" is used only for object inside rectangles and means that when you move the panorama this object would distort approaching to the edges of you screen. Other parameters defines vertical and horizontal displacement and the coordinates of your rectangle.


So basically you need to change handcursor="false" to handcursor="true" and add one line before the onclick option and this line is pausedonstart="true"

When you have done this changes the code will look like this

<hotspot name="spot3" handcursor="true" url="testdata/graphics/videoplayer.swf" videourl="testdata/graphics/spots/spot1.flv" pausedonstart="true" onclick="closeglobalobjects();togglepause()" distorted="true" ath="50.032" atv="-24.6507" width="244" height="185" rx="-29.8628" ry="31.1294" rz="0.811296"/>

User avatar
firefire
Member
 
Posts: 72
Likes: 0 post
Liked in: 0 post
Joined: Sun Jul 24, 2011 5:00 pm
Location: UK
Info

by firefire » Sat Oct 27, 2012 9:52 pm

Well...I know I didn't put the original post up.... but that certainly helped me.....thankyou!

Neil.

no avatar
pitigarcia
Member
 
Topic author
Posts: 18
Likes: 0 post
Liked in: 0 post
Joined: Sat Oct 27, 2012 4:13 pm
Info

by pitigarcia » Sun Oct 28, 2012 5:38 am

Yeeahhh!!!! really really really... Thank you Gund!!! a thousand thanks!


Who is online

Users browsing this forum: No registered users and 2 guests

cron