Bump to v2.0.0
This commit is contained in:
		@ -1,7 +1,7 @@
 | 
				
			|||||||
# Changelog
 | 
					# Changelog
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# v1.9.0
 | 
					# v2.0.0
 | 
				
			||||||
This version contains several ***breaking changes***:
 | 
					This version contains several potential ***breaking changes***:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- `setup()` has been reverted to pre v1.8.0 behaviour; meaning it will return the *instance* rather than the *element*. This is because the reference to the instance is no longer added to the original element (see below).
 | 
					- `setup()` has been reverted to pre v1.8.0 behaviour; meaning it will return the *instance* rather than the *element*. This is because the reference to the instance is no longer added to the original element (see below).
 | 
				
			||||||
- The reference to the `plyr` instance is now added to the media element rather than original container. This is because if a container with multiple children was passed to `setup()` the references to all instances would have been added to the container, creating issues. I would recommend using the return value from `setup()` or the new `get()` method to access the instance.
 | 
					- The reference to the `plyr` instance is now added to the media element rather than original container. This is because if a container with multiple children was passed to `setup()` the references to all instances would have been added to the container, creating issues. I would recommend using the return value from `setup()` or the new `get()` method to access the instance.
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								dist/plyr.css
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/plyr.css
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										2
									
								
								dist/plyr.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/plyr.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "plyr",
 | 
					  "name": "plyr",
 | 
				
			||||||
  "version": "1.9.0",
 | 
					  "version": "2.0.0",
 | 
				
			||||||
  "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",
 | 
				
			||||||
 | 
				
			|||||||
@ -121,7 +121,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:
 | 
					If you want to use our CDN for the JavaScript, you can use the following:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```html
 | 
					```html
 | 
				
			||||||
<script src="https://cdn.plyr.io/1.9.0/plyr.js"></script>
 | 
					<script src="https://cdn.plyr.io/2.0.0/plyr.js"></script>
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### CSS
 | 
					### CSS
 | 
				
			||||||
@ -134,11 +134,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:
 | 
					If you want to use our CDN for the default CSS, you can use the following:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```html
 | 
					```html
 | 
				
			||||||
<link rel="stylesheet" href="https://cdn.plyr.io/1.9.0/plyr.css">
 | 
					<link rel="stylesheet" href="https://cdn.plyr.io/2.0.0/plyr.css">
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### SVG Sprite
 | 
					### 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/1.9.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.0/plyr.svg`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Advanced
 | 
					## Advanced
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,6 @@
 | 
				
			|||||||
// ==========================================================================
 | 
					// ==========================================================================
 | 
				
			||||||
// Plyr
 | 
					// Plyr
 | 
				
			||||||
// plyr.js v1.9.0
 | 
					// plyr.js v2.0.0
 | 
				
			||||||
// https://github.com/selz/plyr
 | 
					// https://github.com/selz/plyr
 | 
				
			||||||
// License: The MIT License (MIT)
 | 
					// License: The MIT License (MIT)
 | 
				
			||||||
// ==========================================================================
 | 
					// ==========================================================================
 | 
				
			||||||
@ -43,7 +43,7 @@
 | 
				
			|||||||
        displayDuration:        true,
 | 
					        displayDuration:        true,
 | 
				
			||||||
        loadSprite:             true,
 | 
					        loadSprite:             true,
 | 
				
			||||||
        iconPrefix:             'plyr',
 | 
					        iconPrefix:             'plyr',
 | 
				
			||||||
        iconUrl:                'https://cdn.plyr.io/1.9.0/plyr.svg',
 | 
					        iconUrl:                'https://cdn.plyr.io/2.0.0/plyr.svg',
 | 
				
			||||||
        clickToPlay:            true,
 | 
					        clickToPlay:            true,
 | 
				
			||||||
        hideControls:           true,
 | 
					        hideControls:           true,
 | 
				
			||||||
        showPosterOnEnd:        false,
 | 
					        showPosterOnEnd:        false,
 | 
				
			||||||
 | 
				
			|||||||
@ -717,7 +717,6 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// Fullscreen
 | 
					// Fullscreen
 | 
				
			||||||
// --------------------------------------------------------------
 | 
					// --------------------------------------------------------------
 | 
				
			||||||
.plyr--fullscreen,
 | 
					 | 
				
			||||||
.plyr--fullscreen-active {
 | 
					.plyr--fullscreen-active {
 | 
				
			||||||
    position: fixed;
 | 
					    position: fixed;
 | 
				
			||||||
    top: 0;
 | 
					    top: 0;
 | 
				
			||||||
 | 
				
			|||||||
@ -716,7 +716,6 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// Fullscreen
 | 
					// Fullscreen
 | 
				
			||||||
// --------------------------------------------------------------
 | 
					// --------------------------------------------------------------
 | 
				
			||||||
.plyr--fullscreen,
 | 
					 | 
				
			||||||
.plyr--fullscreen-active {
 | 
					.plyr--fullscreen-active {
 | 
				
			||||||
    position: fixed;
 | 
					    position: fixed;
 | 
				
			||||||
    top: 0;
 | 
					    top: 0;
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user