Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
![]() |
Source code |
1 |
<style name="audio" url="%HTMLPATH%/skin/speaker.png" scale="0.5" /> |
![]() |
Source code |
1 2 3 |
<plugin name="audio" style="audio" align="topleft" keep="false" zorder="8" alpha="1.0" scale="" enabled="true" x="0" y="0" onhover="showtext(Audio, buttons)" onclick="onclickA();" onclickA="if( activesound !== name,set(plugin[get(activesound)].onclick,onclickA());); play_sound_1(sound1, sounds/dakota.mp3,get(name)); set(plugin[get(name)].onclick,onclickB());" onclickB="pause_sound_1(sound1);set(plugin[get(name)].onclick,onclickA());"/> |
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
<events onnewscene=" callwith(hotspot[get(activesound)], onclickB()); set(activesound, none); stopallsounds();" /> <plugin name="soundinterface" url="plugins/soundinterface.swf" alturl="plugins/soundinterface.js" keep="true" preload="true" rootpath="" volume="1" onloaded=""/> <action name="play_sound_1"> stopallsounds(); set(is_playing, true); set(volume_level, 1); set(activesound,%3); playsound(%1,%2, 1, <!-- oncomplete actions --> set(plugin[sound].onclick, play_sound_1()); set(activesound,none); ); </action> <action name="pause_sound_1"> pausesound(%1)); set_(plugin[sound].onclick, resume_sound_1()); </action> <action name="resume_sound_1"> resumesound(%1); </action> |
This post has been edited 1 times, last edit by "andrew22222" (Aug 5th 2015, 3:48am)
Right, the new style xml behavior unfortunately conflicts with the maps plugin where 'style' was also used as attribute. I will think about compatibility solutions, but it might be necessary to rename the 'style' attribute in the maps plugins spots to 'spotstyle'...don't know if it's documented (as i didn't found mention of it) but with the new Style,
You have to set your maps spot style outside of the maps <> otherwise create errors...not finding style
The reason should be the new style behavior here too, but the problem happens only because an invalid value for 'scale' will be used.All seems to work fine except the audio plugin that I use is a now a no show.
This post has been edited 1 times, last edit by "torentvr" (Aug 5th 2015, 12:13pm)
This post has been edited 2 times, last edit by "benji33" (Aug 5th 2015, 4:08pm)
Thanks for the video - that seems to be an incompatibility between the Goodreader and the wakelock hack.
Quoted
i made video with this issue:
https://www.youtube.com/watch?v=J-godUf528s&feature=youtu.be
What do you mean with 'after a reset'?
Quoted
After a reset of the webvr settings I can have the new ca and dist2 with ca value empty and dist2 (first part to 1.000 and other parts empty).
Which textfields in which case?
Quoted
Also the textfields can have a bad alignement.
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<action name="vr_setup"> copy(i_dist, webvr.mobilevr_lens_dist); roundval(i_dist, 2); vr_setup_value_test(get(i_dist)); </action> <action name="vr_setup_value_test"> set(my_value_test, %1); <!-- same with set(mytest, '%1'); --> if (my_value_test == '', showlog(); trace('If distortion is equal to 0.00 my equal to empty string test is true'); ); </action> |
This post has been edited 1 times, last edit by "benji33" (Aug 6th 2015, 7:51am)
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
function selecthtml5usage() { var ua = navigator.userAgent; if (ua.search(/Chrome/) > 0) return "prefer"; if (ua.search(/Firefox/) > 0) return "prefer"; // for all other cases use html5=auto: return "auto"; } |
Calling functions like Math.sin() in an expressions is not possible yet.Could the calc also be used for more complex calculations? Like xoffset + Math.sin(angle * Math.PI / 180) * radius
That means you using local 'file://' urls - and Chrome doesn't allow loading local xml files in HTML5 by default. There would be always an xml network loading error in this case. Therefore the embedding script falls back to Flash when using html5=prefer and Chrome with local file:// urls (btw - this is not new to 1.19).With 1.19.pr3, however, it uses Flashplayer in Chrome despite the html5:"prefer". Maybe I'm missing something...