aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/captions.js
Commit message (Collapse)AuthorAgeFilesLines
* update from upstreamHEADmasterJesús2022-02-111-1/+3
|
* v3.6.3 (#2016)Sam Potts2020-11-141-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Fix linting issuesSam Potts2020-04-241-0/+2
|
* Merge branch 'develop' into css-variablesSam Potts2020-04-241-1/+13
|\ | | | | | | | | | | | | | | | | # Conflicts: # src/js/captions.js # src/js/config/defaults.js # src/js/fullscreen.js # src/js/listeners.js # src/js/plyr.js
| * This commit addresses preloading TextTracks as outlined in feature request #1791Som Meaden2020-04-231-1/+13
| | | | | | | | | | | | These changes bring Plyr captions download behaviour in line with that of the default video element in major browsers. Specifically text tracks only download as they are required for display. Previously all text tracks would download when the Plyr instance was instantiated - which could become an issue when e.g. many translations are available. For a track to be downloaded it must either be the default track, the active track when captions are toggled on, or selected from the captions menu.
* | Converted to 2 space indentationSam Potts2020-04-111-351/+351
|/
* Merge branch 'develop' of github.com:sampotts/plyr into developSam Potts2020-03-291-1/+5
|\ | | | | | | | | | | # Conflicts: # package.json # yarn.lock
| * Fix issue when controls config is string or elementCzBiX2020-02-171-1/+2
|/
* Clean upSam Potts2019-06-211-1/+2
|
* Linting changesSam Potts2019-06-011-4/+2
|
* FormattingSam Potts2019-04-251-12/+17
|
* Moved i18n to utilsSam Potts2018-08-131-1/+1
|
* Fix #1153: Captions language fallbackAlbin Larsson2018-08-121-5/+2
|
* LintingSam Potts2018-08-011-1/+3
|
* Add navigator.languages fallback for ios 9Albin Larsson2018-07-091-1/+1
|
* Fix captions.toggle() if there is no toggle buttonAlbin Larsson2018-06-211-2/+4
|
* Merge branch 'develop' into a11y-improvementsSam Potts2018-06-171-86/+180
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # 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-10/+24
| |
| * Fix captions.toggle orderAlbin Larsson2018-06-161-9/+9
| |
| * Captions: Handle uppercase input (like before)Albin Larsson2018-06-161-5/+6
| |
| * Merge pull request #1034 from friday/remove-array-newline-ruleSam Potts2018-06-151-8/+4
| |\ | | | | | | Suggestion: Remove array newline rule
| | * Remove line breaks in arraysAlbin Larsson2018-06-131-8/+4
| | |
| * | Add 'passive' flag to internal captions methods to avoid overriding user ↵Albin Larsson2018-06-151-54/+101
| | | | | | | | | | | | preferences, support multiple browser languages (get first match) and improve comments
| * | Move internal event listeners for captions with direct handling in the ↵Albin Larsson2018-06-141-2/+19
| | | | | | | | | | | | captions object
| * | Move toggleCaption internals to captions objectAlbin Larsson2018-06-141-1/+23
| |/
| * Merge branch 'develop' of github.com:sampotts/plyr into developSam Potts2018-06-131-5/+5
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # 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
| | * remove event listeners in destroy, add once methodcky2018-06-121-2/+2
| |/ |/|
| * Utils broken down into seperate files and exportsSam Potts2018-06-131-51/+49
|/
* Fix #1017, fix #980, fix #1014: Captions rewrite (use index internally)Albin Larsson2018-06-101-56/+114
|
* Avoid condition in getTracksAlbin Larsson2018-06-101-7/+4
|
* Fix #1003: Formatted captions issueAlbin Larsson2018-06-101-1/+1
|
* Merge captions setText and setCue into updateCues (fixes #998 and vimeo ↵Albin Larsson2018-06-081-48/+33
| | | | cuechange event)
* Defer initial captions update to next tick, to avoid event being triggered ↵Albin Larsson2018-05-281-2/+2
| | | | to early
* Change to using addtrack and removetrack listeners since 'change' didn't ↵Albin Larsson2018-05-281-1/+1
| | | | trigger in firefox for embedded captions (may also be a hls.js issue)
* Replace browser language detection in defaults.js with explicit 'auto' optionAlbin Larsson2018-05-281-1/+5
|
* Ensure language is set in case the track is added after initialization, and ↵Albin Larsson2018-05-281-13/+8
| | | | trigger languagechange event when language is initially set
* Add option to watch caption track changes and update language optionsAlbin Larsson2018-05-281-0/+5
|
* Optimize captions code reused and ensure captionsenabled/captionsdisabledAlbin Larsson2018-05-281-44/+20
| | | | will be sent on initial setup
* Reduce circular dependenciesSam Potts2018-05-191-1/+1
|
* v3.3.0Sam Potts2018-05-061-2/+2
|
* Don't require captions toggle button to be enabled in order to show captionsAlbin Larsson2018-04-171-5/+0
|
* Fixed bug for captions with no srclang and labels and improved logic (fixes ↵Sam Potts2018-04-171-1/+45
| | | | #875)
* Fix IE CORS captionsSam Potts2018-02-191-2/+33
|
* Fix for custom controlsSam Potts2018-02-131-3/+3
|
* Merge pull request #780 from friday/captions-ie11-indexsizeerrorSam Potts2018-02-061-1/+2
|\ | | | | Fix harmless but annoying IE error 'IndexSizeError'
| * Fix harmless but annoying IE error 'IndexSizeError'Albin Larsson2018-02-061-1/+2
| |
* | Readme mergeSam Potts2018-02-061-1/+1
|/
* Converted to SASS/SCSSSam Potts2017-12-201-1/+4
|
* IE & Edge fixes, Storage & Console classesSam Potts2017-12-081-13/+18
|
* Vimeo captions fixSam Potts2017-11-231-2/+2
|