mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
ios: force video embed
default on all other platforms, but apple thinks different
This commit is contained in:
parent
d46a40fed8
commit
78605d9a79
|
@ -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(); };
|
||||||
|
|
Loading…
Reference in a new issue