aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/js/defaults.js1
-rw-r--r--src/js/plyr.js35
2 files changed, 28 insertions, 8 deletions
diff --git a/src/js/defaults.js b/src/js/defaults.js
index c6271a2a..b7dcbf4f 100644
--- a/src/js/defaults.js
+++ b/src/js/defaults.js
@@ -143,7 +143,6 @@ const defaults = {
'captions',
'quality',
'speed',
- 'loop',
],
// Localisation
diff --git a/src/js/plyr.js b/src/js/plyr.js
index b6162b44..e40097b0 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -1025,13 +1025,7 @@ class Plyr {
utils.off(this.elements.container, event, callback);
}
- /**
- * Check for support for a mime type (HTML5 only)
- * @param {string} type - Mime type
- */
- supports(type) {
- return support.mime.call(this, type);
- }
+
/**
* Destroy an instance
@@ -1133,6 +1127,33 @@ class Plyr {
break;
}
}
+
+ /**
+ * Check for support for a mime type (HTML5 only)
+ * @param {string} type - Mime type
+ */
+ supports(type) {
+ return support.mime.call(this, type);
+ }
+
+ /**
+ * Check for support
+ * @param {string} type - Player type (audio/video)
+ * @param {string} provider - Provider (html5/youtube/vimeo)
+ * @param {bool} inline - Where player has `playsinline` sttribute
+ */
+ static supported(type, provider, inline) {
+ return support.check(type, provider, inline);
+ }
+
+ /**
+ * Load an SVG sprite into the page
+ * @param {string} url - URL for the SVG sprite
+ * @param {string} [id] - Unique ID
+ */
+ static loadSprite(url, id) {
+ return utils.loadSprite(url, id);
+ }
}
export default Plyr;