Problem with a video hotspot in VR on mobile!

  • Hello everyone

    I'm using krpano for about a month now and I've created a more complex tour for an upcoming project. Now it seems that I've reached my limits, so I need your help.
    To get an impression of what I'm talking about, here are my tour and my xml-code .

    I have created a video hotspot of a coworker which you can start and pause by clicking the info-button next to him. It works great on my PC (in Chrome), even in WebVR, but as soon as I switch to my mobile devices (Android), the video just doesn't start playing.

    I hope you guys can help me, I hope it's just a rookie mistake.

    Best wishes
    Fabian

    PS: I know the code isn't really clean, but I'm fairly new to coding. Any mistakes or improvements are highly recommended *wink*

  • Hi~

    Any code hints on what needs to be changed for this fix to work with hotspots?

    The video does play where and when it is supposed to so almost there~

    Thanks in advance

  • Hi~

    Any code hints on what needs to be changed for this fix to work with hotspots?

    The video does play where and when it is supposed to so almost there~

    Thanks in advance

    I'd like to know how to do this as well. Please advise. Thank you in advance everybody.

  • Hi,

    this should work.

    - place this in your webvr.xml
    change the onclick of the layer: webvr_enterbutton to:
    onclick="video_auto_start();webvr.enterVR();"

    - make sure this is somewhere:

    - This could be the onclick of your video hotspot:
    onclick="if(hotspot[video].ispaused, hotspot[video].play();, hotspot[video].pause());"

    Hope it helps!
    Tuur *thumbsup*

  • Hi folks.

    I´ve tried to implement this in my tour.
    But unfourtanetly it does not work for me.

    Does this work for all the video-hotspots in the entire tour?
    Or does the video has to be in the pano where you start the webvr ?

    I start the webvr for example in pano1 and then move through the tour to pano5 with the distorted video-hotspot.
    There I´ve made play and pause buttons to start and stop the video.

    But altough your code is in the right position (i think) the video won´t start.

    Here is the link to my tour: http://data.kuck.info/stanton/tour.html
    It´s about the fith pano in the row with an organplayer.

    Any ideas ?

    Thanks for your help...
    Best regards ...
    Christian

    Edited once, last by q-ki (March 19, 2017 at 12:53 PM).

Participate now!

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