From 78605d9a79372bed73c8cee00a936f22e78a007e Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 9 Jul 2025 14:11:45 +0000 Subject: [PATCH] ios: force video embed default on all other platforms, but apple thinks different --- copyparty/web/baguettebox.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/copyparty/web/baguettebox.js b/copyparty/web/baguettebox.js index eacb1535..0103948f 100644 --- a/copyparty/web/baguettebox.js +++ b/copyparty/web/baguettebox.js @@ -776,6 +776,8 @@ window.baguetteBox = (function () { if (is_vid) { image.volume = clamp(fcfg_get('vol', dvol / 100), 0, 1); image.setAttribute('controls', 'controls'); + image.setAttribute('playsinline', '1'); + // ios ignores poster image.onended = vidEnd; image.onplay = function () { show_buttons(1); }; image.onpause = function () { show_buttons(); };