Page 1 of 1

Browser widget exit fullscreen detection fails IOS

Posted: Thu Jul 25, 2024 11:27 am
by istech
Hi Livecodes,

I have the browser widget set with an iframe stream where I want to detect full screen exit by the user. I have set the html with multiple listers which work on all platform apart from IOS. Can anyone provide some insight into why only IOS behaves this way and if there is any work around for this issue. See my JavaScript listers are below. Maybe I am missing something. I have tried a couple of workarounds but no luck at the moment.

Code: Select all

        // Add event listeners for fullscreen change across different browsers
        document.addEventListener('fullscreenchange', checkFullscreen);
        document.addEventListener('mozfullscreenchange', checkFullscreen);
        document.addEventListener('webkitfullscreenchange', checkFullscreen);
        document.addEventListener('MSFullscreenChange', checkFullscreen);
        document.addEventListener('webkitendfullscreen', RefreshLink);

Re: Browser widget exit fullscreen detection fails IOS

Posted: Fri Jul 26, 2024 8:20 pm
by istech
Turned out not a be a Livecode issue but needed to add enablejsapi=1 on my youtube link. Just for anyone that may come across this.