Embedded YouTube video is only available in 360p in the desktop version of Anki

CSS style:

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-container iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 0;
}

HTML text:

<div class="video-container">
<iframe src="https://www.youtube.com/embed/sOfq4MUQhLk?si=mIC8edSSr3P97vtQ" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen=""></iframe>
</div>

In the desktop version (Version ⁨25.07.5 macOS), this video is only available in 360p. While in ankiweb or in ankimobile (iOS), it is available in 1080p. Why? I wish to have 1080p on desktop version.

1 Like

Maybe that YouTube 1080p video format doesn’t support Anki (mp4). Anki for desktop can play WebM but it doesn’t support mp4 so it can’t play it. 360p is WebM so it can play on either. Probably YouTube auto converts videos to such formats based on view counts so users and creators cannot change the format.

1 Like

Thank you. The solution is use (or upload) a video equal or higher than 2K resolution

1 Like

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