aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2016-01-15 15:11:02 +1100
committerSam Potts <me@sampotts.me>2016-01-15 15:11:02 +1100
commit90608e9e1a494bea7765cabf7560f3cc33cec9a8 (patch)
tree329ff0e6b357d39229436b2ea08024bd2d0ca71a /src
parent70b4b1498473a116d5bf3aded3f97772256c77e7 (diff)
downloadplyr-90608e9e1a494bea7765cabf7560f3cc33cec9a8.tar.lz
plyr-90608e9e1a494bea7765cabf7560f3cc33cec9a8.tar.xz
plyr-90608e9e1a494bea7765cabf7560f3cc33cec9a8.zip
Vimeo iOS fix
Diffstat (limited to 'src')
-rw-r--r--src/js/plyr.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index 5348eca0..752074fc 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -1124,8 +1124,15 @@
'allowfullscreen': '',
'frameborder': 0
});
- container.appendChild(iframe);
- plyr.media.appendChild(container);
+
+ // If full support, we can use custom controls, if not, use Vimeo
+ if(plyr.supported.full) {
+ container.appendChild(iframe);
+ plyr.media.appendChild(container);
+ }
+ else {
+ plyr.media.appendChild(iframe);
+ }
// Load the API
if (!('$f' in window)) {