You are not logged in.

Search results

Search results 1-6 of 6.

Thursday, April 26th 2018, 1:32pm

Author: oscar.vanderleij

Soundinterface icon in wrong state on iOS

Solved it by using a plugin for iOS devices and a plugin for non-iOS devices. Source code 1 2 3 4 5 6 7 8 9 10 11 <!-- a button to pause/play the sound (iOS devices) --> <plugin devices="ios" name="snd" url="soundonoff.png" align="leftbottom" x="10" y="10" alpha="0.5" scale="0.5" onover="tween(alpha,1);" onout="tween(alpha,0.5);" crop="0|50|50|50" onclick="pausesoundtoggle(bgsnd); switch(crop, 0|50|50|50, 0|0|50|50);" /> <!-- a button to pause/play the sound (non iOS devices) --> <plugin devices...

Wednesday, April 25th 2018, 8:39am

Author: oscar.vanderleij

Soundinterface icon in wrong state on iOS

The background sound example also shows the same behavior on iOS: https://krpano.com/examples/119/krpano.h…groundsound.xml The sound icon is 'on' when the sound is initially not playing and the sound icon is 'off' when the sound starts playing on the first user interaction.

Thursday, March 29th 2018, 9:05am

Author: oscar.vanderleij

Soundinterface icon in wrong state on iOS

I'm using the soundinterface to play a sound. Source code 1 2 3 4 5 6 7 8 9 <events name="currentpano" onnewpano="playsound(bgsnd, 'assets/sound.mp3|assets/sound.ogg', 0);" onremovepano="stopsound(bgsnd);" /> <plugin name="snd" url="soundonoff.png" align="leftbottom" x="10" y="10" alpha="0.5" scale="0.5" onover="tween(alpha,1);" onout="tween(alpha,0.5);" crop="0|0|50|50" onclick="pausesoundtoggle(bgsnd); switch(crop, 0|0|50|50, 0|50|50|50);" /> From the HTML5 and iOS (iPhone / iPad) Notes I read...

Friday, March 23rd 2018, 2:59pm

Author: oscar.vanderleij

Sound does not stop with onremovepano stopsound

Issues seems to fix again when self explaining them Just needed to add an id to the embedpano and use the same for removepano. Source code 1 embedpano({swf: 'vendors/krpano/video.swf', xml: 'vendors/krpano/video.xml', target: 'pano', mobilescale: 1.0, passQueryParameters: true, id: 'my_video'}) Source code 1 removepano('my_video')

Friday, March 23rd 2018, 2:13pm

Author: oscar.vanderleij

Sound does not stop with onremovepano stopsound

I'm playing a video using the video plugin without sound to be able to directly play the video in iOS. For the sound I'm using the soundinterface plugin. The problem is the sound does not stop when I'm calling removepano('pano') and using in the XML file: Source code 1 <events name="currentpano" onnewpano="playsound(bgsnd, 'assets/sound.mp3', 0);" onremovepano="stopsound(bgsnd);"/> The full xml file content: 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 27 28 2...

Thursday, May 4th 2017, 2:41pm

Author: oscar.vanderleij

React with Krpano, What is the best interact way?

I have it working in React by having the krpano container outside the React app container. Source code 1 <div id="app"></div><div id="pano"></div> When calling the embedpano method it loads the 360 video / photo. I only have an issue with my single page application. When I route to the next page having the 360 video it gives a "FATAL ERROR: LICENSE ERROR - WRONG DOMAIN". When I refresh the page it does work without error. Trying a quick and dirty workaround by reloading the page once, but a more...