Skip to content

Commit 82d72dd

Browse files
committed
use playsinline webkit-playsinline to fix on mobile
1 parent 2530d34 commit 82d72dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ def run(self):
169169
print(f"{fname} does not exist.")
170170
logo_animated.main(fname)
171171
style = "width: 400px; max-width: 100%; margin: 0 auto; display:block;"
172-
opts = f'autoplay loop muted style="{style}"'
173-
html = f"""<video {opts}><source src="{fname}" type="video/mp4"></video><br>"""
172+
opts = f'autoplay loop muted playsinline webkit-playsinline style="{style}"'
173+
html = f'<video {opts}><source src="{fname}" type="video/mp4"></video><br>'
174174
return [nodes.raw(text=html, format="html")]
175175

176176

0 commit comments

Comments
 (0)