aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/captions.js
Commit message (Collapse)AuthorAgeFilesLines
* Linting changesSam Potts2020-11-141-13/+13
|
* 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
|
* Moved to provider + type to make it cleaner in future, fix for multiple playersSam Potts2017-11-231-3/+3
|