Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e0562752ea | |||
| e6db374a72 | |||
| ab7f277a1b | |||
| d5a1a7ca1c | |||
| 79a43120ae | |||
| b79ffacd9c | |||
| 888c6773d0 | |||
| cfd653f02a | |||
| 838bd49a1d | |||
| 800e0dedfb | |||
| e6cc4ba1f5 | |||
| 9c4b53d761 | |||
| 0ec0addbda | |||
| d206b8ab34 | |||
| 51c011b733 | |||
| e06b689f5c |
@@ -1,5 +1,8 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v2.0.18
|
||||||
|
- Fix for YouTube .getVideoData() issue (fixes #709)
|
||||||
|
|
||||||
## v2.0.17
|
## v2.0.17
|
||||||
- Vimeo controls fix (fixes #697)
|
- Vimeo controls fix (fixes #697)
|
||||||
- SVG4everybody compatibility fix
|
- SVG4everybody compatibility fix
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Generated
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "plyr",
|
"name": "plyr",
|
||||||
"version": "2.0.17",
|
"version": "2.0.18",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "plyr",
|
"name": "plyr",
|
||||||
"version": "2.0.17",
|
"version": "2.0.18",
|
||||||
"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": "http://plyr.io",
|
"homepage": "http://plyr.io",
|
||||||
"main": "src/js/plyr.js",
|
"main": "src/js/plyr.js",
|
||||||
|
|||||||
@@ -63,6 +63,12 @@ Created and maintained by Jon Uhlmann ([@jonnitto](https://github.com/jonnitto))
|
|||||||
### [Kirby](https://github.com/dpschen/kirby-plyrtag)
|
### [Kirby](https://github.com/dpschen/kirby-plyrtag)
|
||||||
Created and maintained by Dominik Pschenitschni ([@dpschen](https://github.com/dpschen))
|
Created and maintained by Dominik Pschenitschni ([@dpschen](https://github.com/dpschen))
|
||||||
|
|
||||||
|
### [React](https://github.com/xDae/react-plyr)
|
||||||
|
Created and maintained by Jose Miguel Bejarano ([@xDae](https://github.com/xDae))
|
||||||
|
|
||||||
|
### [Vue](https://github.com/redxtech/vue-plyr)
|
||||||
|
Created and maintained by Gabe Dunn ([@redxtech](https://github.com/redxtech))
|
||||||
|
|
||||||
## Using package managers
|
## Using package managers
|
||||||
You can grab the source using one of the following package managers.
|
You can grab the source using one of the following package managers.
|
||||||
|
|
||||||
@@ -137,7 +143,7 @@ Include the `plyr.js` script before the closing `</body>` tag and then call `ply
|
|||||||
If you want to use our CDN (provided by [Fastly](https://www.fastly.com/)) for the JavaScript, you can use the following:
|
If you want to use our CDN (provided by [Fastly](https://www.fastly.com/)) for the JavaScript, you can use the following:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<script src="https://cdn.plyr.io/2.0.17/plyr.js"></script>
|
<script src="https://cdn.plyr.io/2.0.18/plyr.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
### CSS
|
### CSS
|
||||||
@@ -150,11 +156,11 @@ 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/2.0.17/plyr.css">
|
<link rel="stylesheet" href="https://cdn.plyr.io/2.0.18/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 reference, the CDN hosted SVG sprite can be found at `https://cdn.plyr.io/2.0.17/plyr.svg`.
|
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/2.0.18/plyr.svg`.
|
||||||
|
|
||||||
## Advanced
|
## Advanced
|
||||||
|
|
||||||
@@ -229,7 +235,7 @@ Some touch browsers (particularly Mobile Safari on iOS) seem to have issues with
|
|||||||
Options must be passed as an object to the `setup()` method as above or as JSON in `data-plyr` attribute on each of your target elements:
|
Options must be passed as an object to the `setup()` method as above or as JSON in `data-plyr` attribute on each of your target elements:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<video data-plyr='{ title: "testing" }'></video>
|
<video data-plyr='{ "title": "testing", "volume": 10 }'></video>
|
||||||
```
|
```
|
||||||
|
|
||||||
Note the single quotes encapsulating the JSON and double quotes on the object keys.
|
Note the single quotes encapsulating the JSON and double quotes on the object keys.
|
||||||
@@ -302,7 +308,7 @@ Note the single quotes encapsulating the JSON and double quotes on the object ke
|
|||||||
<td><code>autoplay</code></td>
|
<td><code>autoplay</code></td>
|
||||||
<td>Boolean</td>
|
<td>Boolean</td>
|
||||||
<td><code>false</code></td>
|
<td><code>false</code></td>
|
||||||
<td>Autoplay the media on load. This is generally advised against on UX grounds. It is also disabled on iOS (an Apple limitation).</td>
|
<td>Autoplay the media on load. This is generally advised against on UX grounds. It is also disabled on <a href="https://webkit.org/blog/7734/auto-play-policy-changes-for-macos/">iOS and macOS</a> (an Apple limitation).</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>seekTime</code></td>
|
<td><code>seekTime</code></td>
|
||||||
@@ -1024,7 +1030,7 @@ Fullscreen in Plyr is supported by all browsers that [currently support it](http
|
|||||||
The `enabled` option can be used to disable certain User Agents. For example, if you don't want to use Plyr for smartphones, you could use:
|
The `enabled` option can be used to disable certain User Agents. For example, if you don't want to use Plyr for smartphones, you could use:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
enabled: /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)
|
enabled: !/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)
|
||||||
```
|
```
|
||||||
If a User Agent is disabled but supports `<video>` and `<audio>` natively, it will use the native player.
|
If a User Agent is disabled but supports `<video>` and `<audio>` natively, it will use the native player.
|
||||||
|
|
||||||
|
|||||||
+15
-4
@@ -1,6 +1,6 @@
|
|||||||
// ==========================================================================
|
// ==========================================================================
|
||||||
// Plyr
|
// Plyr
|
||||||
// plyr.js v2.0.17
|
// plyr.js v2.0.18
|
||||||
// https://github.com/sampotts/plyr
|
// https://github.com/sampotts/plyr
|
||||||
// License: The MIT License (MIT)
|
// License: The MIT License (MIT)
|
||||||
// ==========================================================================
|
// ==========================================================================
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
displayDuration: true,
|
displayDuration: true,
|
||||||
loadSprite: true,
|
loadSprite: true,
|
||||||
iconPrefix: 'plyr',
|
iconPrefix: 'plyr',
|
||||||
iconUrl: 'https://cdn.plyr.io/2.0.17/plyr.svg',
|
iconUrl: 'https://cdn.plyr.io/2.0.18/plyr.svg',
|
||||||
blankUrl: 'https://cdn.plyr.io/static/blank.mp4',
|
blankUrl: 'https://cdn.plyr.io/static/blank.mp4',
|
||||||
clickToPlay: true,
|
clickToPlay: true,
|
||||||
hideControls: true,
|
hideControls: true,
|
||||||
@@ -1768,8 +1768,10 @@
|
|||||||
plyr.media.currentTime = 0;
|
plyr.media.currentTime = 0;
|
||||||
plyr.media.muted = instance.isMuted();
|
plyr.media.muted = instance.isMuted();
|
||||||
|
|
||||||
// Set title
|
// Set title if possible
|
||||||
config.title = instance.getVideoData().title;
|
if (typeof instance.getVideoData === 'function') {
|
||||||
|
config.title = instance.getVideoData().title;
|
||||||
|
}
|
||||||
|
|
||||||
// Set the tabindex
|
// Set the tabindex
|
||||||
if (plyr.supported.full) {
|
if (plyr.supported.full) {
|
||||||
@@ -1886,6 +1888,7 @@
|
|||||||
byline: false,
|
byline: false,
|
||||||
portrait: false,
|
portrait: false,
|
||||||
title: false,
|
title: false,
|
||||||
|
speed: true,
|
||||||
transparent: 0,
|
transparent: 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -2226,6 +2229,11 @@
|
|||||||
|
|
||||||
// Toggle fullscreen
|
// Toggle fullscreen
|
||||||
function _toggleFullscreen(event) {
|
function _toggleFullscreen(event) {
|
||||||
|
// We don't allow fullscreen on audio player
|
||||||
|
if (plyr.type === 'audio') {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// Check for native support
|
// Check for native support
|
||||||
var nativeSupport = fullscreen.supportsFullScreen;
|
var nativeSupport = fullscreen.supportsFullScreen;
|
||||||
|
|
||||||
@@ -3190,6 +3198,9 @@
|
|||||||
// Fullscreen
|
// Fullscreen
|
||||||
_proxyListener(plyr.buttons.fullscreen, 'click', config.listeners.fullscreen, _toggleFullscreen);
|
_proxyListener(plyr.buttons.fullscreen, 'click', config.listeners.fullscreen, _toggleFullscreen);
|
||||||
|
|
||||||
|
// Toggle fullscreen when user double clicks on video wrapper
|
||||||
|
_proxyListener(plyr.container, 'dblclick', config.listeners.fullscreen, _toggleFullscreen);
|
||||||
|
|
||||||
// Handle user exiting fullscreen by escaping etc
|
// Handle user exiting fullscreen by escaping etc
|
||||||
if (fullscreen.supportsFullScreen) {
|
if (fullscreen.supportsFullScreen) {
|
||||||
_on(document, fullscreen.fullScreenEventName, _toggleFullscreen);
|
_on(document, fullscreen.fullScreenEventName, _toggleFullscreen);
|
||||||
|
|||||||
Reference in New Issue
Block a user