Sie sind nicht angemeldet.

1

Montag, 2. Mai 2022, 13:57

When iframe VR icon not visible

Hello,


When i do iframe , VR icon not visible. Please help.



<div id="content">
<iframe name="demo1" src="https://xxx" frameBorder="0" width="100%" height="400px" scrolling="no" allow="vr,gyroscope,accelerometer" allowFullScreen="true" loading="eager"></iframe>
</div>






Please help its urgent

2

Montag, 2. Mai 2022, 16:18

Waiting for reply please help its urgent. Why no one replying?

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »sakshi« (3. Mai 2022, 14:06)


3

Mittwoch, 4. Mai 2022, 15:31

We have strong hope with this Forum. We adopt Krpano in strong believe of getting support.

Project is in middle and not getting reply on forum. I dont understand.


PLease help this quite important.


Regards

4

Mittwoch, 4. Mai 2022, 21:56

Hi,

which device and browser?

If its iOS and your iframe is 'external' (on an other domain), manual forwarding the gyro events from the outer frame to the inner frame will be necessary.

See here in the gyro documentation (at the bottom):
https://krpano.com/plugins/gyro2/#iframe

and also here for more information:
Iframe embed, gyro/webvr not working on ios

Best regards,
Klaus

5

Donnerstag, 5. Mai 2022, 12:40

Hi,

which device and browser?

If its iOS and your iframe is 'external' (on an other domain), manual forwarding the gyro events from the outer frame to the inner frame will be necessary.

See here in the gyro documentation (at the bottom):
https://krpano.com/plugins/gyro2/#iframe

and also here for more information:
Iframe embed, gyro/webvr not working on ios

Best regards,
Klaus
Hello, Thanks fo reply.

But it not working on Chrome latest version on desktop.


<body>
<div id="content">
<iframe name="demo1" src="https:xxx" frameBorder="0" width="100%" height="100%" scrolling="no" allowvr="yes" allowvr="true" allow="vr; accelerometer; gyroscope; autoplay;" allowfullscreen="yes" mozallowfullscreen="true" webkitallowfullscreen="true" loading="eager"></iframe>
</div>

<script>
var pano_iframe_name = "demo1";
window.addEventListener("devicemotion", function(e){ var iframe = document.getElementById(pano_iframe_name); if (iframe) iframe.contentWindow.postMessage({ type:"devicemotion", deviceMotionEvent:{ acceleration:{ x:e.acceleration.x, y:e.acceleration.y, z:e.acceleration.z }, accelerationIncludingGravity:{ x:e.accelerationIncludingGravity.x, y:e.accelerationIncludingGravity.y, z:e.accelerationIncludingGravity.z }, rotationRate:{ alpha:e.rotationRate.alpha, beta:e.rotationRate.beta, gamma:e.rotationRate.gamma }, interval:e.interval, timeStamp:e.timeStamp } }, "*"); });
</script>







</body>






Please also suggest auto fullscreen in landscape mode

6

Samstag, 7. Mai 2022, 10:54

Hi,

Zitat

But it not working on Chrome latest version on desktop.
The gyro usage on desktop systems is disabled by default - please see here:
https://krpano.com/plugins/gyro2/#desktopsupport

Best regards,
Klaus

7

Donnerstag, 30. Juni 2022, 16:31

Hi,

Zitat

But it not working on Chrome latest version on desktop.
The gyro usage on desktop systems is disabled by default - please see here:
https://krpano.com/plugins/gyro2/#desktopsupport

Best regards,
Klaus
how to enable it???????????????????????????

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

8

Donnerstag, 30. Juni 2022, 18:11

Hello

Quellcode

1
set(plugin[gyro].desktopsupport, true);


*thumbup*


Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*