aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/listeners.js
Commit message (Collapse)AuthorAgeFilesLines
* update from upstreamHEADmasterJesús2022-02-111-1/+3
|
* fix: fullscreen issues with Vimeo (fixes #2175)Sam Potts2021-05-121-45/+41
|
* fix: use bound arrow functions in classesSam Potts2020-12-201-16/+16
|
* v3.6.3 (#2016)Sam Potts2020-11-141-38/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Merge branch 'develop' into css-variablesSam Potts2020-04-241-2/+12
|\ | | | | | | | | | | | | | | | | # Conflicts: # src/js/captions.js # src/js/config/defaults.js # src/js/fullscreen.js # src/js/listeners.js # src/js/plyr.js
| * convert fullscreen children listeners logic to ~ES6Som Meaden2020-04-041-5/+5
| | | | | | | | remove gulp serve shortcut
| * This is a PR to allow for contextual content to be included in fullscreen ↵Som Meaden2020-04-041-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (or fallback) mode. This means arbitrary elements (extensions to the basic player UI) can be overlaid and remain visible when the player switches to fullscreen. Example use-cases include: - display of video title or other metadata (see the included demo) - alternative access to menu items, such as a searchable captions list (in cases where many hundreds of languages are available) - custom share dialogs - integrated playlists with 'playing next' overlays This approach / PR is just an example of how this feature could work and aims to keep Plyr complexity to a minimum (while enabling some fairly interesting integrations). It utilises a single config option, and does away with the need for injecting bespoke APIs or elements into the player context on a per-project basis. Or trying to mess with what is a pretty slick, but tightly coupled system. For the user: A new `fullscreen.container` attribute is used to provide a container selector. The container must be an ancestor of the player, otherwise it's ignored. When toggling fullscreen mode, this container is now used in place of the player. Hovering over any children of the container is the same as hovering over the controls. The exception is where the player and the child share a common ancestor (that's not the fullscreen container) ... sounds complex but it's not. You can also gain pretty fine control this way with pointer events. Under the hood: it adds a `utils/elements/closest` helper method to find the right ancestor. If found this is returned as the fullscreen target in place of the player container. Fullscreen is instantiated slightly earlier in the setup so this container is available for the `listeners.controls` call. In here we add some more 'mouseenter/mouseleave' listeners to any direct descendants of the container, that aren't also ancestors of the player. And that's it. No extra classes, nothing else. There are some style changes to the demo (top margin on the player) but these would be project specific. Thanks for reading.
* | Vimeo ratio fixesSam Potts2020-04-191-11/+14
| |
* | Converted to 2 space indentationSam Potts2020-04-111-783/+783
|/
* Added prettier scriptSam Potts2020-03-291-4/+23
|
* silence all internal play promisesydylla2020-03-231-5/+6
|
* Merge pull request #1490 from antonyoneill/developSam Potts2020-02-091-5/+12
|\ | | | | Prevent default on settings control click
| * Prevent default on settings icon clickAntony O'Neill2019-07-041-5/+12
| |
* | fix scrubbing for chrome android & hide thumb preview on touchendydylla2020-02-081-1/+1
| | | | | | Chrome android sends TouchEvent which does not have a button property.
* | Fix buildSam Potts2020-01-141-1/+1
| |
* | Remove logic to hide/show volume controls based on audio trackSam Potts2020-01-141-7/+0
| |
* | Comment clean upSam Potts2020-01-131-2/+3
| |
* | Merge pull request #1570 from felipedeboni/ie11-resetonend-fixSam Potts2020-01-131-0/+2
|\ \ | | | | | | Prevents IE11 with resetOnEnd option set to true to play video again
| * | Prevents IE11 with resetOnEnd option set to true to play video againFelipe K. De Boni2019-09-161-0/+2
| |/
* / fix: Fix handling listener return valueJimmy Jia2019-09-251-1/+1
|/
* Aspect ratio tweaksSam Potts2019-06-031-2/+7
|
* Removed commented out code for EdgeSam Potts2019-06-021-8/+0
|
* Clean upSam Potts2019-06-011-2/+2
|
* Linting changesSam Potts2019-06-011-13/+6
|
* Ratio improvementsSam Potts2019-04-251-2/+2
|
* Fix issue with setGutter callSam Potts2019-04-131-1/+1
|
* Set download URL via setterSam Potts2019-04-121-1/+1
|
* Aspect ratio improvements (fixes #1042, fixes #1366)Sam Potts2019-04-121-4/+4
|
* Ads bug fixesSam Potts2019-02-011-14/+0
|
* Fix listeners for preview thumbs when changing sourceSam Potts2019-01-291-0/+36
|
* Fullscreen fixesSam Potts2019-01-141-6/+73
|
* Updated restart logic to call play instead of togglePlayGuru Prasad Srinivasa2018-12-081-1/+1
|
* Replaced calls to player.restart() and player.togglePlay() with proxy(...) ↵Guru Prasad Srinivasa2018-11-191-3/+3
| | | | to ensure that custom handlers are called
* Additional listener for checking for audio tracksSam Potts2018-11-081-1/+1
|
* Merge branch 'develop' of github.com:sampotts/plyr into developSam Potts2018-10-241-0/+3
|\
| * Prevent immediate hiding of controls on mobileJames2018-10-231-0/+3
| |
* | Allow custom download URL (for streaming, etc)Sam Potts2018-10-241-1/+1
|/
* Added download buttonSam Potts2018-09-281-2/+17
|
* Don't hide controls on focusout eventJames2018-09-261-18/+14
| | | | It was immediately hiding controls on some touch-enabled devices. It will now also wait 4s to close after tabbing out, instead of immediately.
* TypoSam Potts2018-09-251-1/+1
|
* Clean upSam Potts2018-09-251-1/+1
|
* Fix touch vs click issueSam Potts2018-09-251-12/+7
|
* Fix for setting pressed property of undefined (Fixes #1102)Sam Potts2018-08-131-1/+1
|
* Removed YouTube quality controlsSam Potts2018-08-131-6/+0
|
* Fix issue where enter key wasn’t setting focus correctlySam Potts2018-08-051-5/+14
|
* Escape closes menuSam Potts2018-08-011-53/+65
|
* LintingSam Potts2018-08-011-284/+94
|
* Comments about keydown vs keyup for FirefoxSam Potts2018-08-011-1/+10
|
* Fix Firefox spacebar issueSam Potts2018-08-011-14/+9
|
* Make iOS range fix more universalSam Potts2018-07-301-6/+11
|