Using a Set Value Action with the Video Popup Components

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
I have been asked this a few times now so I thought I would make a forum post explaining how you would do it.
I have attached a project that has three YouTube and three Vimeo buttons that has the set value action and the code to open the video.
However the vale is not the full URL, we only need to set video identifier.

So for Vimeo you would click the share button, you would then copy the URL into your browser.
Example: https://vimeo.com/ggnome/p2vr-patches
Paste this into a browser Address bar and you will see: https://vimeo.com/160880626
You only need the video identifier: 160880626

So the action would be:
mouse click, set value, value: 160880626, target: popup_video_vimeo
The project also has other action to show the screen tint as wells show the popup_video_vimeo element.

For YouTune, its almost the same with only requiring the videos identifier rather then the complete URL.
So go to YouTube select the required video and then right button click to open the context menu.
Select Copy URL.

Example: https://youtu.be/uZ8HQU22rFM
You only need uZ8HQU22rFM

So the action would be:
mouse click, set value, value: uZ8HQU22rFM, target: popup_video_youtube

In the attached project I have left the point hotspots in from the components but you can remove the hotspot templates from the skin and remove the point hotspot in the Hotspot Viewer Mode.

Regards,
Hopki
Attachments
video.zip
(224.46 KiB) Downloaded 156 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply