summaryrefslogtreecommitdiff
path: root/www/lib
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-11-23 10:30:26 -0400
committerPliable Pixels <pliablepixels@gmail.com>2016-11-23 10:30:26 -0400
commit2118c797762d6ef2699a80b2dc3356a6f10d0bae (patch)
tree3c3eb8df5bad81739b3883462532700beaae0966 /www/lib
parent5eac484a44243b7d1a41036f4d25c4f23dcc6e76 (diff)
updates to make inline playback work on iOS
Diffstat (limited to 'www/lib')
-rw-r--r--www/lib/videogular/videogular.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/www/lib/videogular/videogular.js b/www/lib/videogular/videogular.js
index 1a29b398..105d0463 100644
--- a/www/lib/videogular/videogular.js
+++ b/www/lib/videogular/videogular.js
@@ -960,8 +960,13 @@ angular.module("com.2fdevs.videogular")
return API.playsInline;
},
function (newValue, oldValue) {
- if (newValue) API.mediaElement.attr("webkit-playsinline", "");
- else API.mediaElement.removeAttr("webkit-playsinline");
+ if (newValue) {
+ API.mediaElement.attr("webkit-playsinline", "");
+ API.mediaElement.attr("playsinline", "");
+ } else {
+ API.mediaElement.removeAttr("webkit-playsinline");
+ API.mediaElement.removeAttr("playsinline");
+ }
}
);