Set the soundinterface plugin with keep="true" attribute and launch the sound after a user gesture (prefered) with a playsound action with 0 value for loops (cf. https://krpano.com/plugins/soundinterface/#playsound)
Sound should be played accross scenes
Posts by benji33
-
-
How is the default view of a panorama taken in account during spot naviguation of non oriented scenes ?
For instance with this view tag the gyroscope returns the hlookat 0 & vlookat 0 position + gyroscope orientation as basis and in desktop the default view is respected with real hlookat and vlookat.
If I remember the gyro1 plugin wasn't do that into the 1.19-pr3 version and was using real hlookat and vlookat sets positions.Something has changed with gyro2 if yes how to do? Thanks
-
Hello,
I've tested Gyro2 with partial panoramas and it seems there are some strange behaviors, see below. Tested on iOS 11.4 Safari with an iPhone 6S.
For instance I've a partial panorama with this view tag and the gyroscope is enabled only after the onavailable event check action which is done after a 1 second delay, see below my settings :
Code
Display More<view fisheye="0" limitview="range" hlookatmin="-95.890000000000001" hlookatmax="95.890000000000001" vlookatmin="-13.560000000000002" vlookatmax="26.32" maxpixelzoom="1.0" fovtype="VFOV" fovmax="90" fov="39.880000" hlookat="0.000000" vlookat="6.380000"/>
Code
Display More<plugin name="gyroscope" url="gyro2.js" keep="true" devices="no-desktop.and.html5" onunavailable="actionGyroUnavailable();" sensor_mode="1" friction="auto" autocalibration="true" touch_mode="full" onavailable="delayedcall(1, actionGyroAvailable(););" enabled="false" activated="false" />
1. If I deactivate the gyroscope and activate it again, with the switch() action, on the same partial scene, the partial limits are lost and I can see the black part of the sphere.
2. If I deactivate the camroll on the "onnewpano" event when the new scene is a partial one, to avoid the display of black parts in corners, I've noticed that the gyroscope can be freezed. It happens frequently.
3. If the partial scene is the first one of the tour the partial limits are not respected and I can see the black parts of the sphere when the gyroscope is activated.
4. Navigating to a new scene resolve all issues but not the freeze of the gyroscope. In this case only a switch of the enabled property is working.Thanks for the check.
-
Nice. In fact it's not really iOS, it's more a Safari issue because it's also present into macOS Safari 11.1.1 version.
Chrome iOS seems not affected, but after all my tests I'm not sure LOL -
Thanks for this solution
-
Hello,
I've tested this code with Safari 11.1.1 on macOS.
It returns NOT VERIFIED. The check is VERIFED with single "." version as iOS ones but not with macOS ones due to the string comparison.
There is a way to do it easily without a string parse?Better solution at this time :
-
In fact it's linked to the BLEND parameter of the loadscene action.
Only the NOBLEND value is working, others values cause the black rendering.Any info on that Klaus? Thanks a lot.
-
You're right. Seems to be a Chrome issue. It's not the first time that Chrome doesn't respect the z-index for fixed and absolute positionned divs.
-
Some news on that with Safari 11 & Chrome 66 autoplay policies on desktop ?
-
Thanks so it's why my hotspot with tooltip layer is over the flying hotspot picture.
I'll have to manage a way to set tooltip as hotspot, simple, but apply offset and rotation linked to the hotspot one, with non defined picture size it will be more difficult to achieve -
Hi,
I've tried to setup a picture hotspot with a flying attibute. It works.
I've added a hotspot which is covered by the flying picture, with the add of zorder/zorder2 values (flying picture receive a zorder of 10 and hotspot a zorder value of 3). It works.But
If I add a text layer created with the addlayer method as child of the previous hotspot, the hotspot itself and the layer are always over the flying picture even with all zorder changes.
Is it a known issue with children layers ?
Thanks,
Benjamin -
-
Hi,
Of course the sample code above was designed for test only ;)
Yes it's a workaround and not a fix ... sorry for the mistake.
Thanks for the lesson about device motion/device orientation.I've tested the 2 libs for Chrome 65 on 3 devices and it works with them. But your previous workaround post with only the XML edit wasn't working.
Thanks for this quick edit to partially solve the customers problem linked to the Chrome issue.
-
Hi,
With this fix mobilevr_sensor="0" I've no result.
No move on vertical and horizontal axis with the fix and vertical only without the fix ! (tested with Huawei P8, LG G4 and Samsung S6)With krpano 1.19pr14 webvr sample it doesn't work also.
My own code
Code
Display More<plugin name="webvr" devices="html5" keep="true" url="webvr.js" mousespeed="0.00125" multireslock="true" fullscreen_mirroring="true" headtracking="true" friction="0.0" zoom="1.0" mobilevr_support="true" worldscale="1.0" oversampling="1.0" mobilevr_ipd="63.5" mobilevr_screensize="auto" mobilevr_lens_fov="96.0" mobilevr_lens_dist="0.60" mobilevr_lens_dist2="1.000|0.000|0.000|0.000" mobilevr_lens_ca="0.000" mobilevr_lens_vign="100" mobilevr_lens_overlap="1.0" mobilevr_wakelock="true" mobilevr_sensor_mode="3" mobilevr_sensor="0" mobilevr_autocalibration="false" mobilevr_touch_support="false" mobilevr_orientationlock="true" mobilevr_fake_support="true" vr_cursor="hotspot[vr_cursor]" vr_cursor_enabled="true" vr_cursor_onover="if(handcursor, tween(hotspot[vr_cursor].scale,0.4,0.1); vr_auto_click(get(vr_timeout)); );" vr_cursor_onout="tween(hotspot[vr_cursor].scale,0.3,0.1);" onavailable="webvr_onavailable();" onunavailable="webvr_onunavailable();" onunknowndevice="webvr_onunknowndevice();" onentervr="webvr_onentervr();webvr_portrait_mode_check(true);" onexitvr="webvr_onexitvr();" />
-
Here is the referenced issue : https://bugs.chromium.org/p/chromium/iss…ed&groupby&sort
-
Nice thanks Jérome !!! I'll have a look.
-
I've an issue with z-index and fullscreen.
In fact I use external div element out of the krpano div and I apply my own fullscreen treatment.
But since latests krpano version I've noticed that the z-index of the krpano element is applied to the highest zindex available (2147483647) and the others div cannot be displayed anymore with Android Chrome browser when rotating the screen (which apply the fullscreen event).Is it a krpano or Chrome issue/feature ?
-
Nice investigation :)
-
Sorry, can't reproduce anything like that. Just tested again (on Windows).
Can you please explain your 'quick' rotations?Here is a video sample with closed Chrome dev tools : https://www.dropbox.com/sh/dq9jntg58uo…tpIn4lxPma?dl=0
Thanks for the answer to jeromebg. -
When Simulated VR mode is activated on Chrome desktop (PC) when rotating with the mouse on Yaw axis the view is refreshed at a previous position during "quick" rotations. Works good on Firefox.
Many users report a difficulty to access a tour through the WebVR API with the Samsung Internet Browser for GearVR. It works great with the Oculus Browser.
Do you know the difference between the 2 differents browsers? It seems that the Oculus Browser has a better use of the available resolution. John Carmack FB Post