aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/html5.js
Commit message (Collapse)AuthorAgeFilesLines
* update from upstreamHEADmasterJesús2022-02-111-1/+1
|
* [general]: fix w3c change 'size' to 'data-res'Jesús2021-08-091-3/+3
|
* v3.6.3 (#2016)Sam Potts2020-11-141-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Converted to 2 space indentationSam Potts2020-04-111-124/+124
|
* silence all internal play promisesydylla2020-03-231-1/+2
|
* Speed settings logic improvementsSam Potts2020-02-101-2/+4
|
* Merge pull request #1672 from ydylla/improve-quality-changeSam Potts2020-02-081-4/+2
|\ | | | | Improve/fix quality change state restoring
| * preserve playback rate at quality changeydylla2020-02-011-1/+2
| |
| * fix regression: not restoring playback state after quality changeydylla2020-02-011-3/+0
| |
* | Ignore quality change if it matches existingSam Potts2020-02-081-0/+4
|/
* HTML5 poster fixes for multiple downloadsSam Potts2020-01-211-0/+4
|
* Manually merged PR #1607Sam Potts2020-01-141-30/+40
|
* Aspect ratio tweaksSam Potts2019-06-031-2/+4
|
* Linting changesSam Potts2019-06-011-3/+2
|
* Aspect ratio improvements (fixes #1042, fixes #1366)Sam Potts2019-04-121-0/+4
|
* Fix for error when mime type not specified (fixes #1274)Sam Potts2018-12-081-2/+11
|
* Only save quality setting when it's updated by the user. Fixes bug in html5 ↵Robin van Nunen2018-09-291-3/+0
| | | | player where it would override the settings if the current video does not support the given quality.
* Removed YouTube quality controlsSam Potts2018-08-131-0/+3
|
* Fixes #1044: Don't load the new source if preload is disabled and the ↵Albin Larsson2018-06-191-11/+13
| | | | current source hasn't been loaded
* Replace filter()[0] with find()Albin Larsson2018-06-191-1/+1
|
* Merge branch 'develop' of github.com:sampotts/plyr into developSam Potts2018-06-131-63/+22
|\ | | | | | | | | | | | | | | | | | | | | | | # 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
| * Merge pull request #1029 from cky917/developSam Potts2018-06-131-2/+1
| |\ | | | | | | remove event listeners in destroy()
| | * remove event listeners in destroy, add once methodcky2018-06-121-2/+1
| | |
| * | fix: html5.cancelRequest not remove source tag correctlyBoHong Li2018-06-121-1/+1
| |/
| * Move uniqueness filter from getQualityOptions to setQualityMenuAlbin Larsson2018-06-121-4/+1
| |
| * Trigger qualityrequested event unconditionally when trying to set it (needed ↵Albin Larsson2018-06-121-5/+0
| | | | | | | | for streaming libraries to be able to listen)
| * Filter out unsupported mimetypes in getSources() instead of the quality setterAlbin Larsson2018-06-121-9/+9
| |
| * Assure type safety in getSources() and getQualityOptions() (always return ↵Albin Larsson2018-06-111-42/+11
| | | | | | | | arrays), and remove external conditions and type conversion no longer needed
* | Utils broken down into seperate files and exportsSam Potts2018-06-131-13/+16
|/
* Wait for the metadata to be loaded before setting the currentTimePhilip Giuliani2018-05-311-3/+7
|
* HTML5 quality selectionSam Potts2018-04-021-0/+146