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

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

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

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

// 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;

}
1 Like

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

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

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