How to play video in fullscreen on iOS10?

  • Hi,

    since 1.19 krpano uses the "iphoneworkarounds" to allow inline-usage for videos. And since iOS 10 there is no need for that and krpano shows the video as inline-video without using this workaround. On iOS9 I could disable this workarounds but not on iOS10. So here is my question:

    How do I play normal videos in fullscreen using Apples default videoplayer on iOS10? *blink*

    Thanks in advance,
    Nupsi

  • There is proberbly a easier workaround but this is the first thing that comes to my mind..

    Use a redirect script only for iOS10 wich will load a different xml file for iOS10 (without the iOS workaround).

    I'm not even sure if there would be a "OS" check within KrPano, cause if there is, the workaround would be simple.

    EDIT:

    Yes there is a more simple way to do this i guess https://krpano.com/docu/xml/#devices then use

    ios###Use only when the iOS version is equal or higher than ###.


    You could load the action below on start or wherever you want:

    Code
    <action name="ios10">
    
    
    if(device.ios10,set(layer[inlinevideo].iphoneworkarounds,false);set(layer[inlinevideo].iphoneworkarounds,true););
    </action>

    This would be my best guess.

    If you could take a look at my problem, it would be appriciated!

    https://krpano.com/forum/wbb/inde…70683#post70683

  • Thanks for your answer, Meerdat! Unfortunately there is NO WAY to disable the "iphoneworkarounds" for iOS10, because they are already set to "false" by default as you can see here. So videos are just always inline on iOS10 *sad*

    Klaus
    Is this behavior wanted? Because iOS10 still support fullscreen videos so why should´nt krpano?!

  • Hmm... Just some thoughts... Can't test it here so...

    1. Does your tour allows fullscreen on ios10? (If not, could this be the "iframe" ios problem/workaround?)
    2. Does your video hides all controls except the play button? (Or does it show volume/yt logo/time etc?)

    3. Some players (video and i think youtube) will remove controls if played in a small width/height. (If this is the case, try to set your video to a larger size).

    4. If 4 is the solution, You might could place a invisible layer over the video with a fullscreen command (javascript? or embed settings?)... <- really wild guess...

    Hope this gives you some ideas for a workaround *smile*

  • I appreciate your attempt to help, Meerdat. I really do! But it seems you do not fully understand the behavior of the "iphoneworkarounds" for iOS10. I´m not even sure I do or if I just missed a fullscreen-option not mentioned in the docu. But my problem has nothing to do with youtube, iframes or controls etc.!

    Klaus
    It would be nice, if you could tell us if the "non fullscreen-support for videos" on iOS 10 is a wanted feature or a bug!? If it´s a feature, we would have to create our own videoplayer with scaling and controls etc. which seems to be a little odd, because iOS does include a nice fullscreen-videoplayer. And how I mentioned above, the krpano-docu contains no entry on how to re-enable fullscreen videos on iOS10-devices. Or maybe I´m just missing something?!

    German
    Moin Klaus! Wie oben schon geschrieben, finde ich keinen Weg oder Lösungsansatz um Videos unter iOS10 noch im Vollbildmodus abzuspielen. Alle Videos laufen automatisch als inline-videos ab und in der Doku fand ich auch keinen Hinweis darauf. Nur dass die "iphoneworkarounds" unter iOS10 automatisch inaktiv sind, da iOS10 ja inline unterstützt. Klingt so, als würden FS-Videos unter iOS10 schlicht nicht mehr unterstützt oder gewollt sein?! Antwort wäre nett *squint*

    Gruß,
    Nupsi

  • Hi,

    German
    Moin Klaus! Wie oben schon geschrieben, finde ich keinen Weg oder Lösungsansatz um Videos unter iOS10 noch im Vollbildmodus abzuspielen. Alle Videos laufen automatisch als inline-videos ab und in der Doku fand ich auch keinen Hinweis darauf. Nur dass die "iphoneworkarounds" unter iOS10 automatisch inaktiv sind, da iOS10 ja inline unterstützt. Klingt so, als würden FS-Videos unter iOS10 schlicht nicht mehr unterstützt oder gewollt sein?! Antwort wäre nett *squint*

    Das Videoplayer Plugin wurde eigentlich so entwickelt das krpano die Kontrolle über das Video und dessen Darstellung und Steuerung hat, d.h. die HTML5 "playsinline" Einstellung wird aktuell immer gesetzt und diese Abspielart ist auch beabsichtigt. Eine Option für künftige Versionen dies zu deaktivieren wäre natürlich denkbar.

    Die 'iphoneworkarounds' Einstellung hat damit grundsätzlich eigentlich nichts zu tun. Das 'playsinline' ist und war quasi immer aktiviert, nur bevor iOS 10 wurde es vom Safari defaultmäßig aif dem iPhone (aber iPad schon) nicht unterstützt. Von daher waren bzw. sind für die älteren iOS Versionen Workarounds notwendig um ein Inline-Video erst überhaupt zu ermöglichen.

    Für den Moment bzw. auf die Schnelle könnte aber auch die 'Open-Source' Version des Videoplayer Plugins verwendet werden - dieses enthält keine Inline-Video Einstellung und auch keine speziellen Workarounds für bestimme Systeme - d.h. damit sollte das Video auf iOS im iOS internen Videoplayer spielen:
    https://krpano.com/plugins/videoplayer/#opensource

    Schöne Grüße,
    Klaus

Participate now!

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