Need help with Hotspottemplate for YT-Video

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
soulbrother
Posts: 545
Joined: Tue Apr 08, 2008 7:01 pm
Location: München
Contact:

Hi,
I need to solve this task:
When I use the hs-templates of V6 skin, all works well - of course.

But I need to use the container "video_popup_youtube" ( that contains the 2 elements: "popup_video_youtube" and "loading_video_youtube" )
and need to NOT use the hs-template: ht_video_youtube
because I need to place the "trigger-button" in the skin (in another container, that contains and shows other elements)

In other words: I canot use the hs-template, that is placed in the panorama (with xy-coordinates), I need to use a "trigger-button" at a fixed place ("anchored top right").
So, when I use the button only (from the hs-template) "ht_video_video_youtube" and copy the 2 actions from the hs-template, I can place this button in the skin.
And of course it opens the container "video_popup_youtube" and tries to open the video from youtube.
But with that "construction" there is always an error message from youtube and the video cannot be seen...

So, is there a way to "trigger" and open the youtube video conatainer by not using the standard hs-template, but use a button in the skin (what can be placed and anchored)

Thanks for any hint!
User avatar
Tony
Posts: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi,

Is this what you need?

https://p2vr.s3-ap-southeast-2.amazonaw ... index.html

Basically, I've added a text box at the top of the tree and created a new variable id_youtube, and exposed it. The text box has two actions:

youtube.jpg
youtube.jpg (74.77 KiB) Viewed 2673 times

The first action is the same as the Hotspot Template and opens the video_popup_youtube elements. The second sends the contents of the variable id_youtube to the popup_video_youtube element

In the Edit Skin Configuration window, you can add the YouTube ID into the 'You Tube ID Buton Activated' text field.´

youtube2.jpg
youtube2.jpg (19.57 KiB) Viewed 2673 times

Here's a zip file with the project https://p2vr.s3-ap-southeast-2.amazonaw ... Button.zip

cheers,

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
User avatar
soulbrother
Posts: 545
Joined: Tue Apr 08, 2008 7:01 pm
Location: München
Contact:

Oh, that looks promising.

I hope I will find some time to test it tomorrow.

The need is one step deeper: This "Open the YT Video-Button" needs to be inside of another container and that container is shown and hidden with another variable.
Thanks a lot for the moment, I will reply as soon as possible, have (too) many tasks at the moment...

Best regards from Germany to the other side of our planet ;-)

Thanks Tony!
User avatar
soulbrother
Posts: 545
Joined: Tue Apr 08, 2008 7:01 pm
Location: München
Contact:

Me again,
did a fast test, because I realized that I did a stupid fault:
With my tests, I always entered the complete link to the YT Video (URL), instead of the short code only... :oops:

So it works now, problem solved!
Many words for a simple stupid fault ;-)

Thousand thanks Tony!!
Post Reply