v3.1.0-beta.1

This commit is contained in:
Sam Potts
2018-04-02 22:52:02 +10:00
parent 3395e8df90
commit b1e3abc795
19 changed files with 847 additions and 1850 deletions

7
dist/plyr.js vendored
View File

@ -77,7 +77,7 @@ var defaults = {
// Sprite (for icons)
loadSprite: true,
iconPrefix: 'plyr',
iconUrl: 'https://cdn.plyr.io/3.0.11/plyr.svg',
iconUrl: 'https://cdn.plyr.io/3.1.0-beta.1/plyr.svg',
// Blank video (used to prevent errors on source change)
blankVideo: 'https://cdn.plyr.io/static/blank.mp4',
@ -1753,6 +1753,11 @@ var 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) {