# How to stick a video into the card

**URL:** <https://forums.ankiweb.net/t/how-to-stick-a-video-into-the-card/41254>\
**Category:** Add-ons\
**Created:** [February 17, 2024, 8:44pm UTC](https://forums.ankiweb.net/t/how-to-stick-a-video-into-the-card/41254 "2024-02-17T20:44:53Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [February 22, 2024, 11:12pm UTC](https://forums.ankiweb.net/t/how-to-stick-a-video-into-the-card/41254/6 "2024-02-22T23:12:30Z")

</div>

The method was tested on desktop and ankidroid.  
It is necessary to have two fields for one video.  
One is used in the template. The second is necessary so that ANKI does not delete the video.  
{{Video}} = name.webm  
{{Video Sound}} = [sound:name.webm]

In the template:  
`<video src="{{Video}}" playsinline autoplay onclick="this.currentTime=0;this.play()"></video>`

Taken:  
[Addon:Watch Foreign Language Movies with Anki](https://ankiweb.net/shared/info/939347702)

---

_[View the full topic](https://forums.ankiweb.net/t/how-to-stick-a-video-into-the-card/41254)._
