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?
Video hotspot in different language versions
Hi,
https://rebrand.ly/p2vr-language-test
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
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.The video hotspot doesn't seem to offer two different versions of a video or an option to check a "lang" tag.
https://rebrand.ly/p2vr-language-test
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/
Hi,
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
Is this something more like you are after? If it is I can post the skin.But what I need is a solution for pinned videos or what they are called.
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/
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.
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.
Hi J,
Tony
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.Tony, what did yo use to place the videos?
What sort of actions and appearance changes are you trying to create?I've been using the pinned video hotspot but these do not have any fields to add actions, alter appearance or whatever.
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/
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?
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?
Hi J,
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.
In the skin the buttons move between the different nodes...
I think I'll do a step by step tutorial.
Tony
Yes, the same as yoursSo this also is a pinned video like in my case?
So basically I have 3 nodes using the same panorama...Can you give me a hint where to look at?
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.
In the skin the buttons move between the different nodes...
Actually makes it easier because you only have to position the video once and then just use the same properties for the second one.Also, to make it more difficult, in my case it is one monitor to play a video either in one or the other language.
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.From what I see you are switching between multiple panoramas, which is kind of a dirty trick but solves it
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/