## v3.0.9 * Demo fix * Fix Vimeo regression ## v3.0.8 * Vimeo hotfix for private videos ## v3.0.7 * Fix for keyboard shortcut error with fast forward * Fix for Vimeo trying to set playback rate when not allowed ## v3.0.6 * Improved the logic for the custom handlers preventing default handlers ## v3.0.5 * Removed console messages ## v3.0.4 * Fixes for fullscreen not working inside iframes * Fixes for custom handlers being able to prevent default * Fixes for controls not hiding/showing correctly on Mobile Safari ## v3.0.3 * Vimeo offset tweak (fixes #826) * Fix for .stop() method (fixes #819) * Check for array for speed options (fixes #817) * Restore as float (fixes #828) * Fix for Firefox fullscreen oddness (Fixes #821) * Improve Sprite checking (fixes #827) * Fix fast-forward control (thanks @saadshahd) * Fix the options link in the readme (thanks @DanielRuf) ## v3.0.2 * Fix for Safari not firing error events when trying to load blocked scripts ## v3.0.1 * Fix for trying to accessing local storage when it's blocked # v3.0.0 This is a massive release. A _mostly_ complete rewrite in ES6. What started out as a few changes quickly snowballed. There's many breaking changes so be careful upgrading. ### Big changes * New settings menu complete with funky animations * Ability to adjust speed of playback * Ability to toggle caption language (HTML5 and Vimeo only) * Ability to set YouTube quality (HTML5 will follow) * Added support for Vimeo captions * Added Picture-in-Picture support (Safari only) * Added AirPlay support (again, Safari only) * Added `playsinline` support for iOS 10+ * Soundcloud removed until I can work on a plugin framework * Embedded players are now progressively enhanced - no more empty `
`s! ### Other stuff * Now using SASS exclusively. Sorry, LESS folk it just made sense to maintain one method as SASS is what the cool kids use. It may come back if we work out an automated way to convert the SASS * Moved to ES6. All the rage these days. You'll need to look at polyfills. The demo uses [polyfill.io](https://polyfill.io) * Added basic looping support * Added an aspect ratio option for those that can't leave the 90s and want 4:3 * `controlshidden` and `controlsshown` events added for when the controls show or hide * `qualityrequested` and `qualitychange` events for YouTube quality control (HTML5 will follow) * Volume is now `0` to `1` as per HTML5 spec * No longer bodging a `` behind the `` to make up for WebKit's lack of lower fill styling * Captions now render with line breaks as intended * Captions now render without AJAX using the native events etc * Added a fallback for getting YouTube video data incase `.getVideoData()` disappears when one of their developers randomly deletes it again * Setup and building of the UI should be way "snappier" * Click to toggle inverted time (e.g. 0:01 or -2:59 for a 3 minute video at 1 seconds) - new `toggleInvert` and `invertTime` options * Added `autopause` option for Vimeo * Added `muted` option for you guessed it, muted playback * Restored the `.off()` API method * `.play()` will now return a promise to prevent that pesky uncaught promise issue in Chrome etc * Pressing and hold the seek bar no longer freezes all other updates of the UI ...plus loads of bug fixes. ### Breaking changes You gotta break eggs to make an omelette. Sadly, there's quite a few breaking changes: * Setup now uses proper constructor, accepts a single selector/element/node and returns a single instance - much simpler than before * Much of the API is now using getters and setters rather than methods (where it makes sense) to match the HTML5 API - see the docs for more info * The data attributes for the embeds are now `data-plyr-provider` and `data-plyr-embed-id` to prevent compatibility issues. These can be changed under `config.attributes.embed` if required * `blankUrl` -> `blankVideo` * `volume` is now `0` to `1` as per HTML5 spec * `keyboardShorcuts` (typo) is now just `keyboard` * `loop` is now `loop.active` in preparation for loop enhancements later * `html` option for custom controls removed in favour of the `controls` option which now accepts an array (to use built in controls) or a string of HTML for custom controls. * `classes` -> `classNames` * `classes.videoWrapper` -> `classNames.video` * `classes.embedWrapper` -> `classNames.embed` * `classes.ready` removed * `classes.setup` removed * `classes.muted` removed * `classes.fullscreen.active` removed in favour of the `:fullscreen` selector * `selectors.html5` removed * `selectors.embed` removed * `selectors.buttons.seek` -> `selectors.inputs.seek` * `selectors.volume.input` -> `selectors.inputs.volume` * `selectors.volume.display` -> `selectors.display.volume` * `selectors.currentTime` -> `selectors.display.currentTime` * `selectors.duration` -> `selectors.display.duration` ### Polyfilling Because we're using the fancy new ES6 syntax, you will need to polyfill for vintage browsers if you want to use Plyr and still support them. Luckily there's a decent service for this that makes it painless, [polyfill.io](https://polyfill.io). Alternatively, you can use the prebuilt polyfilled build but bear in mind this is 20kb larger. I'd suggest working our your own polyfill strategy. ## v2.0.18 * Fix for YouTube .getVideoData() issue (fixes #709) ## v2.0.17 * Vimeo controls fix (fixes #697) * SVG4everybody compatibility fix * Allow Plyr.setup event listeners to be set up as separate event listeners (https://github.com/sampotts/plyr/pull/703) * Added title to the layer html template (for custom controls) (https://github.com/sampotts/plyr/pull/649) * Target is null bug fix (https://github.com/sampotts/plyr/pull/617) * fix #684 memory leaks issues after destroy (https://github.com/sampotts/plyr/pull/700) ## v2.0.16 * Fullscreen bug fix (fixes #664) ## v2.0.15 * Demo fix ## v2.0.14 * CDN URL updates. Sorry, still working on V3 as hard as I can... ## v2.0.13 * Repo moved and Vimeo demo fix ## v2.0.12 * Ability to set custom `blankUrl` for source changes (https://github.com/sampotts/plyr/pull/504) * Ability to set caption button listener (https://github.com/sampotts/plyr/pull/468) ## v2.0.11 * Fix for `cleanUp` being called twice (thanks to @sebastiancarlsson) * Fix for YouTube controls on iPad (fixes #391) ## v2.0.10 * Added seek event fixes for Vimeo and YouTube (fixes #409) * Added support for embed URLs rather than ID only (fixes #345) ## v2.0.9 * Temporary patch for the YouTube API issues with `getDuration()` (relates to #374) ## v2.0.8 * Added `isPaused()` API method (thanks to @darrena092) * Allowed `.on()` API method to be chainable (thanks to @gurupras) (fixes #357) * Improved the "awful" rendering of captions on small screens in fullscreen mode (fixes #390) * Fix for Firefox VTT compatibility (thanks to @magourex) * Fix for Firefox Developer Edition blank video due to `-webkit-mask-image` issue (fixes #392) * Added Issue and PR templates with the aim of reducing duplicate or duff issues ## v2.0.7 * Fixed `getCurrentTime()` method (fixes #351) * Added `getVolume()` , `isMuted()` and `getDuration()` API methods (fixes #346) ## v2.0.6 * Fixed merge issue with `Updated define to work with AMD imports #326` PR * Code formatting ## v2.0.5 * Fix for Vimeo in IE9 & IE10 * Fix for HTML5 elements not firing `ready` event ## v2.0.4 * Fix for Firefox full screen (fixes #343) ## v2.0.3 * Set 'global' keyboard shortcut option to false as default, added `