aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plugins/vimeo.js
Commit message (Collapse)AuthorAgeFilesLines
* update from upstreamHEADmasterJesús2022-02-111-8/+29
|
* fix: aspect ratio improvements (#2171)Sam Potts2021-04-181-2/+2
| | | | - Use CSS aspect-ratio (retain fallback for legacy browsers) - Round aspect ratios (fixes YouTube black border issue)
* chore: lintingSam Potts2021-04-171-1/+4
|
* add all required props to vimeo iframe allow attribute - fixes #2151didrip2021-03-241-1/+1
|
* v3.6.4 (#2089)Sam Potts2021-01-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 * Remove unnecessary calc from media query (#2049) * Enhance types (#1841) * 🏷️(type) enhance QualityOptions type Some optional properties in the QualityOptions were missing. The forced and onChange property allwoing to use an external handler. * ♻️(type) use Plyr.Provider for the readonly provider property A type exists to define all available providers. This type isn't used in the Plyr class definition and the same provider list is also defined. This code is refactored to use the Plyr.Provider type * 🏷️(type) add missing elements property in Plyr class In Plyr class, you can access elements set in cache. This property is missing in the class definition. The Plyr.Elements is for now incomplete. * FIX - object values for the providers must be used (#2053) To make use of the provider configuration, the objects values must be used. * Fix to work inside iframes. (#2069) * Fix to work inside iframes. Right now Plyr fails to load inside iframes because the selectors are not instances of Element (iframes have their own, separate globals). This is an alternative method to check isElement that will work inside iframes. This is battle-tested fallback code used before browsers supported HTMLElement. * Update is.js * Added --plyr-video-background for having control over the background of a video with alpha channel (webm) or a poster image with alpha channel. (#2076) * Fix issue with not entering iosfullscreen of vimeo videos with playsi… (#2038) * Fix issue with not entering iosfullscreen of vimeo videos with playsinline=true * Use isVimeo-function instead of hardcoded value Co-authored-by: Julian Frosch <julian.frosch@gmail.com> * fix: use new syntax for iframe allow attribute * Bump ini from 1.3.5 to 1.3.7 (#2044) Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7. - [Release notes](https://github.com/isaacs/ini/releases) - [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore: package updates * chore: add @babel/plugin-proposal-class-properties * fix: use bound arrow functions in classes * chore: cleanup commented out code * chore: release 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> Co-authored-by: Naomi <naomizuiverloon@gmail.com> Co-authored-by: Manuel Raynaud <manu@raynaud.io> Co-authored-by: syteknet-core <github.core@sytek.net> Co-authored-by: Andre Gagnon <ajgagnon@uwalumni.com> Co-authored-by: Nepomuk Leutschacher <864660+nepomuc@users.noreply.github.com> Co-authored-by: Elias Saalmann <lordon@users.noreply.github.com> Co-authored-by: Julian Frosch <julian.frosch@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* v3.6.3 (#2016)Sam Potts2020-11-141-29/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* vimeo oembed apiBenny7392020-09-231-11/+5
|
* Poster image fix (fixes #1763)Sam Potts2020-04-191-2/+2
|
* Vimeo ratio fixesSam Potts2020-04-191-23/+29
|
* Converted to 2 space indentationSam Potts2020-04-111-369/+369
|
* Formatting fixesSam Potts2020-03-301-7/+10
|
* catch error in setPlaybackRate on VimeoHugues2020-02-201-0/+3
|
* Speed settings logic improvementsSam Potts2020-02-101-6/+11
|
* Added vimeo options to hide controls and set referrerPolicySam Potts2020-02-101-6/+9
|
* Clean up speed options logicSam Potts2020-02-081-6/+0
|
* #615: updates to vimeo and youtube plugins to ensure that loading classes ↵Dustin Harrell2019-09-231-0/+8
| | | | are added as content is buffering
* File rename and clean upSam Potts2019-06-211-1/+1
|
* Linting changesSam Potts2019-06-011-2/+0
|
* Ratio improvementsSam Potts2019-04-251-1/+1
|
* Set download URL via setterSam Potts2019-04-121-3/+3
|
* Aspect ratio improvements (fixes #1042, fixes #1366)Sam Potts2019-04-121-1/+1
|
* TweaksSam Potts2019-01-261-13/+15
|
* Adds options for vimeo plugin #1316Christian Gambardella2019-01-241-5/+5
| | | | This adds replaces hard coded vimeo options with options that can be passed to the Plyr instance when initializing.
* Fullscreen fixesSam Potts2019-01-141-43/+6
|
* Fix for Vimeo fullscreen with non 16:9 aspect ratiosSam Potts2018-11-081-3/+20
|
* Added download buttonSam Potts2018-09-281-1/+2
|
* Linting, housekeeping, duration fix (fixes #1074)Sam Potts2018-06-291-10/+10
|
* Respect call order and prioritize public API calls for setting poster, in ↵Albin Larsson2018-06-151-1/+1
| | | | order to avoid race conditions
* Copy poster when creating new media element for YouTube and Vimeo (needed ↵Albin Larsson2018-06-151-1/+4
| | | | for #1018)
* Remove line breaks in arraysAlbin Larsson2018-06-131-6/+3
|
* Merge branch 'develop' of github.com:sampotts/plyr into developSam Potts2018-06-131-17/+17
|\ | | | | | | | | | | | | | | | | | | | | | | # 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-36/+62
|/
* Merge pull request #1015 from friday/captions-fixes-againSam Potts2018-06-111-8/+3
|\ | | | | Captions rewrite (use index internally to support missing or duplicate languages)
| * Merge captions setText and setCue into updateCues (fixes #998 and vimeo ↵Albin Larsson2018-06-081-8/+3
| | | | | | | | cuechange event)
* | Merge pull request #1020 from friday/1016Sam Potts2018-06-111-0/+8
|\ \ | | | | | | Vimeo: Update playback state and assure events are triggered on load
| * | Vimeo: Assure state is updated with autoplay (fixes #1016)Albin Larsson2018-06-111-0/+8
| |/
* / Fix problem with YouTube and Vimeo seeking while playingAlbin Larsson2018-06-111-3/+7
|/
* Fix #876: YouTube and Vimeo autoplays on seekAlbin Larsson2018-05-191-20/+20
|
* Fix playback state (paused) and events (play/pause)Albin Larsson2018-05-191-13/+14
|
* Rewrite ui.setPoster to check that images arent broken or youtube fallback ↵Albin Larsson2018-05-151-5/+2
| | | | images. Only show poster element when valid
* Vimeo options, docs for multiple playersSam Potts2018-05-081-1/+4
|
* Use div for poster, Vimeo fixes, Tooltip fixesSam Potts2018-05-081-1/+2
|
* v3.3.0Sam Potts2018-05-061-4/+23
|
* ARIA and Vimeo fixesSam Potts2018-04-181-1/+12
|
* More bug fixesSam Potts2018-04-171-3/+13
|
* Vimeo hotfixSam Potts2018-03-291-3/+9
|
* Bug fixesSam Potts2018-03-281-4/+13
|
* Vimeo offset tweak (fixes #826)Sam Potts2018-03-221-1/+1
|
* Fix for .stop() method (fixes #819)Sam Potts2018-03-221-4/+2
|
* Event listener fixes, loadScript promise, ads tweaksSam Potts2018-03-111-3/+8
|