YouTube embeds fail with “Error 153 – Video player configuration error”
bug
**Describe the bug**
Embedded YouTube videos fail to load in Photon and display “Error 153 – Video player configuration error” instead of the video.
This happens consistently across desktop and mobile, and across different browsers, suggesting a frontend embed configuration issue rather than a browser-specific problem.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to this post (example): https://photon.lemmy.world/post/lemmy.world/42101659
2. Attempt to play the embedded YouTube video
4. The player fails to initialize and shows Error 153
**Expected behavior**
The embedded YouTube video should load and play normally inside Photon, as it does when opened directly on YouTube.
**Actual behavior**
The embedded player fails to initialize and displays:
`Error 153 – Video player configuration error`
Clicking “View on YouTube” opens the video correctly, confirming the video itself is not restricted or unavailable.
**Screenshots**
firefox desktop Linux
<img width="1803" height="1025" alt="Image" src="https://github.com/user-attachments/assets/1c2ea81b-1754-4dd4-8844-1acd42d191bd" />
Firefox Android
<img width="864" height="1920" alt="Image" src="https://github.com/user-attachments/assets/57158126-0378-49d6-a5b1-ab9033c4902d" />
Chrome Android
<img width="864" height="1920" alt="Image" src="https://github.com/user-attachments/assets/faa9573a-d4f6-4809-8c5c-8bef5d5cd522" />
**Versions**
- Browser: Firefox 147 Linux and Android, Chrome Android
- Photon version: 2.0.0
### **Note: From this point on, the content below was written with the help of ChatGPT to provide ideas for debugging.**
Additional context
- This appears to be related to recent changes in YouTube embed requirements (iframe initialization / player configuration).
- Similar issues have affected other platforms (e.g. Feedly) and were resolved by updating their embed configuration.
- The error occurs even with extensions disabled and privacy settings relaxed.
- Likely related to how the YouTube iframe is initialized rather than content restrictions.
### Console notes (may be relevant)
Firefox shows third-party storage warnings for the YouTube embed:
- “The cookie ‘requests’ will soon be rejected because it is foreign and does not have the ‘Partitioned’ attribute.”
- “Partitioned cookie or storage access was provided to https://www.youtube-nocookie.com/embed/... because it is loaded in a third-party context and dynamic state partitioning is enabled.”
### References (possible embed requirements)
- Official YouTube IFrame Player API documentation: https://developers.google.com/youtube/iframe_api_reference :contentReference[oaicite:5]{index=5}
- Official YouTube embed parameters guide: https://developers.google.com/youtube/player_parameters :contentReference[oaicite:6]{index=6}
- YouTube Error 153 discussed on StackOverflow: https://stackoverflow.com/questions/79802987/youtube-error-153-video-player-configuration-error-when-embedding-youtube-video :contentReference[oaicite:7]{index=7}
- Community write-up on Error 153 and referrer policy requirements: https://benword.com/youtube-embeds-error-153-video-player-configuration-error :contentReference[oaicite:8]{index=8}
2 条评论