Good News, IFRAME loads in VR Cardboard Mode, but

(Glasshandvr) #1

Good News, IFRAME loads in VR Cardboard Mode, but the camera is fixed on the stereo image, when I move the device nothing happens. I have zero problems in EMBED mode or if I select Cardboard using the menu button otherwise.

Here's the code:

<iframe src="" id="api-frame" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" width="1032px" height="548px" style="border: 0px;"></iframe>
<!-- Initialize the viewer -->
<script type="text/javascript">
var iframe = document.getElementById( 'api-frame' );
var version = '1.0.0';
var urlid = '311d052a9f034ba8bce55a1a8296b6f9';
var client = new Sketchfab( version, iframe );

client.init( urlid, {
cardboard: 1,
    success: function onSuccess( api ){
        api.addEventListener( 'viewerready', function() {

            // API is ready to use
            // Insert your code here
            console.log( 'Viewer is ready' );

        } );
    error: function onError() {
        console.log( 'Viewer error' );
} );


2 posts were merged into an existing topic: Start IFRAME in VR Mode