aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/support.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-04-02 22:52:02 +1000
committerSam Potts <sam@potts.es>2018-04-02 22:52:02 +1000
commitb1e3abc795c6af0e4c215cc228c2d944942f3ce9 (patch)
tree22b2e0e2c464d3399aadf8336b2bab068e2830db /src/js/support.js
parent3395e8df903cdd63e227a377b4b3be77da682aa8 (diff)
downloadplyr-b1e3abc795c6af0e4c215cc228c2d944942f3ce9.tar.lz
plyr-b1e3abc795c6af0e4c215cc228c2d944942f3ce9.tar.xz
plyr-b1e3abc795c6af0e4c215cc228c2d944942f3ce9.zip
v3.1.0-beta.1
Diffstat (limited to 'src/js/support.js')
-rw-r--r--src/js/support.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/js/support.js b/src/js/support.js
index eede764d..a9a302f3 100644
--- a/src/js/support.js
+++ b/src/js/support.js
@@ -73,6 +73,11 @@ const support = {
return false;
}
+ // Check directly if codecs specified
+ if (type.includes('codecs=')) {
+ return media.canPlayType(type).replace(/no/, '');
+ }
+
// Type specific checks
if (this.isVideo) {
switch (type) {