O2VR button to launch local video

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
Jean-Claude
Posts: 9
Joined: Thu Nov 08, 2012 1:46 pm
Location: France
Contact:

Hi,
On an O2VR project we have a side menu with several buttons to call detailed infos about the 360 product shown

We'd like to be able to launch a local video in a pop-up box with one of these buttons

We know it can be done using a hotspot, calling by instance a still image when clicking, but we don't want to use a hotspot and can't find the way to call a local video (no external url) from a button

Been looking on the forum at your tip "Display a popup video in the skin Post by Hopki » Mon Apr 11, 2016 6:38pm" viewtopic.php?f=13&t=10913&p=44411&hili ... ton#p44411

but it seems it works only for Pano2VR ...

Thanks for your help,
Jean-Claude
User avatar
Hopki
Gnome
Posts: 13004
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Jean-Claude,
This will also work with Object2VR.

You would use a button to show the text box and to also "Set Text" to the text box, example:

Code: Select all

<video width="100%" height="100%" controls autoplay >
<source src="video/short_tb.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
The above is looking for an MP4 called "short_tb.mp4" in a folder called video.
The close button would not only hide the text box but also set text to blank as in leave blank.
This is to unload the video to stop it playing when hidden.
Regards,
Hopki
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/
User avatar
Jean-Claude
Posts: 9
Joined: Thu Nov 08, 2012 1:46 pm
Location: France
Contact:

OK thanks a lot, we're gonna try an tell you back ...
User avatar
Jean-Claude
Posts: 9
Joined: Thu Nov 08, 2012 1:46 pm
Location: France
Contact:

Hello Hopki,

So we've been trying the last 2 hours, and we managed reading your Thunderbirds video

We also tried changing the "controls autoplay" with 'controls stop" and so we can control the playing of the film

The close button action was hard to understand, now it makes the film window disappear BUT we still hear the sound, so it seems the video is still playin in background

We can not manage stopping the video, probably quite simple but ...

Here is the ggsk as we changed and simplfied it for our use, can you tell us what is missing ?

Thanks in advance
Attachments
video_popup.ggsk
(4.33 KiB) Downloaded 186 times
Post Reply