Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 04d06f2242 | |||
| 924049aa14 | |||
| 442427ebd5 | |||
| 7954c92c0b | |||
| 5afb14283a | |||
| bfc541b880 | |||
| 426280f90c | |||
| 2e2c5ad72a | |||
| ecb091af6b | |||
| ecb882b719 | |||
| cddd9c30db | |||
| f6a4625495 |
@@ -2,3 +2,4 @@
|
|||||||
|
|
||||||
github: sampotts
|
github: sampotts
|
||||||
patreon: plyr
|
patreon: plyr
|
||||||
|
open_collective: plyr
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
### v3.5.9
|
||||||
|
|
||||||
|
- Fix for regression with volume control width
|
||||||
|
- Ensure poster image is not downloaded again for HTML5 videos
|
||||||
|
|
||||||
### v3.5.8
|
### v3.5.8
|
||||||
|
|
||||||
- Added `flex-direction` property to fix some issues introduced in v3.5.7 when using custom CSS
|
- Added `flex-direction` property to fix some issues introduced in v3.5.7 when using custom CSS
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+7
-5
@@ -20382,7 +20382,7 @@ typeof navigator === "object" && (function () {
|
|||||||
// Sprite (for icons)
|
// Sprite (for icons)
|
||||||
loadSprite: true,
|
loadSprite: true,
|
||||||
iconPrefix: 'plyr',
|
iconPrefix: 'plyr',
|
||||||
iconUrl: 'https://cdn.plyr.io/3.5.8/plyr.svg',
|
iconUrl: 'https://cdn.plyr.io/3.5.9/plyr.svg',
|
||||||
// Blank video (used to prevent errors on source change)
|
// Blank video (used to prevent errors on source change)
|
||||||
blankVideo: 'https://cdn.plyr.io/static/blank.mp4',
|
blankVideo: 'https://cdn.plyr.io/static/blank.mp4',
|
||||||
// Quality default
|
// Quality default
|
||||||
@@ -21225,7 +21225,12 @@ typeof navigator === "object" && (function () {
|
|||||||
} // Set property synchronously to respect the call order
|
} // Set property synchronously to respect the call order
|
||||||
|
|
||||||
|
|
||||||
this.media.setAttribute('poster', poster); // Wait until ui is ready
|
this.media.setAttribute('poster', poster); // HTML5 uses native poster attribute
|
||||||
|
|
||||||
|
if (this.isHTML5) {
|
||||||
|
return Promise.resolve(poster);
|
||||||
|
} // Wait until ui is ready
|
||||||
|
|
||||||
|
|
||||||
return ready.call(this) // Load image
|
return ready.call(this) // Load image
|
||||||
.then(function () {
|
.then(function () {
|
||||||
@@ -26178,9 +26183,6 @@ typeof navigator === "object" && (function () {
|
|||||||
captions: {
|
captions: {
|
||||||
active: true
|
active: true
|
||||||
},
|
},
|
||||||
keys: {
|
|
||||||
google: 'AIzaSyDrNwtN3nLH_8rjCmu5Wq3ZCm4MNAVdc0c'
|
|
||||||
},
|
|
||||||
ads: {
|
ads: {
|
||||||
enabled: env.prod || env.dev,
|
enabled: env.prod || env.dev,
|
||||||
publisherId: '918848828995742'
|
publisherId: '918848828995742'
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-4
@@ -50,9 +50,6 @@ import toggleClass from './toggle-class';
|
|||||||
captions: {
|
captions: {
|
||||||
active: true,
|
active: true,
|
||||||
},
|
},
|
||||||
keys: {
|
|
||||||
google: 'AIzaSyDrNwtN3nLH_8rjCmu5Wq3ZCm4MNAVdc0c',
|
|
||||||
},
|
|
||||||
ads: {
|
ads: {
|
||||||
enabled: env.prod || env.dev,
|
enabled: env.prod || env.dev,
|
||||||
publisherId: '918848828995742',
|
publisherId: '918848828995742',
|
||||||
@@ -67,7 +64,7 @@ import toggleClass from './toggle-class';
|
|||||||
vimeo: {
|
vimeo: {
|
||||||
// Prevent Vimeo blocking plyr.io demo site
|
// Prevent Vimeo blocking plyr.io demo site
|
||||||
referrerPolicy: 'no-referrer',
|
referrerPolicy: 'no-referrer',
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
// Expose for tinkering in the console
|
// Expose for tinkering in the console
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+7
-2
@@ -3660,7 +3660,7 @@ typeof navigator === "object" && (function (global, factory) {
|
|||||||
// Sprite (for icons)
|
// Sprite (for icons)
|
||||||
loadSprite: true,
|
loadSprite: true,
|
||||||
iconPrefix: 'plyr',
|
iconPrefix: 'plyr',
|
||||||
iconUrl: 'https://cdn.plyr.io/3.5.8/plyr.svg',
|
iconUrl: 'https://cdn.plyr.io/3.5.9/plyr.svg',
|
||||||
// Blank video (used to prevent errors on source change)
|
// Blank video (used to prevent errors on source change)
|
||||||
blankVideo: 'https://cdn.plyr.io/static/blank.mp4',
|
blankVideo: 'https://cdn.plyr.io/static/blank.mp4',
|
||||||
// Quality default
|
// Quality default
|
||||||
@@ -4491,7 +4491,12 @@ typeof navigator === "object" && (function (global, factory) {
|
|||||||
} // Set property synchronously to respect the call order
|
} // Set property synchronously to respect the call order
|
||||||
|
|
||||||
|
|
||||||
this.media.setAttribute('poster', poster); // Wait until ui is ready
|
this.media.setAttribute('poster', poster); // HTML5 uses native poster attribute
|
||||||
|
|
||||||
|
if (this.isHTML5) {
|
||||||
|
return Promise.resolve(poster);
|
||||||
|
} // Wait until ui is ready
|
||||||
|
|
||||||
|
|
||||||
return ready.call(this) // Load image
|
return ready.call(this) // Load image
|
||||||
.then(function () {
|
.then(function () {
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+7
-2
@@ -3654,7 +3654,7 @@ var defaults$1 = {
|
|||||||
// Sprite (for icons)
|
// Sprite (for icons)
|
||||||
loadSprite: true,
|
loadSprite: true,
|
||||||
iconPrefix: 'plyr',
|
iconPrefix: 'plyr',
|
||||||
iconUrl: 'https://cdn.plyr.io/3.5.8/plyr.svg',
|
iconUrl: 'https://cdn.plyr.io/3.5.9/plyr.svg',
|
||||||
// Blank video (used to prevent errors on source change)
|
// Blank video (used to prevent errors on source change)
|
||||||
blankVideo: 'https://cdn.plyr.io/static/blank.mp4',
|
blankVideo: 'https://cdn.plyr.io/static/blank.mp4',
|
||||||
// Quality default
|
// Quality default
|
||||||
@@ -4485,7 +4485,12 @@ var ui = {
|
|||||||
} // Set property synchronously to respect the call order
|
} // Set property synchronously to respect the call order
|
||||||
|
|
||||||
|
|
||||||
this.media.setAttribute('poster', poster); // Wait until ui is ready
|
this.media.setAttribute('poster', poster); // HTML5 uses native poster attribute
|
||||||
|
|
||||||
|
if (this.isHTML5) {
|
||||||
|
return Promise.resolve(poster);
|
||||||
|
} // Wait until ui is ready
|
||||||
|
|
||||||
|
|
||||||
return ready.call(this) // Load image
|
return ready.call(this) // Load image
|
||||||
.then(function () {
|
.then(function () {
|
||||||
|
|||||||
Vendored
+7
-2
@@ -9943,7 +9943,7 @@ typeof navigator === "object" && (function (global, factory) {
|
|||||||
// Sprite (for icons)
|
// Sprite (for icons)
|
||||||
loadSprite: true,
|
loadSprite: true,
|
||||||
iconPrefix: 'plyr',
|
iconPrefix: 'plyr',
|
||||||
iconUrl: 'https://cdn.plyr.io/3.5.8/plyr.svg',
|
iconUrl: 'https://cdn.plyr.io/3.5.9/plyr.svg',
|
||||||
// Blank video (used to prevent errors on source change)
|
// Blank video (used to prevent errors on source change)
|
||||||
blankVideo: 'https://cdn.plyr.io/static/blank.mp4',
|
blankVideo: 'https://cdn.plyr.io/static/blank.mp4',
|
||||||
// Quality default
|
// Quality default
|
||||||
@@ -10786,7 +10786,12 @@ typeof navigator === "object" && (function (global, factory) {
|
|||||||
} // Set property synchronously to respect the call order
|
} // Set property synchronously to respect the call order
|
||||||
|
|
||||||
|
|
||||||
this.media.setAttribute('poster', poster); // Wait until ui is ready
|
this.media.setAttribute('poster', poster); // HTML5 uses native poster attribute
|
||||||
|
|
||||||
|
if (this.isHTML5) {
|
||||||
|
return Promise.resolve(poster);
|
||||||
|
} // Wait until ui is ready
|
||||||
|
|
||||||
|
|
||||||
return ready.call(this) // Load image
|
return ready.call(this) // Load image
|
||||||
.then(function () {
|
.then(function () {
|
||||||
|
|||||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+7
-2
@@ -9937,7 +9937,7 @@ var defaults$1 = {
|
|||||||
// Sprite (for icons)
|
// Sprite (for icons)
|
||||||
loadSprite: true,
|
loadSprite: true,
|
||||||
iconPrefix: 'plyr',
|
iconPrefix: 'plyr',
|
||||||
iconUrl: 'https://cdn.plyr.io/3.5.8/plyr.svg',
|
iconUrl: 'https://cdn.plyr.io/3.5.9/plyr.svg',
|
||||||
// Blank video (used to prevent errors on source change)
|
// Blank video (used to prevent errors on source change)
|
||||||
blankVideo: 'https://cdn.plyr.io/static/blank.mp4',
|
blankVideo: 'https://cdn.plyr.io/static/blank.mp4',
|
||||||
// Quality default
|
// Quality default
|
||||||
@@ -10780,7 +10780,12 @@ var ui = {
|
|||||||
} // Set property synchronously to respect the call order
|
} // Set property synchronously to respect the call order
|
||||||
|
|
||||||
|
|
||||||
this.media.setAttribute('poster', poster); // Wait until ui is ready
|
this.media.setAttribute('poster', poster); // HTML5 uses native poster attribute
|
||||||
|
|
||||||
|
if (this.isHTML5) {
|
||||||
|
return Promise.resolve(poster);
|
||||||
|
} // Wait until ui is ready
|
||||||
|
|
||||||
|
|
||||||
return ready.call(this) // Load image
|
return ready.call(this) // Load image
|
||||||
.then(function () {
|
.then(function () {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "plyr",
|
"name": "plyr",
|
||||||
"version": "3.5.8",
|
"version": "3.5.9",
|
||||||
"description": "A simple, accessible and customizable HTML5, YouTube and Vimeo media player",
|
"description": "A simple, accessible and customizable HTML5, YouTube and Vimeo media player",
|
||||||
"homepage": "https://plyr.io",
|
"homepage": "https://plyr.io",
|
||||||
"author": "Sam Potts <sam@potts.es>",
|
"author": "Sam Potts <sam@potts.es>",
|
||||||
|
|||||||
@@ -130,13 +130,13 @@ See [initialising](#initialising) for more information on advanced setups.
|
|||||||
You can use our CDN (provided by [Fastly](https://www.fastly.com/)) for the JavaScript. There's 2 versions; one with and one without [polyfills](#polyfills). My recommendation would be to manage polyfills seperately as part of your application but to make life easier you can use the polyfilled build.
|
You can use our CDN (provided by [Fastly](https://www.fastly.com/)) for the JavaScript. There's 2 versions; one with and one without [polyfills](#polyfills). My recommendation would be to manage polyfills seperately as part of your application but to make life easier you can use the polyfilled build.
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<script src="https://cdn.plyr.io/3.5.8/plyr.js"></script>
|
<script src="https://cdn.plyr.io/3.5.9/plyr.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
...or...
|
...or...
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<script src="https://cdn.plyr.io/3.5.8/plyr.polyfilled.js"></script>
|
<script src="https://cdn.plyr.io/3.5.9/plyr.polyfilled.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
## CSS
|
## CSS
|
||||||
@@ -150,13 +150,13 @@ Include the `plyr.css` stylsheet into your `<head>`.
|
|||||||
If you want to use our CDN (provided by [Fastly](https://www.fastly.com/)) for the default CSS, you can use the following:
|
If you want to use our CDN (provided by [Fastly](https://www.fastly.com/)) for the default CSS, you can use the following:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<link rel="stylesheet" href="https://cdn.plyr.io/3.5.8/plyr.css" />
|
<link rel="stylesheet" href="https://cdn.plyr.io/3.5.9/plyr.css" />
|
||||||
```
|
```
|
||||||
|
|
||||||
## SVG Sprite
|
## SVG Sprite
|
||||||
|
|
||||||
The SVG sprite is loaded automatically from our CDN (provided by [Fastly](https://www.fastly.com/)). To change this, see the [options](#options) below. For
|
The SVG sprite is loaded automatically from our CDN (provided by [Fastly](https://www.fastly.com/)). To change this, see the [options](#options) below. For
|
||||||
reference, the CDN hosted SVG sprite can be found at `https://cdn.plyr.io/3.5.8/plyr.svg`.
|
reference, the CDN hosted SVG sprite can be found at `https://cdn.plyr.io/3.5.9/plyr.svg`.
|
||||||
|
|
||||||
# Ads
|
# Ads
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ const defaults = {
|
|||||||
// Sprite (for icons)
|
// Sprite (for icons)
|
||||||
loadSprite: true,
|
loadSprite: true,
|
||||||
iconPrefix: 'plyr',
|
iconPrefix: 'plyr',
|
||||||
iconUrl: 'https://cdn.plyr.io/3.5.8/plyr.svg',
|
iconUrl: 'https://cdn.plyr.io/3.5.9/plyr.svg',
|
||||||
|
|
||||||
// Blank video (used to prevent errors on source change)
|
// Blank video (used to prevent errors on source change)
|
||||||
blankVideo: 'https://cdn.plyr.io/static/blank.mp4',
|
blankVideo: 'https://cdn.plyr.io/static/blank.mp4',
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
// ==========================================================================
|
// ==========================================================================
|
||||||
// Plyr
|
// Plyr
|
||||||
// plyr.js v3.5.8
|
// plyr.js v3.5.9
|
||||||
// https://github.com/sampotts/plyr
|
// https://github.com/sampotts/plyr
|
||||||
// License: The MIT License (MIT)
|
// License: The MIT License (MIT)
|
||||||
// ==========================================================================
|
// ==========================================================================
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// ==========================================================================
|
// ==========================================================================
|
||||||
// Plyr Polyfilled Build
|
// Plyr Polyfilled Build
|
||||||
// plyr.js v3.5.8
|
// plyr.js v3.5.9
|
||||||
// https://github.com/sampotts/plyr
|
// https://github.com/sampotts/plyr
|
||||||
// License: The MIT License (MIT)
|
// License: The MIT License (MIT)
|
||||||
// ==========================================================================
|
// ==========================================================================
|
||||||
|
|||||||
@@ -172,6 +172,11 @@ const ui = {
|
|||||||
// Set property synchronously to respect the call order
|
// Set property synchronously to respect the call order
|
||||||
this.media.setAttribute('poster', poster);
|
this.media.setAttribute('poster', poster);
|
||||||
|
|
||||||
|
// HTML5 uses native poster attribute
|
||||||
|
if (this.isHTML5) {
|
||||||
|
return Promise.resolve(poster);
|
||||||
|
}
|
||||||
|
|
||||||
// Wait until ui is ready
|
// Wait until ui is ready
|
||||||
return (
|
return (
|
||||||
ready
|
ready
|
||||||
|
|||||||
@@ -67,15 +67,6 @@ $plyr-progress-offset: $plyr-range-thumb-height;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.plyr--video .plyr__progress__buffer {
|
|
||||||
box-shadow: 0 1px 1px rgba(#000, 0.15);
|
|
||||||
color: $plyr-video-progress-buffered-bg;
|
|
||||||
}
|
|
||||||
|
|
||||||
.plyr--audio .plyr__progress__buffer {
|
|
||||||
color: $plyr-audio-progress-buffered-bg;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Loading state
|
// Loading state
|
||||||
.plyr--loading .plyr__progress__buffer {
|
.plyr--loading .plyr__progress__buffer {
|
||||||
animation: plyr-progress 1s linear infinite;
|
animation: plyr-progress 1s linear infinite;
|
||||||
|
|||||||
@@ -5,7 +5,10 @@
|
|||||||
.plyr__volume {
|
.plyr__volume {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
max-width: 110px;
|
||||||
|
min-width: 80px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
width: 20%;
|
||||||
|
|
||||||
input[type='range'] {
|
input[type='range'] {
|
||||||
margin-left: ($plyr-control-spacing / 2);
|
margin-left: ($plyr-control-spacing / 2);
|
||||||
@@ -13,12 +16,4 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: $plyr-bp-sm) {
|
|
||||||
max-width: 90px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: $plyr-bp-md) {
|
|
||||||
max-width: 110px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,3 +54,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Progress
|
||||||
|
.plyr--audio .plyr__progress__buffer {
|
||||||
|
color: $plyr-audio-progress-buffered-bg;
|
||||||
|
}
|
||||||
|
|||||||
@@ -152,6 +152,7 @@ $embed-padding: ((100 / 16) * 9);
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.plyr--video .plyr__time {
|
// Progress
|
||||||
text-shadow: 0 1px 1px rgba(#000, 0.15);
|
.plyr--video .plyr__progress__buffer {
|
||||||
|
color: $plyr-video-progress-buffered-bg;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user