aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/plyr.js')
-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)) {