Compare commits

...

9 Commits

Author SHA1 Message Date
d5b5faafbb Version bump for NPM 2016-08-22 13:08:19 +10:00
a318e8588b Merge branch 'master' of https://github.com/Selz/plyr 2016-08-22 13:07:07 +10:00
51fb252cd8 Update changelog.md 2016-08-22 13:06:26 +10:00
232a9fe868 Update changelog.md 2016-08-22 12:53:38 +10:00
e8bfe73b1d Update readme.md 2016-08-22 08:40:02 +10:00
ab0d762675 Update readme.md 2016-08-21 22:46:11 +10:00
a6a314e011 Update readme.md 2016-08-21 21:53:16 +10:00
514bdff92e Update readme.md 2016-08-21 21:53:02 +10:00
745e56a3a3 Update readme.md 2016-08-21 21:40:24 +10:00
5 changed files with 22 additions and 9 deletions

View File

@ -1,5 +1,8 @@
# Changelog
# v2.0.1
- Version bump for NPM
# v2.0.0
This version contains several potential ***breaking changes***:

2
dist/plyr.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "plyr",
"version": "2.0.0",
"version": "2.0.1",
"description": "A simple, accessible and customizable HTML5, YouTube and Vimeo media player",
"homepage": "http://plyr.io",
"main": "src/js/plyr.js",

View File

@ -20,6 +20,7 @@ We wanted a lightweight, accessible and customizable media player that supports
- **[API](#api)** - toggle playback, volume, seeking, and more
- **[Events](#events)** - no messing around with Vimeo and YouTube APIs, all events are standardized across formats
- **[Fullscreen](#fullscreen)** - supports native fullscreen with fallback to "full window" modes
- **[Shortcuts](#shortcuts)** - supports keyboard shortcuts
- **i18n support** - support for internationalization of controls
- **No dependencies** - written in "vanilla" JavaScript, no jQuery required
- **SASS and LESS** - to include in your build processes
@ -75,7 +76,7 @@ ember addon:install ember-cli-plyr
More info is on [npm](https://www.npmjs.com/package/ember-cli-plyr) and [GitHub](https://github.com/louisrudner/ember-cli-plyr)
## Quick setup
Here's a quick run through on getting up and running.
Here's a quick run through on getting up and running. There's also a [demo on Codepen](http://codepen.io/sampotts/pen/jARJYp).
### HTML
Plyr extends upon the standard HTML5 markup so that's all you need for those types. More info on advanced HTML markup can be found under [initialising](#initialising).
@ -121,7 +122,7 @@ Include the `plyr.js` script before the closing `</body>` tag and then call `ply
If you want to use our CDN for the JavaScript, you can use the following:
```html
<script src="https://cdn.plyr.io/2.0.0/plyr.js"></script>
<script src="https://cdn.plyr.io/2.0.1/plyr.js"></script>
```
### CSS
@ -134,11 +135,11 @@ Include the `plyr.css` stylsheet into your `<head>`
If you want to use our CDN for the default CSS, you can use the following:
```html
<link rel="stylesheet" href="https://cdn.plyr.io/2.0.0/plyr.css">
<link rel="stylesheet" href="https://cdn.plyr.io/2.0.1/plyr.css">
```
### SVG Sprite
The SVG sprite is loaded automatically from our CDN. 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.0/plyr.svg`.
The SVG sprite is loaded automatically from our CDN. 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.1/plyr.svg`.
## Advanced
@ -890,6 +891,10 @@ By default, a focused player will bind the following keyboard shortcuts:
<td><code>space</code> or <code>K</code></td>
<td>Toggle playback</td>
</tr>
<tr>
<td><code>&larr;</code></td>
<td>Seek backward by the <code>seekTime</code> option</td>
</tr>
<tr>
<td><code>&rarr;</code></td>
<td>Seek forward by the <code>seekTime</code> option</td>
@ -925,7 +930,7 @@ Because Plyr is an extension of the standard HTML5 video and audio elements, thi
- Using [dash.js](https://github.com/Dash-Industry-Forum/dash.js) - [Demo](http://codepen.io/sampotts/pen/BzpJXN)
## Fullscreen
Fullscreen in Plyr is supported by all browsers that [currently support it](http://caniuse.com/#feat=fullscreen). If you're using the default CSS, you can also use a "full browser" mode which will use the full browser window by adding the `plyr-fullscreen` class to your container.
Fullscreen in Plyr is supported by all browsers that [currently support it](http://caniuse.com/#feat=fullscreen).
## Browser support
@ -990,6 +995,11 @@ Plyr is developed by [@sam_potts](https://twitter.com/sam_potts) / [sampotts.me]
## Used by
- [Selz.com](https://selz.com)
- [Peugeot.fr](http://www.peugeot.fr/marque-et-technologie/technologies/peugeot-i-cockpit.html)
- [Peugeot.de](http://www.peugeot.de/modelle/modellberater/208-3-turer/fotos-videos.html)
- [TomTom.com](http://prioritydriving.tomtom.com/)
- [DIGBMX](http://digbmx.com/)
- [Grime Archive](https://grimearchive.com/)
- [koel - A personal music streaming server that works.](http://koel.phanan.net/)
- [Oscar Radio](http://oscar-radio.xyz/)

View File

@ -1,6 +1,6 @@
// ==========================================================================
// Plyr
// plyr.js v2.0.0
// plyr.js v2.0.1
// https://github.com/selz/plyr
// License: The MIT License (MIT)
// ==========================================================================
@ -43,7 +43,7 @@
displayDuration: true,
loadSprite: true,
iconPrefix: 'plyr',
iconUrl: 'https://cdn.plyr.io/2.0.0/plyr.svg',
iconUrl: 'https://cdn.plyr.io/2.0.1/plyr.svg',
clickToPlay: true,
hideControls: true,
showPosterOnEnd: false,