iOS Youtube embed player issue
Dayana Jabif
Error 153: playability error code embedder identity missing referrer. Blocked a frame with origin "ionic://localhost" from accessing a frame with origin "https://www.youtube.com". Protocols must match.
Dayana Jabif
Replying to my past self here in case anyone else lands on this thread: this is now solved with the new Capacitor YouTube Player plugin from Capawesome.
Unlike iframe-based solutions that still run inside the web view (and can still hit this origin/referrer issue), it renders the official YouTube player as a native, frame-positioned view on Android and iOS and sets the origin parameter correctly on all platforms, so error 153 simply doesn't occur, no header workarounds needed. It also supports inline playback on iOS, multiple player instances at once, full playback controls with typed events, and it's built to be YouTube Terms of Service compliant out of the box.
Martin Donadieu (Capgo)
you can use https://github.com/Cap-go/capacitor-youtube-player this is not in ionic todo apparently