Hello
I have an issue with my code.
I have created an app using Ionic V4 and Capacitor to run on IOS. In the app I have a page which contains an iframe. Within this iFrame I have a youtube player, controlled by the javascript api.
According to the google documentation I should do the following to play the video inline:
playsinline:1 This value causes inline playback for UIWebViews created with the allowsInlineMediaPlayback property set to TRUE.
However because its a WKWebView I'm not sure this works. allowsInlineMediaPlayback is set to TRUE.
No matter what I do it always plays fullscreen. I have other videos in the iFrame and they also play fullscreen, so it's something about the WKWebView or iFrame which is not working.
Could someone point me in the right direction to getting the video to play inline please?
It works in a web browser, but not as a native app.
Thank you
Best regards
Paul
I have an issue with my code.
I have created an app using Ionic V4 and Capacitor to run on IOS. In the app I have a page which contains an iframe. Within this iFrame I have a youtube player, controlled by the javascript api.
According to the google documentation I should do the following to play the video inline:
playsinline:1 This value causes inline playback for UIWebViews created with the allowsInlineMediaPlayback property set to TRUE.
However because its a WKWebView I'm not sure this works. allowsInlineMediaPlayback is set to TRUE.
No matter what I do it always plays fullscreen. I have other videos in the iFrame and they also play fullscreen, so it's something about the WKWebView or iFrame which is not working.
Could someone point me in the right direction to getting the video to play inline please?
It works in a web browser, but not as a native app.
Thank you
Best regards
Paul