From 561b8095a921859c6c2b0d644c7e934890640bce Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Tue, 1 Aug 2023 09:24:41 +0100 Subject: [PATCH] Enable autoplay permission for content frame This enables the Play button in Via's video player to work, in Chrome, before the user has interacted with the YouTube iframe. See https://developer.chrome.com/blog/autoplay/#iframe-delegation. Fixes https://github.com/hypothesis/via/issues/1136 --- .../scripts/frontend_apps/components/ContentFrame.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lms/static/scripts/frontend_apps/components/ContentFrame.tsx b/lms/static/scripts/frontend_apps/components/ContentFrame.tsx index 3fc41ca20f..15c4a8234d 100644 --- a/lms/static/scripts/frontend_apps/components/ContentFrame.tsx +++ b/lms/static/scripts/frontend_apps/components/ContentFrame.tsx @@ -13,7 +13,13 @@ export default function ContentFrame({ url, iframeRef }: ContentFrameProps) { return (