aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plugins/youtube.js
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* v3.6.3 (#2016)Sam Potts2020-11-141-32/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Poster image fix (fixes #1763)Sam Potts2020-04-191-1/+1
|
* Converted to 2 space indentationSam Potts2020-04-111-395/+395
|
* Speed settings logic improvementsSam Potts2020-02-101-1/+3
|
* #615: updates to vimeo and youtube plugins to ensure that loading classes ↵Dustin Harrell2019-09-231-0/+6
| | | | are added as content is buffering
* File rename and clean upSam Potts2019-06-211-2/+2
|
* Clean upSam Potts2019-06-011-25/+14
|
* Merge branch 'develop' of github.com:sampotts/plyr into developSam Potts2019-06-011-16/+24
|\
| * fix youtube embed + handle early destroyAlexander Farkas2019-05-241-1/+1
| |
| * fix youtube embed + handle early destroyAlexander Farkas2019-05-241-15/+23
| |
* | Linting changesSam Potts2019-06-011-6/+3
|/
* Ratio improvementsSam Potts2019-04-251-28/+19
|
* Merge branch 'master' into developSam Potts2019-04-121-1/+14
|\ | | | | | | | | # Conflicts: # readme.md
| * code cleanupVladimir Morozov2019-04-041-2/+2
| |
| * code cleanupVladimir Morozov2019-04-041-10/+2
| |
| * fixed setting youtube host for non-https caseVladimir Morozov2019-04-041-1/+17
| |
* | Fix YouTube autoplay (fixes #1185)Sam Potts2019-04-121-1/+1
|/
* Update poster srcArslan Javed2019-03-071-1/+1
|
* TweaksSam Potts2019-01-261-20/+20
|
* Fullscreen fixesSam Potts2019-01-141-7/+2
|
* Update youtube.jsSam Potts2019-01-061-1/+0
|
* remove commentOmar Khatib2018-12-131-1/+1
|
* support Youtube noCookie ModeOmar Khatib2018-12-131-0/+2
|
* Removed YouTube quality controlsSam Potts2018-08-131-54/+0
|
* Merge pull request #1131 from friday/1108Sam Potts2018-07-291-0/+4
|\ | | | | Make sure youtube.onReady doesn't run twice
| * Fix #1108: Make sure youtube.onReady doesn't run twiceAlbin Larsson2018-07-281-0/+4
| |
* | Add support for YouTube's hl paramLéo Renaud-Allaire2018-07-241-0/+1
|/
* Linting, housekeeping, duration fix (fixes #1074)Sam Potts2018-06-291-10/+10
|
* Fix #1045: YouTube mutes when seeking after playAlbin Larsson2018-06-191-2/+2
|
* 120 line width, package upgradeSam Potts2018-06-171-8/+12
|
* Merge pull request #1039 from friday/poster-race-conditionsSam Potts2018-06-171-3/+9
|\ | | | | Fix poster race conditions
| * Respect call order and prioritize public API calls for setting poster, in ↵Albin Larsson2018-06-151-2/+3
| | | | | | | | order to avoid race conditions
| * Copy poster when creating new media element for YouTube and Vimeo (needed ↵Albin Larsson2018-06-151-1/+6
| | | | | | | | for #1018)
* | Replace switch in YouTube error handler with object literalAlbin Larsson2018-06-151-39/+15
|/
* Remove line breaks in arraysAlbin Larsson2018-06-131-4/+1
|
* Merge branch 'develop' of github.com:sampotts/plyr into developSam Potts2018-06-131-74/+39
|\ | | | | | | | | | | | | | | | | | | | | | | # 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
| * Trigger qualityrequested event unconditionally when trying to set it (needed ↵Albin Larsson2018-06-121-9/+1
| | | | | | | | for streaming libraries to be able to listen)
| * Simplify logic in youtube.mapQualityUnit (not that it matters much now)Albin Larsson2018-06-121-45/+19
| |
* | Utils broken down into seperate files and exportsSam Potts2018-06-131-44/+60
|/
* Fix problem with YouTube and Vimeo seeking while playingAlbin Larsson2018-06-111-1/+4
|
* Fix #921: Trigger seeked event in youtube plugin if either playing or pausedAlbin Larsson2018-05-191-6/+11
|
* Fix #876: YouTube and Vimeo autoplays on seekAlbin Larsson2018-05-191-28/+30
|
* Fix playback state (paused) and events (play/pause)Albin Larsson2018-05-191-10/+16
|
* Youtube poster: Set css backgroundSize to 'cover' for padded youtube thumbnailsAlbin Larsson2018-05-151-1/+7
|
* Rewrite ui.setPoster to check that images arent broken or youtube fallback ↵Albin Larsson2018-05-151-1/+7
| | | | images. Only show poster element when valid
* v3.3.0Sam Potts2018-05-061-3/+6
|
* Restore paused state after seekSam Potts2018-04-111-0/+8
|
* YouTube speed menu fixSam Potts2018-04-031-2/+1
|
* HTML5 quality selectionSam Potts2018-04-021-13/+70
|