aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/ui.js
Commit message (Collapse)AuthorAgeFilesLines
* update from upstreamHEADmasterJesús2022-02-111-2/+5
|
* v3.6.3 (#2016)Sam Potts2020-11-141-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* v3.6.1Sam Potts2020-04-281-1/+1
|
* Migrate custom properties from media to parentSam Potts2020-04-231-0/+20
|
* Poster image fix (fixes #1763)Sam Potts2020-04-191-6/+1
|
* Converted to 2 space indentationSam Potts2020-04-111-259/+254
|
* Ensure poster image is not downloaded again for HTML5 videosSam Potts2020-02-141-0/+5
|
* HTML5 poster fixes for multiple downloadsSam Potts2020-01-211-0/+2
|
* ♿️(controls) change play button aria-label value when its state changeManuel Raynaud2019-08-071-0/+1
| | | | | | | The aria-label attribute set on all play buttons does not change according the player state. When the video is playing, the aria-label should change to pause otherwise screen reader will not detect that this button now can be used to pause the video.
* File rename and clean upSam Potts2019-06-211-1/+1
|
* Linting changesSam Potts2019-06-011-4/+11
|
* Fix setting initial speed (fixes #1408)Sam Potts2019-04-121-12/+17
|
* Prevent immediate hiding of controls on mobileJames2018-10-231-2/+5
|
* Moved i18n to utilsSam Potts2018-08-131-1/+1
|
* Fix issue with play button not changing state (fixes #1048)Sam Potts2018-06-191-10/+6
|
* v3.3.15Sam Potts2018-06-181-3/+5
|
* Merge branch 'develop' into a11y-improvementsSam Potts2018-06-171-52/+68
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # dist/plyr.js # dist/plyr.js.map # dist/plyr.min.js # dist/plyr.min.js.map # dist/plyr.polyfilled.js # dist/plyr.polyfilled.js.map # dist/plyr.polyfilled.min.js # dist/plyr.polyfilled.min.js.map # src/js/controls.js # src/js/fullscreen.js # src/js/plyr.js # src/js/ui.js # src/js/utils.js
| * 120 line width, package upgradeSam Potts2018-06-171-27/+34
| |
| * Respect call order and prioritize public API calls for setting poster, in ↵Albin Larsson2018-06-151-26/+37
| | | | | | | | order to avoid race conditions
| * Remove line breaks in arraysAlbin Larsson2018-06-131-4/+1
| |
| * Merge branch 'develop' of github.com:sampotts/plyr into developSam Potts2018-06-131-2/+2
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # src/js/captions.js # src/js/controls.js # src/js/fullscreen.js # src/js/html5.js # src/js/listeners.js # src/js/plugins/youtube.js # src/js/plyr.js # src/js/utils.js
| * | Utils broken down into seperate files and exportsSam Potts2018-06-131-35/+35
| |/
* | WIPSam Potts2018-06-111-3/+0
| |
* | Merge branch 'develop' into a11y-improvementsSam Potts2018-06-091-2/+10
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | # 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 # dist/plyr.polyfilled.js.map # dist/plyr.polyfilled.min.js # dist/plyr.polyfilled.min.js.map # src/js/captions.js # src/js/plyr.js
| * Merge pull request #981 from friday/hls-captionsSam Potts2018-05-301-2/+4
| |\ | | | | | | Improve captions handling for streaming
| | * Fix typoAlbin Larsson2018-05-281-1/+1
| | |
| | * Optimize captions code reused and ensure captionsenabled/captionsdisabledAlbin Larsson2018-05-281-2/+4
| | | | | | | | | | | | will be sent on initial setup
| * | Call duration update method manually if user config has durationAlbin Larsson2018-05-291-0/+6
| |/
* / WIPSam Potts2018-05-281-12/+13
|/
* Merge pull request #963 from friday/verify-posterSam Potts2018-05-191-9/+35
|\ | | | | Make sure poster element isn't shown if the image isn't loaded
| * Youtube poster: Set css backgroundSize to 'cover' for padded youtube thumbnailsAlbin Larsson2018-05-151-2/+7
| |
| * Rewrite ui.setPoster to check that images arent broken or youtube fallback ↵Albin Larsson2018-05-151-9/+30
| | | | | | | | images. Only show poster element when valid
* | Merge pull request #967 from friday/883Sam Potts2018-05-191-23/+10
|\ \ | | | | | | toggleControls rewrite
| * | toggleControls() rewriteAlbin Larsson2018-05-181-4/+14
| | |
| * | Remove ui.checkFailed() and error classAlbin Larsson2018-05-161-23/+0
| |/
* / Reduce circular dependenciesSam Potts2018-05-191-138/+2
|/
* v3.3.5Sam Potts2018-05-061-1/+6
|
* v3.3.0Sam Potts2018-05-061-3/+35
|
* v3.2.4Sam Potts2018-04-271-7/+2
|
* HTML5 quality selectionSam Potts2018-04-021-2/+2
|
* Muted and autoplay fixes, small bug fixesSam Potts2018-03-301-0/+3
|
* Fixes for fast forward and issues with event.preventDefault()Sam Potts2018-03-271-2/+3
|
* Added buffered getterSam Potts2018-03-171-15/+1
|
* Vimeo fixSam Potts2018-03-151-2/+1
|
* Event listener fixes, loadScript promise, ads tweaksSam Potts2018-03-111-2/+2
|
* Ready event fix, YouTube play event fix, docs updateSam Potts2018-03-031-1/+3
|
* Pause button fix, polyfilled build, unminified buildsSam Potts2018-02-171-4/+2
|
* Fix for custom controlsSam Potts2018-02-131-6/+0
|
* Fullscreen API changes, color settings tweaksSam Potts2018-02-111-4/+0
|
* Bug fixSam Potts2018-01-221-1/+1
|