Hi,
it is actually quite simple to do.
Just use a 'scene' for every video.
The video formats you need depend on the resolution(s) you want to offer.
Let's say we do only 2k.
Then i would put for every video the following files:
- mp4
- webm
- poster.jpg
audio
mp3
ogg
To switch scene's i have an little script that works like this
code for your scenes
|
Source code
|
1
2
3
4
5
6
|
<scene name="scene_1" title="ski" onstart="" >
<view hlookat="0" vlookat="0" fov="90" fovmin="60" fovmax="110" limitview="on" />
<image>
<sphere url="plugin:video" />
</image>
</scene>
|
code to switch video in the new scene (desktop version)
|
Source code
|
1
2
3
4
|
<action name="ChangeVideoScene" devices="desktop">
set(plugin[video].posterurl, calc:'video/%1-2k-poster.jpg');
plugin[video].playvideo(video/%1-2k.mp4|video/%1-2k.webm|video/%1.mp3);
</action>
|
You can see my video's are in the video folder.
and
|
Source code
|
1
|
<events name="vidchange" keep="true" onnewscene="ChangeVideoScene(get(scene[get(xml.scene)].title));" />
|
so my video's are named like:
ski-2k.mp4 etc..
(because the %1 will be filled-inn with the scene title this way.
Now you only need a button or a hotspot, or so, to load the next scene.
Hope this helps,
Tuur