The MP4 plays on the Anki card can play but no sound.(iOS/iphone)

a detailed description:
I have created some Anki cards that work well on my Android phone, they can play with sound.
However, when I share these cards with my friend, something strange happens. The cards can play, but there is no sound.

what I have do:
I sent the video within the Anki card, and my friend’s iPhone can play it with sound.so the video ifself is no problem.

PS:
My friend’s iPhone software version is [15.4].
My friend’s iPhone is [iPhone13].
iOS Anki version: [24.08].

Link to the problematic card deck:
https://ankiweb.net/shared/info/1186043136

If you can help me, I would greatly appreciate it.

1 Like

There’s no sound, because Anki couldn’t find the video file specified in the <video ... src="{{文件名称}}.mp4" ... </video> tag in the ‘collection.media’ folder.

The <video> tag isn’t officially supported and it may not work as expected.

To make it work, edit the Front/Back Template and replace <video ... </video> with {{Video}}. The “文件名称” field won’t be needed anymore and could be removed.

1 Like

This is really not a good way to share your decks for troubleshooting. First, we cant view the deck for the first 24 hours. Second, we now need to import everything, then delete the files, etc. afterwards.

You can just export a single note with the issue and share it using a service like Drive or Dropbox.

1 Like

The filenames in your shared deck are wrong. The problem is likely 1) filenames were too long, which caused Anki to rename them when you used ‘check media’, and 2) you are using filenames in a separate field, which prevents Anki from being able to update the field reference when the file is renamed. If I update the fields to match the filename, it works in AnkiMobile for me.

2 Likes

That’s actually a great idea, I hadn’t thought of that before. I will give it a try then.

I think you make a valid point, and I will definitely pay attention to it next time.

Thank you, Dae. I will go and check if it is indeed the filename that caused the issue.