ios: force video embed

default on all other platforms, but apple thinks different
This commit is contained in:
ed 2025-07-09 14:11:45 +00:00
parent d46a40fed8
commit 78605d9a79

View file

@ -776,6 +776,8 @@ window.baguetteBox = (function () {
if (is_vid) { if (is_vid) {
image.volume = clamp(fcfg_get('vol', dvol / 100), 0, 1); image.volume = clamp(fcfg_get('vol', dvol / 100), 0, 1);
image.setAttribute('controls', 'controls'); image.setAttribute('controls', 'controls');
image.setAttribute('playsinline', '1');
// ios ignores poster
image.onended = vidEnd; image.onended = vidEnd;
image.onplay = function () { show_buttons(1); }; image.onplay = function () { show_buttons(1); };
image.onpause = function () { show_buttons(); }; image.onpause = function () { show_buttons(); };