Browser widget exit fullscreen detection fails IOS

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
istech
Posts: 211
Joined: Thu Sep 19, 2013 10:08 am

Browser widget exit fullscreen detection fails IOS

Post by istech » Thu Jul 25, 2024 11:27 am

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);

istech
Posts: 211
Joined: Thu Sep 19, 2013 10:08 am

Re: Browser widget exit fullscreen detection fails IOS

Post by istech » Fri Jul 26, 2024 8:20 pm

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.

Post Reply