- Ability to set custom
blankUrl
for source changes (sampotts#504) - Ability to set caption button listener (sampotts#468)
- Fix for
cleanUp
being called twice (thanks to @sebastiancarlsson) - Fix for YouTube controls on iPad (fixes #391)
- Added seek event fixes for Vimeo and YouTube (fixes #409)
- Added support for embed URLs rather than ID only (fixes #345)
- Temporary patch for the YouTube API issues with
getDuration()
(relates to #374)
- 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
- Fixed
getCurrentTime()
method (fixes #351) - Added
getVolume()
,isMuted()
andgetDuration()
API methods (fixes #346)
- Fixed merge issue with
Updated define to work with AMD imports #326
PR - Code formatting
- Fix for Vimeo in IE9 & IE10
- Fix for HTML5 elements not firing
ready
event
- Fix for Firefox full screen (fixes #343)
- Set 'global' keyboard shortcut option to false as default, added
<textarea>
to editable elements to be ignored
- Added 'global' keyboard shortcut option
- Version bump for NPM (sorry for folks who upgraded to the now deleted v1.9.0 through NPM)
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).- 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 tosetup()
the references to all instances would have been added to the container, creating issues. I would recommend using the return value fromsetup()
or the newget()
method to access the instance. - Players will always be wrapped in their own div now - this makes
setup()
anddestroy()
cleaner. This may break any custom styling based on DOM position. - Players no longer seek to 0 on 'ended' - this is to fix a bug with Microsoft Edge as it triggers 'ended' on media change for whatever reason. They'll never change ;-)
And some other changes and bug fixes:
- New
get()
method on the global plyr object to get all instances inside a container - New API methods:
getOriginal()
to get the original, unmodified element plyr was setup on (<video>
,<audio>
or empty<div>
for YouTube and Vimeo)getContainer()
to get the players outer wrapper elementgetMedia()
to get the players media element (<video>
,<audio>
or empty<div>
for YouTube and Vimeo)getEmbed()
to access the YouTube or Vimeo API directlygetType()
to get the type of the playerisReady()
to determine if an instance has completed setup and necessary APIs are loaded (for YouTube / Vimeo)on()
to provide an easy way to listen to eventsstop()
to, you guessed it, stop the player
destroy()
now works correctly for YouTube and Vimeo (fixes #272)- New
destroyed
event whendestroy()
has completed (original element is passed as event.target) - Default volume is now 10 (max) rather than 5
- Sprite is only loaded once (fixes #259)
- Fixes for Vimeo post message bugs on source change or destroy (fixes #318)
- Save caption state in storage (fixes #311)
- Added keyboard shortcuts to the current focused player (with
keyboardShortcuts
boolean option to disable) (fixes #309) - Fix for captions bug (fixes #332)
- Change to AMD (fixes #298)
- Vimeo keyboard focus fix (Fixes #317)
- Fix for Vimeo on basic support devices
- Fix for keyboard navigation on Vimeo (Fixes #317)
- Fix for bug introduced in v1.8.9 related to additional controls
- Vimeo API upgrade
- Fix for YouTube bug introduced in v1.8.9
- Added support for passing array to .setup() (Fixes #319)
- Fix for seek issues introduced in v1.8.9
- Fix for fullscreen not being defined (Fixes #295)
- Fix for multiline captions (Fixes #314)
- Clean up of type checks and fix for
restart()
(Fixes #315) - Fix for
MEDIA_ERR_SRC_NOT_SUPPORTED
when calling.source()
API method
- Added getCurrentTime API method (fixes #292)
- Fix for !hideControls on touch devices (fixes #303)
- Line height fix
- Reverted font size change
- Fixed overflow issues (fixes #286)
- Fix for large play button on small videos
- Disabled iPad support for YouTube and Vimeo due to iOS limitations with iFrame playback
- Fixed IE11 icon loading (fixes #269)
- Updated screenshot (fixes #281)
- Added WordPress plugin (fixes #239)
- Added Neos plugin
- Added HLS, Shaka and dash.js examples (see #235 for more)
- Improvements for controls hiding and showing on touch devices
- Fixed event bubbling
- Fixed inaccurate log message
- (Important)
setup()
now returns the element Plyr was setup on rather than theplyr
object. This meansvar player = plyr.setup()[0];
would now bevar player = plyr.setup()[0].plyr;
. This improves support for React and other virtual dom frameworks as mentioned in #254 - Fixed using a relative URL for
iconUrl
in IE (fixes #269)
- SASS cleanup (fixes #265)
- Docs tidy up to help quick start (fixes #253)
- Fix for issues with data attribute options passing (fixes #257)
- (Important) Removed the requirement for a wrapper div to setup Plyr and removed the dependency on the
plyr
classname as a JS hook. By default it will now look for<video>
,<audio>
and[data-type]
elements. If you are just callingsetup()
with a<div class="plyr">
you may want to give it a good test after upgrading. You can probably remove the wrapper div. The reason behind this is to make setup easier for newcomers and prevent the styling being used on unsupported players (because the plyr classname was used as a CSS and JS hook - which isn't ideal) - Renamed the 'docs' folder to
demo
to avoid confusion - the readme is the docs after all
- Fix for multiple sprites being requested (fixes #259)
- Fix for scroll direction issues on volume control (fixes #258)
- Reduced rounding of seek value from 1 decimal point to 4 (fixes #242)
- Added
disableContextMenu
option to hide the right click context menu (fixes #248 and #225)
- Always hide standard controls (fixes #225)
- Fix for Tooltips overflowing (fixes #230)
- Restore scroll position when exiting full screen (fixes #236)
- SVG sprite loading automatically for an easier setup
- Touch devices now show controls on touch rather than pausing playback
- Decreased sensitivity and inverted scroll on volume slider (scroll up to increase, down to decrease)
- Fix for undefined buffer error
- Add scroll listener on volume slider (PR #227 bty @igoradamenko)
- Fix for Vimeo fullscreen (fixes #214)
- Changed default icon prefix from 'icon' to 'plyr' to avoid clashes
- Added 'latest' CDN option
- Renamed
sprite.svg
toplyr.svg
to be inline with the other package files
- Fix for bug introduced in v1.6.7
- Fixes for using
source
API method on iOS
- Icons cleaned up
- IE11 button fix for tooltips (fixes #210)
- IE UI bug fixes
- Bug fix for undefined progress bar
- Seek back to 0 for all media on ended
- Check for HTML5 video on ended reload
- Update to docs for
showPosterOnEnd
option
- Fix for tooltip displaying when duration is not set (fixes #177)
showPosterOnEnd
option to show poster when HTML5 video ended (fixes #59)- Error handler for YouTube (fixes #189)
- Initial SoundCloud support (fixes #194)
- Other minor bug fixes
- Tooltip changes for accessibility
- New, cleaner, UI:
- Controls are now overlaid, maintaining the video's ratio and making sizing easier
- A large play button can now be overlaid over videos
- Default number of control buttons reduced
- New play, pause, rewind and fast forward icons
- Flexbox all the things!
- Tidied up the LESS (and SCSS) as part of the above, variables and mixins in seprate files amking customization and upgrades easier
- Toggle mute bug fix; if a player was muted previously and the user refreshed, unmuting would have meant volume was still zero (effectively muted), now the config default value is used. Not ideal but good for now
- New
iconUrl
option allowing specifying a same origin SVG sprite location. Loading this way means you don't need the AJAX sprite loading JavaScript click
option renamed toclickToPlay
to make it a bit more self explanatory. Unfortunately cross origin SVG sprites is not supported in any browser yet :-(hideControls
is now a global option, rather than being exclusive to fullscreen. Controls are now hidden after 2 seconds of no mouse movement. Controls are always shown when media is paused or stopped. This is defaulted to true.sass
folder insrc
renamed from toscss
- Bug fix for embeds:
play
not being defined (fixes #185 and #186)
- Bug fix for autoplay option
- Fix for accessing
embed
property afterready
event fired
- Added 'ready' event for initial setup complete or source change occurs
- Fixed SASS stylesheet references to transparentize
- Added default font stack to controls
- Docs fixes inc controls HTML (fixes #180)
- Expose YouTube and Vimeo API (docs update required) (fixes #176)
- Auto set title based on YouTube getVideoData() title property
- Bug fix for Vimeo API change (Uncaught TypeError: Cannot read property 'value' of undefined) due to a change their end
- Cancel requests on source change (fixes #174)
- Fix for CustomEvent polyfill and related bug (see #172)
- Volume storage fix (fixes #171)
- Fix for manual caption rendering
- Added a duration option to pass the duration of the file
- Added the ability to set options per element by setting a data-plyr attribute on the target elements (this might be useful for the duration option for example)
- Fixes for Chrome and Safari caption rendering, they now use the default texttrack and cuechange events
- Firefox bug fix for event not defined
- iOS embed bug fixes (fixes #166)
- Hide IE/Edge tooltip (since we have a styled one) (fixes #160)
- SASS bug fix for default values (fixes #158)
- NPM bug fixes
- Fix for touch device seek tooltip
- Seek improvements
- Fix for control tooltips always showing
- Seek tooltip (option for tooltips changed, please check docs)
- SASS compile error fixes (fixes #148)
- Fullscreen fixes for controls not always hiding/showing (fixes #149)
- Screen reader icon fixes (title was being read twice due to the tooltip/hidden label)
- Fixed controls.md example
- Bug fix for docs error page
- Bug fix for controls tooltips
- Minor bug fix for clicking video to play/pause after source change
- Minor bug fix for occasional display of 0:00 as the media duration
handlers
option renamed tolisteners
- Added event listeners for all types to the plyr container (playback, fullscreen, captions etc - see docs)
- Removed onSetup config option (use the 'setup' event instead, plyr element is event.plyr)
- Style bug fixes
- Vimeo seek bug fix (requires whole seconds when seeking)
- Fix for fullscreen player (using class hook, not browser fullscreen)
- Fix for event listeners being duplicated on source change
- Vimeo support (fixes #8)
- New options for initialization (you can now pass a selector, HTMLElement or NodeList) (fixes #118)
- Switched to BEM methodology (you will need to change CSS and probably HTML)
- Decoupled CSS and JS hooks (fixes #129)
- Custom controls container (fixes #98)
- Fix for private/incognito mode local storage bug (fixes #131)
- UMD module setup (fixes #121)
- Specify iframe title for Vimeo and YouTube (fixes #124)
- Better handling of mission controls (fixes #132)
- Retain classname on source change (fixes #120)
- Increased thumb size on seek (partially fixes #130)
- Passing no argument to
source
api method, now returns current source (by @gurupras) - Ability to add custom handlers to controls prior to Plyr bindings (by @gurupras)
- Keyboard navigation improvements (focus on seek, focus trap in fullscreen) (fixes #135)
- Fixed bug with API use on basic supported browsers
- Code cleanup by @calvintam236
- Removed captions being read by screen readers
- Voiceover fix for captions
- ARIA improvements for captions being read
- Internationalization support (i18n) using default controls (required markup changes to controls)
- ARIA enhancements for controls (required markup changes to controls)
- Captions legibility improvements
- YouTube bug fixes
- SASS updates and fixes (cheers @ChristianPV)
- Fix for YouTube quality (let them decide quality)
- Fix for omitted kind attribute on (fixes #88)
- Fix for YouTube on iPhone or unsupported browsers (fallback to YouTube native)
- Docs tidy up
- Fullscreen for Safari fix (fixes #96)
- Fix for :focus keyboard vs mouse (fixes #61)
- Fix for caption positioning in full screen (fixes #92)
- Tooltip bug fix
- Added YouTube support
- Added icon prefix option for when using default controls
- Logic tweaks for hiding controls in fullscreen
- Bug fix for Chrome Canary
- Bug fix
- Bug fix
- Bug fix for 1.1.8
- setVolume API method improvements (fixes #83)
- Restore classname on destroy()
- New API methods (fixes #77), Fix for non strict mode (fixes #78)
- Fix for incorrect
isFullscreen()
return value in Mozilla (fixes #38)
- Minor bug fixes
- Fixes for random id used in controls with multiple instances and one call to setup
- Audio player UI improvements
- Added an onSetup callback option
- Added fullscreen API methods
toggleFullscreen()
(must be user iniated), andisFullscreen()
- Fix for unsupported browser handling
- Fix for config.controls having no effect
- Added config option to set which controls are shown (if using the default controls html) and better handling of missing controls
- Display duration on
metadataloaded
- Fixed bug with media longer than 60 minutes (fixes #69)
- Added option to hide controls on fullscreen (default
true
) while palying, after 1s. Pause, mouse hover on progress, or focus on a child control re-shows the controls. On touch a tap of the video (which plays/pauses the video by default) is required. (fixes #47) - Fixed a bug with caption toggle in 1.0.28
- Added API support for browsers that don't have full plyr support (pretty much <=IE9 and
<video>
on iPhone/iPod)
- Keyboard accessibility improvements (fixes #66)
- Fixes for SASS (cheers @brunowego)
- Indentation reset to 4 spaces
- Fixes for iOS volume controls (hidden)
- Classnames for left/right controls changed
- Added tooltip option to display labels as tooltips (fixes #50)
- Handling loading states in the UI (fixes #36)
- Added support() API method for checking mimetype support
- Added source() API method for setting media source(s) (fixes #44)
- Added poster() API method for setting poster source
- Refactored captions logic for manual captions
- Added an for seeking to improve experience (and support dragging) (fixes #40, #42)
- Icons for restart and captions improved (and some IDs changed) (fixes #49)
- Default controls included (Fixes #45)
- Volume changes on
input
as well aschange
(fixes #43) - Fix for undefined Play text
- License changed to MIT
- Fixed firefox fullscreen issue (fixes #38)
- Added CDN references
- SASS support added (thanks to @brunowego)
- Docs completely separated to avoid any confusion
- New gulp tasks (will add more documentation for this)
- Aria label is now dynamic
- Fix for seek time display in controls
- More documentation for controls html
- Minor change for bootstrap compatibility
- Minor tweaks
- Handle native events (issue #34)
- Bug fixes for fullscreen mode
- Bower includes src files now
- Folder re-arrangement
- Added buffer progress bar
- Fixed Safari 8 caption track (it needs to be removed from the DOM like in Safari 7)
- Added validation (it works or it doesn't basically) of the
html
option passed
- Bug fix
- Storing user selected volume in local storage
- Fullscreen fallback for older browsers to use "full window"
- More minor bug fixes and improvements
- Fixed caption legibility issues
- Minor bug fixes
- Added OGG to example for Firefox
- Fixed IE11 fullscreen issues
- Bug fixes for IE (as per usual)
- Added CSS hooks for media type
- Return instances of Plyr to the element
- Initial release