Skip to content

Commit 9f22793

Browse files
authored
chore(lib): add link for audio blocking
1 parent 2fe6139 commit 9f22793

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

manim_slides/convert.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ def get_sections_iter(self) -> Generator[str, None, None]:
289289
# Videos are muted because, otherwise, the first slide never plays correctly.
290290
# This is due to a restriction in playing audio without the user doing anything.
291291
# Later, this might be useful to only mute the first video, or to make it optional.
292+
# Read more about this:
293+
# https://developer.mozilla.org/en-US/docs/Web/Media/Autoplay_guide#autoplay_and_autoplay_blocking
292294
if slide_config.is_loop():
293295
yield f'<section data-background-video="{file}" data-background-video-muted data-background-video-loop></section>'
294296
else:

0 commit comments

Comments
 (0)