Video hotspot in different language versions

Q&A about the latest versions
Post Reply
JSchrader
Posts: 141
Joined: Sat Nov 28, 2015 2:26 pm

I need to place a video to fit onto a screen in a tour.
The video comes in two different languages, depending on the choice of the viewer.
The video hotspot doesn't seem to offer two different versions of a video or an option to check a "lang" tag.
So what will be my approach to achieve that?
User avatar
Tony
Posts: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi,
The video hotspot doesn't seem to offer two different versions of a video or an option to check a "lang" tag.
Thats right, as far as I can see you have to create those options outside of the Video properties. I've done a mockup using an English and French version of a YouTube video that I'm hoping is close to what you are trying to achieve. If it is take a look at the attached skin for more information on how I set it up.

https://rebrand.ly/p2vr-language-test

language-video.ggsk
(5.25 KiB) Downloaded 144 times


Basically what I've done, and here again someone may have a more streamline and elegant solution, is create two variables, English and French.

I'm using a hotspot and the skin component Video Popup Simplex (YouTube) but duplicated the 'Draw Video' elements with one pointing to the English YouTube file and one to the French YouTube file. Both elements have logic blocks that use the variables to show or hide them.

When the project loads both elements are hidden, clicking on the hotspot sets the English variable to true which shows the English 'Draw Video' element as well as showing a button with the word 'French' in it.

Clicking on the 'French' button sets the English variable to false and the French variable to true. This shows the French 'Draw Video' element, hides the English 'Draw Video' element and the button name changes to 'English'

Finally the video_popup_close_youtube element and the video_screentint_youtube element sets both the English and French variables back to false hiding whatever 'Draw Video' element is open at the time and hiding the button.

Seems to work okay.

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/
JSchrader
Posts: 141
Joined: Sat Nov 28, 2015 2:26 pm

Thank you, Tony, much appreciated.
I'd have no problem to load two different videos in a box.
But what I need is a solution for pinned videos or what they are called.
I mean video that match a screen in the panoramic image.
User avatar
Tony
Posts: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi,
But what I need is a solution for pinned videos or what they are called.
Is this something more like you are after? If it is I can post the skin.

https://rebrand.ly/p2vr-pinned-video

Here's an example with two tv sets next to each other. The English will play in the left hand screen and the French in the right.

https://rebrand.ly/p2vr-pinned-realenvironment

Based on Hopki's Tour project from this post viewtopic.php?t=12273

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/
JSchrader
Posts: 141
Joined: Sat Nov 28, 2015 2:26 pm

Thanks again, Tony.
Yes, indeed that looks promising.
I'll have a look at Martin's post and see how far I can get :-)
JSchrader
Posts: 141
Joined: Sat Nov 28, 2015 2:26 pm

Tony, what did yo use to place the videos?
I've been using the pinned video hotspot but these do not have any fields to add actions, alter appearance or whatever.
If I had a way to place the videos as common hotspots that would solve my problems.
User avatar
Tony
Posts: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi J,
Tony, what did yo use to place the videos?
I just used the Video Mode option in the Viewer. Double clicked on it and loaded in the video. Then used the tools and properties to align it to the screens.
I've been using the pinned video hotspot but these do not have any fields to add actions, alter appearance or whatever.
What sort of actions and appearance changes are you trying to create?

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/
JSchrader
Posts: 141
Joined: Sat Nov 28, 2015 2:26 pm

So this also is a pinned video like in my case?
In this case I guess I need to study the project from Martin you linked to deeper. Unfortunately I yet didn’t find a connection how this can be used to control pinned video to switch language versions. Can you give me a hint where to look at?
JSchrader
Posts: 141
Joined: Sat Nov 28, 2015 2:26 pm

Also, to make it more difficult, in my case it is one monitor to play a video either in one or the other language.

From what I see you are switching between multiple panoramas, which is kind of a dirty trick but solves it :-)
User avatar
Tony
Posts: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi J,
So this also is a pinned video like in my case?
Yes, the same as yours
Can you give me a hint where to look at?
So basically I have 3 nodes using the same panorama...

pinned-video1.jpg
pinned-video1.jpg (601.93 KiB) Viewed 3847 times

The transition between the nodes is a Cross-Dissolve. The new node opens in the same orientation as the previous node and as it uses the already cached files it's very smooth.

pinned-video2.jpg
pinned-video2.jpg (545.53 KiB) Viewed 3847 times

In the skin the buttons move between the different nodes...

pinned-video3.jpg
pinned-video3.jpg (447.76 KiB) Viewed 3847 times
Also, to make it more difficult, in my case it is one monitor to play a video either in one or the other language.
Actually makes it easier because you only have to position the video once and then just use the same properties for the second one.
From what I see you are switching between multiple panoramas, which is kind of a dirty trick but solves it :-)
Hey, any trick in the book. There isn't any overhead as the three nodes use the same set of tiles, that way there isn't any additional loading and a fade transition smooths the change.

I think I'll do a step by step tutorial.

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/
Post Reply