Hey,
currently I'm trying to make a tour with photos and videos. Both are stored in different scenes. For the videos i use the video plugin.
Photo scene:
Video Scene:
<scene [...]>
<plugin name="video" onloaded="addvideosources();">
<image>
<sphere url="plugin:video" />
</image>
<view [...]>
<action name="addvideosources">
[...]
</action>
</scene>
So for switching the skins (for multiresolution videos, better timeline control, etc.) I used the "demotour-corfu-skinselect" example as the base. It consists of a loader xml which handles the skin selection and a rout.xml.
My loader xml is "parent.xml"
<krpano>
<action name="testing" autorun="onstart">
if(
get(design)===null,
trace("initial run and parameter set");
change_skin_design('normal',mid);,
);
</action>
<!-- no loading text, keep thumbs opened state -->
<skin_settings loadingtext="" thumbs_opened="calc:skin_thumbs_last_state === 'opened' ? true : false" />
<action name="change_skin_design">
set(startscene,%2);
if(%1!=null,set(design,%1),);
trace(get(design));
loadpanoscene("/showroom/parent.xml", %2, null, IGNOREKEEP, NOBLEND);
</action>
<!-- include optionally different skin -->
<include url="/showroom/krpano/skin/videointerface.xml" if="design == 'video'" />
<include url="/showroom/krpano/skin/vtourskin.xml" if="design == 'normal'" />
<!-- include the corfu tour -->
<include url="/showroom/showroom.xml" />
</krpano>
Alles anzeigen
When first called, it sets the variable "design" (the skin reference) to its default value "normal". This ist done BEFORE the skins are included with an if statement (see https://krpano.com/forum/wbb/inde…&threadID=13439).
The "tour.xml" calls when clicking on an hotspot the "change_skin_design('video',%EXAMPLESCENENAME%);" action. But the result is the videointerface control buttons being loaded on top of the old controls.
Image of the result: https://imgur.com/a/g50oEl1
Does anybody have an idea how to load the videointerface skin correctly or how to remove the old skin an control buttons when loading a new scene?
Thanks a lot
chaotic bruno