Page 1 of 1

O2VR button to launch local video

Posted: Fri Mar 31, 2017 11:18 am
by Jean-Claude
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

Re: O2VR button to launch local video

Posted: Fri Mar 31, 2017 3:48 pm
by Hopki
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

Re: O2VR button to launch local video

Posted: Fri Mar 31, 2017 5:41 pm
by Jean-Claude
OK thanks a lot, we're gonna try an tell you back ...

Re: O2VR button to launch local video

Posted: Fri Mar 31, 2017 7:13 pm
by Jean-Claude
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