# Check media reports a problem, but is it?

**URL:** <https://forums.ankiweb.net/t/check-media-reports-a-problem-but-is-it/45056>\
**Category:** Suggestions\
**Created:** [May 20, 2024, 11:49am UTC](https://forums.ankiweb.net/t/check-media-reports-a-problem-but-is-it/45056 "2024-05-20T11:49:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![suiyuan](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/suiyuan/32/20938_2.png) [@suiyuan](https://forums.ankiweb.net/u/suiyuan)\
**Post date:** [May 20, 2024, 11:49am UTC](https://forums.ankiweb.net/t/check-media-reports-a-problem-but-is-it/45056/1 "2024-05-20T11:49:02Z")

</div>

I recently modified the templates of some of my cards to create [audio loops](https://forums.ankiweb.net/t/add-a-loop-audio-button/14063/11).

Now when I do a Check media, I get this message:

> Anki can not detect used files when you use {{Field}} references in media/LaTeX tags. The media/LaTeX tags should be placed on individual notes instead.

I’ve checked and I understand the affected section is this one:

```auto
<div id="audio-container">
  <audio id="audio-player" src="{{Loop}}"></audio>
  <button id="loop-button">Loop Audio</button>
</div>

```

The script is working as expected and Anki is actually getting the audio from the {{Loop}} field (which includes the filename of the mp3).

I understand now this message means there might be more media that’s referenced somewhere within a tag in a template but Anki is unable to account for it and therefore might not appear as missing/unused in the Check Media process. There is probably nothing wrong with this, but to be honest at first it looked to me as if there is something I should fix. And it looks like I am not alone ([1](https://forums.ankiweb.net/t/check-media-problem/40603), [2](https://forums.ankiweb.net/t/when-adding-field-to-reference-files-anki-wont-be-able-to-detect-the-referenced-files/33514)).

So my suggestion is to change the wording of the message to better inform users of what’s going on. Maybe something like:

> Some of your cards have media file references inside HTML tags in templates. Please, be aware that Anki cannot detect these files and therefore the unused/missing media reported here does not account for them. The affected templates are: XXXXXXX

Or something to that effect. I’m sure someone could phrase it better, but just to give an idea.

---

<div class="post-metadata">

**Author:** ![kelciour](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/kelciour/32/14770_2.png) [@kelciour](https://forums.ankiweb.net/u/kelciour)\
**Post date:** [May 20, 2024, 9:52pm UTC](https://forums.ankiweb.net/t/check-media-reports-a-problem-but-is-it/45056/2 "2024-05-20T21:52:54Z")

</div>

For now, the check can be avoided by using the `<source>` tag.

```auto
<audio id="audio-player">
  <source src="{{Loop}}" type="audio/mpeg" />
</audio>

```

[https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio#usage\_notes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio#usage_notes)

---

<div class="post-metadata">

**Author:** ![suiyuan](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/suiyuan/32/20938_2.png) [@suiyuan](https://forums.ankiweb.net/u/suiyuan)\
**Post date:** [May 20, 2024, 10:31pm UTC](https://forums.ankiweb.net/t/check-media-reports-a-problem-but-is-it/45056/3 "2024-05-20T22:31:55Z")

</div>

Working good as a workaround, thanks!
