Skip to content

Commit

Permalink
Merge pull request #266 from vizzuhq/video-thumbnail
Browse files Browse the repository at this point in the history
Documentation: preview videos loading in older Safari browser fixed
  • Loading branch information
veghdev authored Aug 22, 2023
2 parents 916cd09 + 86cefc8 commit 023683b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/docs/examples/gen_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,15 @@ def _add_video( # pylint: disable=too-many-arguments
if figcaption:
html.append("<figure markdown class='image-figure'>")
html.append(
"<video nocontrols autoplay muted loop class='image-gallery-w-caption'"
"<video nocontrols autoplay muted loop class='image-gallery-w-caption'>"
)
else:
html.append(
"<video nocontrols autoplay muted loop class='image-gallery'"
"<video nocontrols autoplay muted loop class='image-gallery'>"
)
html.append(f" src='{url}/{thumbnail}.webm'")
html.append(f"<source src='{url}/{thumbnail}.webm'")
html.append(" type='video/webm'>")
html.append(f" src='{url}/{thumbnail}.mp4'")
html.append(f"<source src='{url}/{thumbnail}.mp4'")
html.append(" type='video/mp4'>")
html.append("</video>")
if figcaption:
Expand Down

0 comments on commit 023683b

Please sign in to comment.