Bug fix
This commit is contained in:
		
							
								
								
									
										2
									
								
								dist/plyr.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/plyr.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										2
									
								
								dist/plyr.js.map
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/plyr.js.map
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										10
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								package.json
									
									
									
									
									
								
							| @ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|     "name": "plyr", |     "name": "plyr", | ||||||
|     "version": "3.0.0-beta.3", |     "version": "3.0.0-beta.4", | ||||||
|     "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", | ||||||
|     "main": "./dist", |     "main": "./dist", | ||||||
| @ -12,14 +12,14 @@ | |||||||
|         "babel-plugin-external-helpers": "^6.22.0", |         "babel-plugin-external-helpers": "^6.22.0", | ||||||
|         "babel-preset-env": "^1.6.1", |         "babel-preset-env": "^1.6.1", | ||||||
|         "del": "^3.0.0", |         "del": "^3.0.0", | ||||||
|         "eslint": "^4.15.0", |         "eslint": "^4.16.0", | ||||||
|         "eslint-config-airbnb-base": "^12.1.0", |         "eslint-config-airbnb-base": "^12.1.0", | ||||||
|         "eslint-config-prettier": "^2.9.0", |         "eslint-config-prettier": "^2.9.0", | ||||||
|         "eslint-plugin-import": "^2.8.0", |         "eslint-plugin-import": "^2.8.0", | ||||||
|         "git-branch": "^1.0.0", |         "git-branch": "^1.0.0", | ||||||
|         "gulp": "^3.9.1", |         "gulp": "^3.9.1", | ||||||
|         "gulp-autoprefixer": "^4.1.0", |         "gulp-autoprefixer": "^4.1.0", | ||||||
|         "gulp-better-rollup": "^2.0.0", |         "gulp-better-rollup": "^3.0.0", | ||||||
|         "gulp-clean-css": "^3.9.2", |         "gulp-clean-css": "^3.9.2", | ||||||
|         "gulp-concat": "^2.6.1", |         "gulp-concat": "^2.6.1", | ||||||
|         "gulp-open": "^2.1.0", |         "gulp-open": "^2.1.0", | ||||||
| @ -35,7 +35,7 @@ | |||||||
|         "rollup-plugin-babel": "^3.0.3", |         "rollup-plugin-babel": "^3.0.3", | ||||||
|         "rollup-plugin-commonjs": "^8.2.6", |         "rollup-plugin-commonjs": "^8.2.6", | ||||||
|         "rollup-plugin-node-resolve": "^3.0.2", |         "rollup-plugin-node-resolve": "^3.0.2", | ||||||
|         "rollup-plugin-uglify": "^2.0.1", |         "rollup-plugin-uglify": "^3.0.0", | ||||||
|         "run-sequence": "^2.2.1", |         "run-sequence": "^2.2.1", | ||||||
|         "stylelint": "^8.4.0", |         "stylelint": "^8.4.0", | ||||||
|         "stylelint-config-prettier": "^2.0.0", |         "stylelint-config-prettier": "^2.0.0", | ||||||
| @ -44,7 +44,7 @@ | |||||||
|         "stylelint-order": "^0.8.0", |         "stylelint-order": "^0.8.0", | ||||||
|         "stylelint-scss": "^2.2.0", |         "stylelint-scss": "^2.2.0", | ||||||
|         "stylelint-selector-bem-pattern": "^2.0.0", |         "stylelint-selector-bem-pattern": "^2.0.0", | ||||||
|         "uglify-es": "^3.3.7" |         "uglify-es": "^3.3.8" | ||||||
|     }, |     }, | ||||||
|     "keywords": ["HTML5 Video", "HTML5 Audio", "Media Player", "DASH", "Shaka", "WordPress", "HLS"], |     "keywords": ["HTML5 Video", "HTML5 Audio", "Media Player", "DASH", "Shaka", "WordPress", "HLS"], | ||||||
|     "repository": { |     "repository": { | ||||||
|  | |||||||
| @ -122,7 +122,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/3.0.0-beta.3/plyr.js"></script> | <script src="https://cdn.plyr.io/3.0.0-beta.4/plyr.js"></script> | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| ### CSS | ### CSS | ||||||
| @ -136,13 +136,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.0.0-beta.3/plyr.css"> | <link rel="stylesheet" href="https://cdn.plyr.io/3.0.0-beta.4/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.0.0-beta.3/plyr.svg`. | reference, the CDN hosted SVG sprite can be found at `https://cdn.plyr.io/3.0.0-beta.4/plyr.svg`. | ||||||
|  |  | ||||||
| ## Advanced | ## Advanced | ||||||
|  |  | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| // ========================================================================== | // ========================================================================== | ||||||
| // Plyr | // Plyr | ||||||
| // plyr.js v3.0.0-beta.3 | // plyr.js v3.0.0-beta.4 | ||||||
| // https://github.com/sampotts/plyr | // https://github.com/sampotts/plyr | ||||||
| // License: The MIT License (MIT) | // License: The MIT License (MIT) | ||||||
| // ========================================================================== | // ========================================================================== | ||||||
|  | |||||||
| @ -293,7 +293,7 @@ const ui = { | |||||||
|     // Update the displayed time |     // Update the displayed time | ||||||
|     updateTimeDisplay(target = null, time = 0, inverted = false) { |     updateTimeDisplay(target = null, time = 0, inverted = false) { | ||||||
|         // Bail if there's no element to display or the value isn't a number |         // Bail if there's no element to display or the value isn't a number | ||||||
|         if (!utils.is.element(target)) { |         if (!utils.is.element(target) || !utils.is.number(time)) { | ||||||
|             return; |             return; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  | |||||||
| @ -612,6 +612,11 @@ const utils = { | |||||||
|  |  | ||||||
|     // Format time to UI friendly string |     // Format time to UI friendly string | ||||||
|     formatTime(time = 0, displayHours = false, inverted = false) { |     formatTime(time = 0, displayHours = false, inverted = false) { | ||||||
|  |         // Bail if the value isn't a number | ||||||
|  |         if (!utils.is.number(time)) { | ||||||
|  |             return; | ||||||
|  |         } | ||||||
|  |  | ||||||
|         // Format time component to add leading zero |         // Format time component to add leading zero | ||||||
|         const format = value => `0${value}`.slice(-2); |         const format = value => `0${value}`.slice(-2); | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user