NetNewsWire icon indicating copy to clipboard operation
NetNewsWire copied to clipboard

Embedded YouTube player doesn't work (Error 153)

Open That-Human-Being opened this issue 5 months ago • 3 comments

Basically whenever a feed item has a YouTube video attached to it like how most hackaday articles link to the YouTube video that the article is about, the embedded player shows up, but is unable to play the video (I've tried adjusting various settings but none of what I tried did anything)

image

The article the screenshot was taken of

That-Human-Being avatar Dec 02 '25 03:12 That-Human-Being

What’s the URL of the feed? Which syncing system are you using? (iCloud, Feedbin, or…?)

brentsimmons avatar Dec 02 '25 04:12 brentsimmons

URL is https://hackaday.com/blog/feed/ And currently I'm just syncing to "on my iPhone"

That-Human-Being avatar Dec 02 '25 04:12 That-Human-Being

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

API Clients that use the YouTube embedded player (including the YouTube IFrame Player API) must provide identification through the HTTP Referer request header. In some environments, the browser will automatically set HTTP Referer, and API Clients need only ensure they are not setting the Referrer-Policy in a way that suppresses the Referer value. YouTube recommends using strict-origin-when-cross-origin Referrer-Policy, which is already the default in many browsers.

This should fix it: https://stackoverflow.com/a/79805072/6306190

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'

johan456789 avatar Dec 05 '25 16:12 johan456789