YouTube Video Embedding Issue, Few embed youtube videos working, few won't

I’m encountering an issue with embedding YouTube videos in Anki for Linux. Some videos are playing fine, while others display an error message along with a playback ID. Both videos are sourced from the same YouTube channel, and I’ve utilized YouTube’s default embed code. Here are my Anki details:

Anki Version: 24.04.1 (ccd9ca1a)
Python Version: 3.9.18
Qt Version: 6.6.2
PyQt Version: 6.6.1
Platform: Linux-6.6.9-amd64-x86_64-with-glibc2.37

Active Add-ons:

Anki Simulator (817108664)
Congrats Confetti (206062158)
Custom Background Image and Gear Icon (1210908941)
Image Occlusion Enhanced (1374772155)
Review Heatmap (1771074083)

I’ve also provided the IDs of the active AnkiWeb add-ons for reference. Any insights into resolving this embedding issue would be greatly appreciated.


Second this. I believe the problem is in the webview engine provided by pyQt6. Not Anki itself.

Some videos (especially older YouTube videos) still play without problems, which prompts me to also believe that the problem is with YouTube.

All in all, I’ve given up on solving the issue. You only have two options for the time being:

1- Attach video as a link to watch it on an external browser.
2- Use another video hosting service.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.