Adding multiple videos to tours

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
Mark360
Posts: 39
Joined: Thu May 17, 2018 11:15 pm
Location: England and USA

Adding multiple videos to tours

Post by Mark360 » Mon Aug 06, 2018 4:25 pm

Tony did a great tutorial on how to add multiple images or text using tags etc. here
viewtopic.php?f=6&t=12892&p=53867#p53867

What I wanted to know is there any way to add multiple videos doing something similar. Up to present I have had no luck.
If it looks impossible you just have not found the right angle to view it from.

User avatar
Hopki
Gnome
Posts: 8761
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: Adding multiple videos to tours

Post by Hopki » Tue Aug 07, 2018 4:52 pm

Hi Mark,
Are you using V6? If so this this is quite easy.
You can use a similar method to Tonys project but with the video element.
Set the variable as before so the next and previous buttons can count up and down.
In this example 0 to 3.
You can add your videos under the assets as found under the Advance tab of the HTML5 output.

Open the skin editor add a video element, under its visible logic block set variable = 1 to 3 visible true.
Then give it the actions:

Variable Changed, Set Value, assets/video0.mp4, self => Action Filter: variable = 0 for the first video
Variable Changed, Set Value, assets/video1.mp4, self => Action Filter: variable = 1 for the first video
Variable Changed, Set Value, assets/video2.mp4, self => Action Filter: variable = 2 for the first video
Variable Changed, Set Value, assets/video3.mp4, self => Action Filter: variable = 3 for the first video


This is bad example to have a video play on open as most browsers won't allow this but you should get the idea.

So what should happen.
On open the variable is at 0. But no video, this is because there is no variable changed so you will have to add the video path in the video element.
You only need to do this if you want a video to play in the first node.

Then click the next button, you change the variable from 0 to 1.
The video element sees the variable change and only the action with the filter with 1 will execute, so the video will show and video1.mp4 will play.

The attached project has the same video twice, make a copy of short_tb1.mp4 and rename it to short_tb2.mp4.
Regards,
Hopki
Attachments
Mark360.zip
(3.16 MiB) Downloaded 12 times

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests