aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/controls.js
Commit message (Collapse)AuthorAgeFilesLines
* v3.6.3 (#2016)Sam Potts2020-11-141-27/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * force fullscreen events to trigger on plyr element (media element in iOS) and not fullscreen container * Fixing "missing code in detail" for PlyrEvent type When using typescript and listening for youtube statechange event, it is missing the code property definition inside the event (even though it is provided in the code). By making events a map of key-value, we can add easily custom event type for specific event name. Since YouTube "statechange" event differs from the basic PlyrEvent, I added a new Event Type "PlyrStateChangeEvent" having a code property corresponding to a YoutubeState enum defined by the YouTube API documentation. This pattern follows how addEventListener in the lib.dom.d.ts is defined. * Update link to working dash.js demo (was broken) * Fix PreviewThumbnailsOptions type According to the docs, the `src` should also accept an array of strings. * fix issue #1872 * Check if key is a string before attempt --plyr checking * Fix for Slow loading videos not autoplaying * Fix for Slow loading videos not autoplaying * Network requests are not cancelled after the player is destroyed * Fix for apect ratio problem when using Vimeo player on mobile devices (issue #1940) * chore: update packages and linting * Invoke custom listener on triggering fullscreen via double-click * Fix volume when unmuting from volume 0 * adding a nice Svelte plugin that I found * Add missing unit to calc in media query * Assigning player's lastSeekTime on rewind/fast forward to prevent immediate controls hide on mobile * Fix youtube not working when player is inside shadow dom * v3.6.2 * ESLint to use common config * add BitChute to users list * Fix aspect ratio issue * Revert noCookie change * feat: demo radius tweaks * fix: poster image shouldn’t receive click events * chore: package updates * chore: linting * feat: custom controls option for embedded players * Package upgrades * ESLint to use common config * Linting changes * Update README.md * chore: formatting * fix: revert pointer events change for poster * fix: hack for Safari 14 not repainting Vimeo embed on entering fullscreen * fix: demo using custom controls for YouTube * doc: Add STROLLÿN among the list of Plyr users * Fixes #2005 * fix: overflowing volume slider * chore: clean up CSS * fix: hide poster when not using custom controls * Package upgrades * ESLint to use common config * Linting changes * chore: revert customControls default option (to prevent breaking change) * docs: changelog for v3.6.3 Co-authored-by: Som Meaden <som@theprojectsomething.com> Co-authored-by: akuma06 <demon.akuma06@gmail.com> Co-authored-by: Jonathan Arbely <dev@jonathanarbely.de> Co-authored-by: Takeshi <iwatakeshi@users.noreply.github.com> Co-authored-by: Hex <hex@codeigniter.org.cn> Co-authored-by: Syed Husain <syed.husain@appspace.com> Co-authored-by: Danielh112 <Daniel@sbgsportssoftware.com> Co-authored-by: Danil Stoyanov <d.stoyanov@corp.mail.ru> Co-authored-by: Guru Prasad Srinivasa <gurupras@buffalo.edu> Co-authored-by: Stephane Fortin Bouchard <stephane.f.bouchard@gmail.com> Co-authored-by: Zev Averbach <zev@averba.ch> Co-authored-by: Vincent Orback <hello@vincentorback.se> Co-authored-by: trafium <trafium@gmail.com> Co-authored-by: xansen <27698939+xansen@users.noreply.github.com> Co-authored-by: zoomerdev <59863739+zoomerdev@users.noreply.github.com> Co-authored-by: Mikaël Castellani <mikael.castellani@gmail.com> Co-authored-by: dirkjf <d.j.faber@outlook.com>
* allow custom control as elementtaylorchu2020-04-281-4/+2
|
* Converted to 2 space indentationSam Potts2020-04-111-1623/+1621
|
* Completely hide SVG icons to screen readersBenoît Burgener2020-02-251-1/+1
| | | | SVG icons should be ignored by screen readers since they have complimentary labels (aria-label or plyr__sr-only). The current « presentation » role simply makes the element behave like a « span » which is incorrect, aria-hidden prevents screen readers from taking care of these elements at all.
* Speed settings logic improvementsSam Potts2020-02-101-8/+3
|
* Set download attribute for HTML5 onlySam Potts2020-02-091-1/+5
|
* Clean up speed options logicSam Potts2020-02-081-11/+7
|
* Merge pull request #1671 from ydylla/improve-speed-optionsSam Potts2020-02-081-0/+2
|\ | | | | Use the configured speed options
| * actually use the configured speed optionsydylla2020-02-011-0/+2
| |
* | add download attribute to download buttonCode11102020-02-071-0/+1
|/
* Manually merge PR #1629Sam Potts2020-01-141-2/+4
|
* Merge pull request #1505 from nskazki/detach-event-listeners-on-destroySam Potts2020-01-131-5/+7
|\ | | | | Detach event listeners on destroy
| * Detach event listeners on destroynskazki2019-07-191-5/+7
| | | | | | | | | | if "on" receives "this", it attaches "eventListeners" array to "this" and stores "{ element, type, callback }" hash in there. later, during the destruction process, all the entries from this array will be processed by "unbindListeners" helper to detach all the event listeners.
* | Fix linting issuesSam Potts2020-01-131-4/+1
|/
* File rename and clean upSam Potts2019-06-211-1/+1
|
* Linting changesSam Potts2019-06-011-21/+31
|
* Fix for the menu in the shadow DOMSam Potts2019-04-251-16/+4
|
* Merge branch 'develop' of github.com:sampotts/plyr into developSam Potts2019-04-251-2/+4
|\
| * Don't close menu on click in menu in webcomponentEmiel Beinema2019-04-151-1/+3
| |
| * Use querySelector on container for showMenuPanelEmiel Beinema2019-04-151-1/+1
| |
* | Fix for className being wiped outSam Potts2019-04-251-250/+284
|/
* Set download URL via setterSam Potts2019-04-121-3/+3
|
* Merge branch 'develop' of github.com:sampotts/plyr into developSam Potts2019-02-191-1/+1
|\
| * Merge pull request #1 from robertkraig/defect/update-progress-element-axe-errorRobert Kraig2019-01-301-1/+1
| |\ | | | | | | Updating accessibility attribute to progressbar
| | * Updating accessibility attribute to progressbarRobert Kraig2019-01-301-1/+1
| | | | | | | | | aXe complains this is a non-compatible attribute to be set as `role="presentation"`
* | | Added RangeTouch, updated Shr lib in demoSam Potts2019-02-191-0/+4
|/ /
* / Fullscreen fixesSam Potts2019-01-141-7/+22
|/
* Calling customized controls function with proper argumentsRaccoon2018-11-121-1/+1
|
* Allow custom download URL (for streaming, etc)Sam Potts2018-10-241-10/+12
|
* Fix SVG issue for older browsers (fixes #1191)Sam Potts2018-10-241-2/+3
|
* Added download buttonSam Potts2018-09-281-48/+91
|
* Reverted large pause buttonSam Potts2018-09-251-3/+0
|
* Fix touch vs click issueSam Potts2018-09-251-0/+3
|
* Fix for nodeList as buttonsSam Potts2018-08-141-2/+2
|
* Fix play/pause button stateSam Potts2018-08-141-10/+18
|
* Fix for controls missing (fixes #1161)Sam Potts2018-08-141-11/+13
|
* Fix for pressed property missing with custom controls (Fixes #1062)Sam Potts2018-08-131-12/+17
|
* Moved mute button inside plyr__volumeSam Potts2018-08-131-27/+30
|
* Moved i18n to utilsSam Potts2018-08-131-1/+1
|
* Fix issue where enter key wasn’t setting focus correctlySam Potts2018-08-051-14/+32
|
* Rounded aria-valuetext to 1 decimal placeSam Potts2018-08-051-1/+1
|
* Removed aria-labelled-bySam Potts2018-08-051-2/+0
|
* Only focus button if menu wasn’t hidden alreadySam Potts2018-08-011-2/+3
|
* Escape closes menuSam Potts2018-08-011-21/+26
|
* LintingSam Potts2018-08-011-308/+87
|
* Merge branch 'develop' into a11y-improvementsSam Potts2018-08-011-14/+12
|\ | | | | | | | | # Conflicts: # src/js/controls.js
| * Improve handling of the 'controls' argumentAlbin Larsson2018-07-311-11/+12
| |
* | Comments about keydown vs keyup for FirefoxSam Potts2018-08-011-0/+2
| |
* | Fix Firefox spacebar issueSam Potts2018-08-011-134/+391
| |
* | Merge branch 'develop' into a11y-improvementsSam Potts2018-07-301-6/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # demo/dist/demo.css # dist/plyr.css # dist/plyr.js.map # dist/plyr.min.js # dist/plyr.min.js.map # dist/plyr.polyfilled.js.map # dist/plyr.polyfilled.min.js # dist/plyr.polyfilled.min.js.map # package.json # src/js/plyr.js