Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

YouTube Error 153: Video Player Configuration Error when embedding YouTube videos

ios

web

When embedding YouTube videos using the IFrame API or direct embed URLs, the player occasionally displays the message “Error 153: Video Player Configuration Error” instead of loading the video. This issue occurs inconsistently, particularly in Angular Capacitor iOS apps, where it previously worked fine without any problems.

Additional steps were taken to resolve the issue — including pre-validation using the oEmbed API, adding referrerPolicy="strict-origin-when-cross-origin", and even trying the privacy-enhanced embed URL (https://www.youtube-nocookie.com/embed/ScMzIvxBSi4) — but the error still persists.

Attached 2 images first plays on ipad and other on web.

like image 503
user2783430 Avatar asked Nov 27 '25 14:11

user2783430


1 Answers

You need to either add this header:
'Referrer-Policy': 'strict-origin-when-cross-origin'

Or you can add the following to your embed element:
referrerpolicy='strict-origin-when-cross-origin'

Either should work for you to get them back up and running.

See YouTube documentation here:
https://developers.google.com/youtube/terms/required-minimum-functionality#embedded-player-api-client-identity

like image 178
brendo234 Avatar answered Nov 30 '25 04:11

brendo234



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!