Sie sind nicht angemeldet.

1

Donnerstag, 19. September 2013, 22:02

Video in hotspot

I am trying to place a video inside a TV that's inside the tour. The TV is not squared in the center of the tour so I cannot accurately place the video in the TV screen using ath="" and atv="" so I am trying to make a hotspot like this

<hotspot name="tv1" >
<point ath="114.0" atv="-15.6" />
<point ath="113.8" atv="-4.1" />
<point ath="130.3" atv="-5.8" />
<point ath="130.1" atv="-21.5" />
</hotspot>

then use it as parent to contain the video hotspot or layer but the video will not show when placed in the parent hotspot above.

Here is my video hotspot/layer code
Layer method

<layer
name="videospot" parent="hotspot[tv1]"
url="%SWFPATH%/plugins/videoplayer.swf"
alturl="%SWFPATH%/plugins/videoplayer.js"
videourl="videos/welcome2.mp4"
distorted="true"
loop="true"
pausedonstart="true"
range="100"
volume="0.7"
onclick="togglepause(); switch(soundinterface.mute); switch(autorotate.enabled);"
width="100"
height="56"
/>

Hotspot method

<hotspot
name="videospot" parent="hotspot[tv1]"
url="%SWFPATH%/plugins/videoplayer.swf"
alturl="%SWFPATH%/plugins/videoplayer.js"
videourl="videos/welcome2.mp4"
distorted="true"
loop="true"
pausedonstart="true"
range="100"
volume="0.7"
onclick="togglepause(); switch(soundinterface.mute); switch(autorotate.enabled);"
width="100"
height="56"
/>

What am I missing causing the video to not show in the parent?
Am I approaching this the wrong way?

Any help would be appreciated.

Thank you

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

2

Freitag, 20. September 2013, 08:22

I once did a test with video inside a TV. I made the videospot distorted, then added Editor plugin and altered RZ RY and RX values in the Editor to perfectly align the video so that it matches the perspective of the TV screen. I think, you should go the same way.

You should play with this values:

Quellcode

1
2
3
         rx="0.0" 
         ry="0.0" 
         rz="0.0" 
Regards,

Alexey

3

Freitag, 20. September 2013, 15:31

Thanks Alexey

I tried that but could not get the right values to distort it to the TV Angle.

Making it fit in a hotspot as a child would be a great way to show it (I think)

Thanks for your input, I will give you idea another shot.

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

4

Freitag, 20. September 2013, 15:42

Are you 'guessing' the values from head or you opened the editor plugin to adjust RX RY values:

it's simple add editor to the tour, click "Editor" then "Hotspots" and then press the SPACE BAR and hold it and move mouse and you see how hotspot will rotate in RX and RY. To rotate Z axis, hold R and move the mouse.

Btw, can you post a link to the example?
Regards,

Alexey

5

Samstag, 21. September 2013, 00:12

THANKS

Still challenging to fir it on the TV

Allowing the video to fit as a child into a polygon hotspot would be the best way to fit it.
I guess this could be considered a "Feature Request"


I sent you and email/PM

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

6

Samstag, 21. September 2013, 01:13

Hi! Just solved the issue and sent a PM to you. No need for any feature requests. I propose another feature request for all of you who are beginners: PLEASE, be more attentive to what is written here. Because if our advice goes unnoticed then there will be no learning and progress at all... *cry*
Regards,

Alexey

7

Samstag, 21. September 2013, 02:53

I really appreciate what you said but also please understand that I did try for a long time before I posted this simply to avoid this comment.
I did pay attention and told you that I did try rx, ry, rz values and could not get it right but you are simply better than I am on this and one day I will get it too but it's not because I did not pay attention, I am simply not at your level as yet.

Thanks again and I will let you know how it work out.

Edited
I tried the code and there was still a gap on the top, I did get it close to this before but with your help and little more push I think I have it at a very acceptable spot after playing with the numbers little bit more.


THANK YOU!
THANK YOU!
THANK YOU!

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »thevtman« (21. September 2013, 03:48)


Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

8

Samstag, 21. September 2013, 03:50

I've run into the same issue but for HTML5 video. HTML5 video will not accept all aspects, if you don't use an aspect it likes it will scale down giving you extra black space.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

9

Samstag, 21. September 2013, 18:29

Thanks for your input sachagriffin, I think I got it working a bit better with what Alexey gave me. Changing and testing a few numbers, see what happens when I change the values gave me an idea on what to do next time.

It's a bit tricky though.

Thanks guys

10

Dienstag, 24. September 2013, 16:49

I just want to say thanks again to Alexey Tkachenko

The tip you gave me to use the editor is helping me so much. The guessing game would have had me insane by now.

Thanks a lot to all who helped.

11

Dienstag, 24. September 2013, 23:08

Hi thevtman,

can you post your link to see the result?

12

Mittwoch, 25. September 2013, 06:54

This is not a complete project, actually it's not the final tour. I went to see the client and I had my camera so I just shoot these images.

http://virtualtourswindsor.com/example/
This link will be removed soon

Still not perfect but the two on the patio took me about two minute to align. A few more practice and I will be a pro getting it done in seconds.

I have one issue with the editor.

In the editor, I can hold down the mouse and press, space, r, d, shift and ctrl. I noticed that if I press shift or ctrl which sizes the hotspot up and down, I cannot get the space and r to work.
Basically after I use the shift and ctrl and try to hold down the mouse and press r or space it will not perform the actions it was meant to perform, it actually sizes the hotspot although I am holding space or r..

Is this a bug in the editor?

Ähnliche Themen