Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
|
|
Quellcode |
1 |
<style name="audio" url="%HTMLPATH%/skin/speaker.png" scale="0.5" /> |
|
|
Quellcode |
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());"/> |
|
|
Quellcode |
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> |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »andrew22222« (5. August 2015, 03:48)
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.
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »torentvr« (5. August 2015, 12:13)
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »benji33« (5. August 2015, 16:08)
Thanks for the video - that seems to be an incompatibility between the Goodreader and the wakelock hack.
Zitat
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'?
Zitat
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?
Zitat
Also the textfields can have a bad alignement.

|
|
Quellcode |
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>
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »benji33« (6. August 2015, 07:51)
|
|
Quellcode |
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...