diff --git a/.eslintrc.json b/.eslintrc similarity index 100% rename from .eslintrc.json rename to .eslintrc diff --git a/changelog.md b/changelog.md index 8b3d378fb..f3284a08e 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,16 @@ +## v3.5.4 + +- Added: Set download URL via new setter +- Improvement: The order of the `controls` option now effects the order in the DOM - i.e. you can re-order the controls - Note: this may break any custom CSS you have setup. Please see the changes in the PR to the default SASS +- Fixed issue with empty controls and preview thumbs +- Fixed issue with setGutter call (from Sentry) +- Fixed issue with initial selected speed not working +- Added notes on `autoplay` config option and browser compatibility +- Fixed issue with ads volume not matching current content volume +- Fixed race condition where ads were loading during source change +- Improvement: Automatic aspect ratio for YouTube is now supported, meaning all aspect ratios are set based on media content - Note: we're now using a different API to get YouTube video metadata so you may need to adjust any CSPs you have setup +- Fix for menu in the Shadow DOM (thanks @emielbeinema) + ## v3.5.3 - Improved the usage of the `ratio` config option; it now works as expected and for all video types. The default has not changed, it is to dynamically, where possible (except YouTube where 16:9 is used) determine the ratio from the media source so this is not a breaking change. diff --git a/demo/index.html b/demo/index.html index c1942e74b..04458522f 100644 --- a/demo/index.html +++ b/demo/index.html @@ -265,7 +265,7 @@

Plyr

diff --git a/package.json b/package.json index ddc4bf4ff..d4a327a1e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plyr", - "version": "3.5.3", + "version": "3.5.4", "description": "A simple, accessible and customizable HTML5, YouTube and Vimeo media player", "homepage": "https://plyr.io", "author": "Sam Potts ", @@ -78,7 +78,7 @@ "stylelint": "^9.10.1", "stylelint-config-prettier": "^5.0.0", "stylelint-config-recommended": "^2.1.0", - "stylelint-config-sass-guidelines": "^5.3.0", + "stylelint-config-sass-guidelines": "^5.4.0", "stylelint-order": "^2.2.1", "stylelint-scss": "^3.5.4", "stylelint-selector-bem-pattern": "^2.1.0", diff --git a/readme.md b/readme.md index e217bf09f..ec2d77ebe 100644 --- a/readme.md +++ b/readme.md @@ -275,7 +275,7 @@ Note the single quotes encapsulating the JSON and double quotes on the object ke | `iconUrl` | String | `null` | Specify a URL or path to the SVG sprite. See the [SVG section](#svg) for more info. | | `iconPrefix` | String | `plyr` | Specify the id prefix for the icons used in the default controls (e.g. "plyr-play" would be "plyr"). This is to prevent clashes if you're using your own SVG sprite but with the default controls. Most people can ignore this option. | | `blankVideo` | String | `https://cdn.plyr.io/static/blank.mp4` | Specify a URL or path to a blank video file used to properly cancel network requests. | -| `autoplay` | Boolean | `false` | Autoplay the media on load. This is generally advised against on UX grounds. It is also disabled by default in some browsers. If the `autoplay` attribute is present on a `