Embedding Vimeo videos into Anki desktop Mac

Hello, I am having trouble embedding a Vimeo video into my Anki cards. I get an error every time I try to play it. I can view the video on ankiweb and on my iPhone but not my Mac computer. I tried a friend’s computer and there was the same issue. The error I get is depicted in the image. I also included the embed code that Vimeo gives me. I tried other video sites to see if there was a similar issue. Youtube plays just fine but rumble won’t play.

2 Likes

Vimeo asked the password here

MacOS 14.2.1
Anki 23.12.1 Qt6

Check if your anki is up-to-date and disable add-ons, see Troubleshooting - Anki Manual

<div style="padding:62.5% 0 0 0;position: relative;"><iframe
src="https://player.vimeo.com/video/869255608?
badge=0&amp; autopause=0&amp;player_id=0&amp; app_id=58479"
frameborder="0" allow="autoplay; fullscreen; picture-in-picture"
style="position: absolute; top:0; left:0;width:100%; height: 100%;"
title="Traditional Ventilator Settings"></iframe></div><script
src="https://player.vimeo.com/api/player.js"></script>

1 Like

Yeah, try the number 8 as the password and see if it works.

I password protected the video so people couldn’t view it. I disabled the adding and it still didn’t work. I also tried older versions and that didn’t work. Im curious if it would work on a windows computer though. That fact that it plays just fine on my iPhone makes me think that it should work on a Mac as well.

I am also curious if it would work on the new apple chip. I use the intel chip and the corresponding Anki.

In here it don’t work as well,

apple or intel chip wouldn’t matter in this task

Anki is deleting src="https://player.vimeo.com/api/player.js" when trying to play the video

In Ankiweb and Ankidroid works fine

<div style="padding:62.5% 0 0 0;position: relative;"><iframe 
src="https://player.vimeo.com/video/869255608?
badge=0&amp; autopause=0&amp;player_id=0&amp; app_id=58479" 
frameborder="0" allow="autoplay; fullscreen; picture-in-picture"
style="position: absolute; top:0; left:0;width:100%; height: 100%;"
title="Traditional Ventilator Settings"></iframe></div>

would it be possible to make the embed link something that Anki wouldn’t have a problem with? Change the src=“https://player.vimeo.com/api/player.js” to something else?

Seems like this link is not necessary for the player to work, in Ankidroid this is removed as well

Ankidroid 2.1.8 alpha2

I noticed the sound will often play but it will just be a white screen. I don’t know if that suggests something.

Which device?

Mobile/Web or desktop?

desktop. Mobile and web plays just fine.

This will be seen by devs and marked as issue later

Thanks for reporting

Absolutely, thanks for taking a look.

1 Like

@dae could we add as an issue?

Please avoid creating multiple topics about the same issue. Anki has no official support for remote video links, and they may or may not work, depending on how the hosting site is configured. I recommend you avoid them if possible, as they mean your cards can’t be reviewed when you’re offline, and the videos may stop working at any time when the hosting website or Anki gets an update in the future.

1 Like

I apologize for posting in a couple of these discussions. I wasn’t entirely certain which one to go with.

So this wouldn’t be something you could fix in future anki updates? The embedded Vimeo links work just fine on the anki mobile app. They just don’t work on the desktop version.

Furthermore I think there is a lot of benefit to embedding videos into anki. It helps me out a lot to include supporting content. I was very happy when anki came out with that feature and very disappointed to find it didn’t work.

1 Like

As this is not something Anki actively tries to support, I’m afraid I don’t know why Vimeo is failing, or whether a fix would be possible or not.

I don’t believe we’ve ever advertised support for video tags. The code posted above is creating an iframe, which indirectly includes Javascript.

https://docs.ankiweb.net/templates/styling.html#javascript

1 Like

Well it is unfortunate that anki isn’t actively trying to support embedding videos. I’m not sure why they have attempted to implement the feature currently though. Regardless, it would be a great feature to add though.

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