[FIXED] Mobile and Scene

  • Hi!

    I'm going crazy with scene loading issues. (1.19-pr4 up to 6)

    This project : http://anoril.no-ip.com/360/DemoHeadset/ does not work the same way on Mobile and laptop browsers.
    Even in Chrome, it does not play the same way as in Chrome emulating a device!

    1_ On mobile, my first scene is played and quickly replaced with the second scene, which is not called with "loadscene" from anywhere!
    Using a laptop browser (Forefox/Chrome) all works fine: the first scene is loaded, played successfully and that's it. On mobile devices (or emulated) the second scene is loaded and start to play, overriding first scene content... :(

    2_ I can't play a video twice.
    The menu show four buttons which load a specific scene (360 video). When the video ends, we reload the menu scene. If we click again on an already-play-video-button, nothing happens: the video, which has been restarted (seek(0), pause()) does not read anymore...

    Files are there:
    http://anoril.no-ip.com/360/DemoHeadset/root.xml
    http://anoril.no-ip.com/360/DemoHeadset/content/credits.xml
    http://anoril.no-ip.com/360/DemoHeadset/content/menu.xml
    http://anoril.no-ip.com/360/DemoHeadset/content/videos/xml

    Best regards

    Paul

    [EDIT]
    OK, the point was I copied Klaus' code but missed to unterstand it plainfully: the mobile device trick was to start the videos on user interaction THEN to pause them. Because I have four videos, I wrote a loop to achieve this. But the "delayedcall" was using an inconsistent for-i value then was pausing only the last video of the list... Because video ending triggers menu laoding, well... I was redirected to menu...

    And this happened only on devices because video autostart behaviours is "devices=mobile"... :)

    « Quidquid latine dictum sit, altum sonatur »
    Pentax stuff.

    Edited 2 times, last by Anoril: I found the explanation... (September 5, 2016 at 1:40 PM).

  • I first supposed the issue can come from the fact I have several XML files and, maybe, loading them (using "include") would have strange behaviours.

    I then placed all the content in a single XML file, but the issue remains.

    Regards,

    « Quidquid latine dictum sit, altum sonatur »
    Pentax stuff.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!