Compare commits

...

11 Commits
v2.0.18 ... v2

Author SHA1 Message Date
e0562752ea Merge pull request #795 from frogg/patch-1
Added link that explains Webkit's autoplay blocker
2018-03-10 23:29:22 +11:00
e6db374a72 Added link that explains Webkit's autoplay blocker 2018-02-24 16:19:55 +01:00
ab7f277a1b Merge pull request #769 from redxtech/add-vue-plyr-to-readme
Add vue-plyr to readme
2018-02-06 10:51:42 +11:00
d5a1a7ca1c Add vue-plyr to readme 2018-01-28 23:03:05 -07:00
79a43120ae Merge pull request #740 from gurinderhans/master
double click player to toggle fullscreen
2018-01-07 22:40:20 +11:00
b79ffacd9c Merge pull request #726 from xDae/master
Added react port
2018-01-05 21:23:45 +11:00
888c6773d0 Merge pull request #743 from jwpage/patch-1
Fix `enabled` smartphone example in README
2018-01-03 11:45:33 +11:00
cfd653f02a Fix enabled smartphone example in README 2018-01-03 09:55:14 +11:00
838bd49a1d add comment about no fullscreen if player type is audio 2017-12-23 21:47:01 -08:00
800e0dedfb add double click to make full screen support 2017-12-23 21:41:08 -08:00
e6cc4ba1f5 Added react port 2017-12-04 17:05:14 +02:00
2 changed files with 16 additions and 2 deletions

View File

@ -63,6 +63,12 @@ Created and maintained by Jon Uhlmann ([@jonnitto](https://github.com/jonnitto))
### [Kirby](https://github.com/dpschen/kirby-plyrtag)
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
You can grab the source using one of the following package managers.
@ -302,7 +308,7 @@ Note the single quotes encapsulating the JSON and double quotes on the object ke
<td><code>autoplay</code></td>
<td>Boolean</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>
<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:
```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.

View File

@ -2229,6 +2229,11 @@
// Toggle fullscreen
function _toggleFullscreen(event) {
// We don't allow fullscreen on audio player
if (plyr.type === 'audio') {
return
}
// Check for native support
var nativeSupport = fullscreen.supportsFullScreen;
@ -3193,6 +3198,9 @@
// Fullscreen
_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
if (fullscreen.supportsFullScreen) {
_on(document, fullscreen.fullScreenEventName, _toggleFullscreen);