# Don't play video in external video player

**URL:** <https://forums.ankiweb.net/t/dont-play-video-in-external-video-player/46657>\
**Category:** Help\
**Created:** [July 1, 2024, 5:43pm UTC](https://forums.ankiweb.net/t/dont-play-video-in-external-video-player/46657 "2024-07-01T17:43:37Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![medley](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@medley](https://forums.ankiweb.net/u/medley)\
**Post date:** [July 1, 2024, 5:43pm UTC](https://forums.ankiweb.net/t/dont-play-video-in-external-video-player/46657/1 "2024-07-01T17:43:37Z")

</div>

I was trying to figure out a way to have inline videos (not YouTube), but after searching around it seems like it isn’t really possible on Windows (If anyone has done it, please let me know!)

This is the closest thing I could think of to inline videos: Is there a way for the external video player to not automatically close after the video is done?

---

<div class="post-metadata">

**Author:** ![Keks](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/keks/32/20537_2.png) [@Keks](https://forums.ankiweb.net/u/Keks)\
**Post date:** [July 1, 2024, 6:36pm UTC](https://forums.ankiweb.net/t/dont-play-video-in-external-video-player/46657/2 "2024-07-01T18:36:50Z")

</div>

[HTML Video](https://www.w3schools.com/html/html5_video.asp)

---

<div class="post-metadata">

**Author:** ![medley](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@medley](https://forums.ankiweb.net/u/medley)\
**Post date:** [July 1, 2024, 6:38pm UTC](https://forums.ankiweb.net/t/dont-play-video-in-external-video-player/46657/3 "2024-07-01T18:38:04Z")

</div>

I don’t think that works. I looked at other posts on Anki forum and that seems to only work on Ubuntu and not Windows or Mac.

---

<div class="post-metadata">

**Author:** ![Keks](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/keks/32/20537_2.png) [@Keks](https://forums.ankiweb.net/u/Keks)\
**Post date:** [July 1, 2024, 6:39pm UTC](https://forums.ankiweb.net/t/dont-play-video-in-external-video-player/46657/4 "2024-07-01T18:39:12Z")

</div>

Have you tried it?

As far as I know windows has problems with mp4. webm works.

---

<div class="post-metadata">

**Author:** ![medley](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@medley](https://forums.ankiweb.net/u/medley)\
**Post date:** [July 1, 2024, 6:45pm UTC](https://forums.ankiweb.net/t/dont-play-video-in-external-video-player/46657/5 "2024-07-01T18:45:52Z")

</div>

Yea I tried it.

Here are some of the posts that I looked at:

- [How to create card with video without opening that video separately?](https://forums.ankiweb.net/t/how-to-create-card-with-video-without-opening-that-video-separately/11350)
- [Reddit - Dive into anything](https://www.reddit.com/r/Anki/comments/6l4j9j/comment/dk433nf/)
- [Inline media [Support thread]](https://forums.ankiweb.net/t/inline-media-support-thread/20692)

---

<div class="post-metadata">

**Author:** ![Keks](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/keks/32/20537_2.png) [@Keks](https://forums.ankiweb.net/u/Keks)\
**Post date:** [July 1, 2024, 6:48pm UTC](https://forums.ankiweb.net/t/dont-play-video-in-external-video-player/46657/6 "2024-07-01T18:48:53Z")

</div>

Have you tried webm?

I did not encounter any problem.  
[![Imgur](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/d/6/d6314a9a88fed97c6615001df8ad01ef876e265e.png "imgur.com") ](https://imgur.com/w13NJWI)

---

<div class="post-metadata">

**Author:** ![medley](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@medley](https://forums.ankiweb.net/u/medley)\
**Post date:** [July 1, 2024, 7:08pm UTC](https://forums.ankiweb.net/t/dont-play-video-in-external-video-player/46657/7 "2024-07-01T19:08:58Z")

</div>

I haven’t tried it. I heard it was incompatible with mobile. So, that’s why I didn’t use it. How did you do it anyway? Maybe there is a way for Anki to hide certain fields depending on what platform you are on (iOS, Android, PC OS). And, I can have the video show up in webm form on certain platforms and mpv on others.

---

<div class="post-metadata">

**Author:** ![Keks](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/keks/32/20537_2.png) [@Keks](https://forums.ankiweb.net/u/Keks)\
**Post date:** [July 1, 2024, 7:14pm UTC](https://forums.ankiweb.net/t/dont-play-video-in-external-video-player/46657/8 "2024-07-01T19:14:47Z")

</div>

```auto
<video width="320" height="240" controls>
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>

```

> **[W3Schools.com](https://www.w3schools.com/html/html5_video.asp)**
>
> W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

The only thing that didn’t work was that it would work with the full path to the file. Then it would be possible to embed the video without syncing with ankiweb.

Just don’t use videos from [sound:…] as a source.  
[https://docs.ankiweb.net/templates/fields.html#field-references](https://docs.ankiweb.net/templates/fields.html#field-references)  
It is convenient to have a separate field for the name of the video file.

---

<div class="post-metadata">

**Author:** ![NameLessGO](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/namelessgo/32/34298_2.png) [@NameLessGO](https://forums.ankiweb.net/u/NameLessGO)\
**Post date:** [July 1, 2024, 7:39pm UTC](https://forums.ankiweb.net/t/dont-play-video-in-external-video-player/46657/9 "2024-07-01T19:39:34Z")

</div>

> [@medley](#):
>
> haven’t tried it. I heard it was incompatible with mobile

Old news, they have a coverage of 97%

- [WebM video format | Can I use... Support tables for HTML5, CSS3, etc](https://caniuse.com/webm)
- [WebM - Wikipedia](https://en.wikipedia.org/wiki/WebM)

Off-topic: WebP, a great format for images, has 96% coverage

- [WebP image format | Can I use... Support tables for HTML5, CSS3, etc](https://caniuse.com/webp)
- [WebP - Wikipedia](https://en.wikipedia.org/wiki/WebP)

---

<div class="post-metadata">

**Author:** ![Keks](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/keks/32/20537_2.png) [@Keks](https://forums.ankiweb.net/u/Keks)\
**Post date:** [July 1, 2024, 7:43pm UTC](https://forums.ankiweb.net/t/dont-play-video-in-external-video-player/46657/10 "2024-07-01T19:43:43Z")

</div>

> [@medley](#):
>
> I heard it was incompatible with mobile.

It works on android. I’ve heard that it doesn’t work on iOS.

---

<div class="post-metadata">

**Author:** ![medley](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@medley](https://forums.ankiweb.net/u/medley)\
**Post date:** [July 1, 2024, 8:24pm UTC](https://forums.ankiweb.net/t/dont-play-video-in-external-video-player/46657/11 "2024-07-01T20:24:50Z")

</div>

What OS are you using? And could you send me the exact code you wrote? I tried this and it didn’t work.

```auto
<video width="320" height="240" controls>
  <source src="2024-05-07_15-00-10.mp4" type="video/mp4">
</video>

```

Do I need to manually convert it to webM?

Wait, yea I do need to convert it lol. I’ll change it to something like this in a bit.

```auto
<video width="320" height="240" controls>
  <source src="2024-05-07_15-00-10.webm" type="video/webm">
</video>

```

---

<div class="post-metadata">

**Author:** ![Keks](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/keks/32/20537_2.png) [@Keks](https://forums.ankiweb.net/u/Keks)\
**Post date:** [July 1, 2024, 8:34pm UTC](https://forums.ankiweb.net/t/dont-play-video-in-external-video-player/46657/12 "2024-07-01T20:34:13Z")

</div>

Platform: Windows-10-10.0.19045

Try to convert or offer me a file sharing service where I can send you a video for testing. Your code works for me.

---

<div class="post-metadata">

**Author:** ![medley](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@medley](https://forums.ankiweb.net/u/medley)\
**Post date:** [July 2, 2024, 1:44am UTC](https://forums.ankiweb.net/t/dont-play-video-in-external-video-player/46657/13 "2024-07-02T01:44:08Z")

</div>

Thanks for the help! The code worked!

---

<div class="post-metadata">

**Author:** ![medley](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@medley](https://forums.ankiweb.net/u/medley)\
**Post date:** [July 2, 2024, 1:44am UTC](https://forums.ankiweb.net/t/dont-play-video-in-external-video-player/46657/14 "2024-07-02T01:44:47Z")

</div>

Perfect. I can confirm that it worked on my Apple devices and Window devices.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [August 1, 2024, 1:44am UTC](https://forums.ankiweb.net/t/dont-play-video-in-external-video-player/46657/15 "2024-08-01T01:44:59Z")

</div>

Closed on August 1, 2024, 1:44am UTC

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