aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/players
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2021-08-28 01:09:18 +0300
committerRblSb <msrblsb@gmail.com>2021-08-28 01:09:18 +0300
commite2c76dece4ba9daf1dcce338026339c17c9bd6cd (patch)
treed0e61c8c297c6cc5d440e8f8112956dfbcadef94 /src/client/players
parent8c0b2edaa6c07f8f6ac4970059ff8964c8630a4a (diff)
iOS...
Sent from my iPhone
Diffstat (limited to 'src/client/players')
-rw-r--r--src/client/players/Raw.hx1
-rw-r--r--src/client/players/Youtube.hx1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/client/players/Raw.hx b/src/client/players/Raw.hx
index 5889732..4b78b0f 100644
--- a/src/client/players/Raw.hx
+++ b/src/client/players/Raw.hx
@@ -105,6 +105,7 @@ class Raw implements IPlayer {
} else {
video = document.createVideoElement();
video.id = "videoplayer";
+ video.setAttribute("playsinline", "");
video.src = url;
video.oncanplaythrough = player.onCanBePlayed;
video.onseeking = player.onSetTime;
diff --git a/src/client/players/Youtube.hx b/src/client/players/Youtube.hx
index 23b2439..65a93c9 100644
--- a/src/client/players/Youtube.hx
+++ b/src/client/players/Youtube.hx
@@ -226,6 +226,7 @@ class Youtube implements IPlayer {
videoId: extractVideoId(item.url),
playerVars: {
autoplay: 1,
+ playsinline: 1,
modestbranding: 1,
rel: 0,
showinfo: 0
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage