# 如何让我的卡片中的视频只在正面播放，而反面不播放

**URL:** <https://forums.ankiweb.net/t/topic/35048>\
**Category:** Help\
**Created:** [September 26, 2023, 11:36pm UTC](https://forums.ankiweb.net/t/topic/35048 "2023-09-26T23:36:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wangcb80](https://avatars.discourse-cdn.com/v4/letter/w/839c29/32.png) [@wangcb80](https://forums.ankiweb.net/u/wangcb80)\
**Post date:** [September 26, 2023, 11:36pm UTC](https://forums.ankiweb.net/t/topic/35048/1 "2023-09-26T23:36:08Z")

</div>

如何让我的卡片中的视频只在正面卡上播放，而反面卡上不播放。这样我就不会在正面卡听过了，还要在反面卡中再听一遍；我可以快速的进入到下一张卡片的学习中。

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [September 27, 2023, 8:10am UTC](https://forums.ankiweb.net/t/topic/35048/2 "2023-09-27T08:10:47Z")

</div>

You’ll need to adjust your back template to avoid using {{FrontSide}}, and instead only include the fields you wish to be displayed.

---

<div class="post-metadata">

**Author:** ![cyl](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@cyl](https://forums.ankiweb.net/u/cyl)\
**Post date:** [September 27, 2023, 8:36am UTC](https://forums.ankiweb.net/t/topic/35048/3 "2023-09-27T08:36:52Z")

</div>

If your video is inserted via video tag, you can add the following code to your back template, it loops through all video tags, and removes the autoplay property, which disables autoplay of all videos on the back

```js
// Get all video elements
const videos = document.getElementsByTagName('video');

// Loop through the videos
for (let i = 0; i < videos.length; i++) {

  // Remove the autoplay property
  delete videos[i].autoplay;

}

```

---

<div class="post-metadata">

**Author:** ![wangcb80](https://avatars.discourse-cdn.com/v4/letter/w/839c29/32.png) [@wangcb80](https://forums.ankiweb.net/u/wangcb80)\
**Post date:** [September 28, 2023, 1:17am UTC](https://forums.ankiweb.net/t/topic/35048/4 "2023-09-28T01:17:49Z")

</div>

> [@dae](#):
>
> FrontSide

我的意思是在反面卡中允许音频字段的存在，但并不播放它；如果想播放的时候，只需要点击即可。

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [September 28, 2023, 4:50am UTC](https://forums.ankiweb.net/t/topic/35048/5 "2023-09-28T04:50:35Z")

</div>

Sorry, it’s not possible to enable autoplay on only some audio on a card.

---

<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:** [October 28, 2023, 4:51am UTC](https://forums.ankiweb.net/t/topic/35048/6 "2023-10-28T04:51:13Z")

</div>

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