From ab29f697e8a0d9daf581c0c900725add1cedc6a8 Mon Sep 17 00:00:00 2001 From: Hugues Hoppe Date: Wed, 15 Feb 2023 17:49:38 -0800 Subject: [PATCH 1/2] Adjust fill-column to Google style. --- mediapy/__init__.py | 2 +- mediapy_test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mediapy/__init__.py b/mediapy/__init__.py index 866f685..4d09108 100644 --- a/mediapy/__init__.py +++ b/mediapy/__init__.py @@ -1856,5 +1856,5 @@ def show_videos( # Local Variables: -# fill-column: 88 +# fill-column: 80 # End: diff --git a/mediapy_test.py b/mediapy_test.py index 0620975..5177c99 100755 --- a/mediapy_test.py +++ b/mediapy_test.py @@ -801,5 +801,5 @@ def test_show_videos_out_str(self): # Local Variables: -# fill-column: 88 +# fill-column: 80 # End: From 67440af39ad7e7e733e84fbc32083aa9932985f5 Mon Sep 17 00:00:00 2001 From: Hugues Hoppe Date: Fri, 17 Feb 2023 17:39:19 -0800 Subject: [PATCH 2/2] Add "muted" attribute for video autoplay --- mediapy/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mediapy/__init__.py b/mediapy/__init__.py index 4d09108..2b9e36e 100644 --- a/mediapy/__init__.py +++ b/mediapy/__init__.py @@ -99,7 +99,7 @@ from __future__ import annotations __docformat__ = 'google' -__version__ = '1.1.4' +__version__ = '1.1.5' __version_info__ = tuple(int(num) for num in __version__.split('.')) import base64 @@ -1697,7 +1697,8 @@ def html_from_compressed_video( options = ( f'controls width="{width}" height="{height}"' f' style="{border}object-fit:cover;"' - f"{' loop' if loop else ''}{' autoplay' if autoplay else ''}" + f"{' loop' if loop else ''}" + f"{' autoplay muted' if autoplay else ''}" ) s = f"""