player icon indicating copy to clipboard operation
player copied to clipboard

Unable to embed youtube video that is embeddable on IOS Capacitor, other videos work, works in browsers

Open vesper8 opened this issue 7 months ago • 1 comments

Current Behavior:

I am trying to embed this particular youtube video in an IOS Capacitor app

src: youtube/FpOEN93LX-E

This works fine on local dev, it also works fine on production domain in browsers. When deployed to IOS Capacitor it fails to load without any errors.

According to: https://www.youtube.com/oembed?url=http://www.youtube.com/watch?v=FpOEN93LX-E

Video should be embeddable.

Another random video src: youtube/sQdSLyyMUtE

Works fine on IOS Capacitor and elsewhere.

This one also reports that it's embeddable: https://www.youtube.com/oembed?url=http://www.youtube.com/watch?v=sQdSLyyMUtE

Expected Behavior:

Embeddable videos should play fine, why certain videos do and others don't?

Environment:

Using latest 1.12.13

Anything Else?

I read somewhere that certain videos are embeddable but require a Referer header and that IOS doesn't support setting the Referer header? Could this be related?

Is there a way to check for sure whether a video is "full" embeddable?

vesper8 avatar May 25 '25 20:05 vesper8

Related to https://stackoverflow.com/questions/13407482/youtube-embed-gives-restricted-from-playback-on-certain-sites-error-despite-ap/35568163#35568163 maybe?

vesper8 avatar May 25 '25 20:05 vesper8