Hey,
I am embedding youtube videos in the mobile apps, I want youtube videos to play only on mobile and not mirror or airplay outside.
Apple has a document that says to set x-webkit-airplay = "deny" but how to do it for iFrame on mobile?.
I have tried to execute the JS:
document.getElementById("player")?.querySelector('.html5-video-player')?.querySelector('.html5-video-container').querySelector('video').setAttribute('x-webkit-airplay','deny')
But it updates in Safari but not in mobile WKWebview.
Hey, I am embedding youtube videos in the mobile apps, I want youtube videos to play only on mobile and not mirror or airplay outside.
Apple has a document that says to set x-webkit-airplay = "deny" but how to do it for iFrame on mobile?.
I have tried to execute the JS:
document.getElementById("player")?.querySelector('.html5-video-player')?.querySelector('.html5-video-container').querySelector('video').setAttribute('x-webkit-airplay','deny')
But it updates in Safari but not in mobile WKWebview.Thanks in advance.