Able Player v4.7.0
Styling
- New default theme with modernized layout and variables for colors.
- This summarizes a large number of individually small changes to the layout and styling of Able Player elements.
- Removed somes instances of positioning imposed from JS so positioning is more controllable from CSS.
- Significant improvements to responsive design and behaviors.
- Removed fixed width and height set on big play button.
- Make big play button partially transparent.
Features
- Add support for synchronized sign language sourced from YouTube
- Allow modal dialogs to be closed by clicking on the modal overlay.
- Support toggling the transcript area when using a pre-defined transcript area.
- Allow non-standard support for single character hours value in VTT timestamp formats.
Bug fixes
- Fix window resizing issue in sign language windows.
- Reset scroll position after closing fullscreen to prevent unexpected shift of position.
- Remove deprecated
modestbrandingparameter from YouTube player params. - Add
originproperty to YouTube player params. - Reduce fullscreen timeout from 1000ms to 100ms. Ensures the resize method executes when leaving fullscreen quickly.
- Track active media so focus is sent to correct player after refreshing controls.
- Change modal dialog positioning to fixed to prevent unexpected shifts of position.
- Properly disable
transcriptwithdata-include-transcript="false" - Cookie referred to wrong variable when setting sign language data.
- Prevent scrolling of background content when modals are active.
- Allow the audio description text panel to show when there is both a VTT and a described video.
- Handle
data-skinset to invalid value. - Prevent floating windows from being positioned above the top of the viewport.
- Ensure last block of captions in transcript are wrapped in
.able-transcript-block. - Use
outerHeightin several places whereheightwas used so calculations account for whole element height. - Fix unwanted lines generated in lyrics mode.
- Verify the target transcript div exists before setting the external div flag.
- Support the default value for the
kindattribute onsourcewhen omitted. - Method to closePopups ran on every click, rather than only when popups were opened.
- Classname replacement in processing VTT tags replaced spaces with
.instead of the reverse. Props @jeanem.
Accessibility
- Ensure all Able Player controls meet WCAG SC 2.5.8 by being a minimum of 24px by 24px.
- Make visible alerts dismissible
- Extend default period of visibility for expiring alerts to 20 seconds.
- Improve accessibility of draggable containers when using a screen reader. More predictable keyboard handling & audible feedback.
Internationalization
- Change all translation files from JS containing a JSON object to
.json. Fallback to .js files if JSON sources not found. - Add
msandplto list of supported languages. - Add several new strings to translation files. (Translations needed.)
Build tools & Code clean up
- Change
ableplayer.dist.jsbuild to remove comments, reducing the dist file size by about 150Kb. - Simplify if/else statements. Use ternary or swithc where appropriate or collapse arguments.
- Reformat if/else statements to remove line breaks before
else. - Remove
$ableColumnLeft- unused and unidentified variable. - Remove unneeded -moz and -mix prefixed fullscreen properties.
- Only create a single alertBox container and move in DOM as needed instead of managing three separate containers.
- Add new prototype to set the text for buttons.
- Add new prototype to set icons for buttons.
- Make use of existing
ucfirstprototype. - Remove
number.isIntegerpolyfill (already unused). - Remove tests for
svgsupport. - Remove remaining IE compatibility supports.
- Replace
e.whichwithe.key. - Remove obsolete Safari keycodes.
- Add prototype for syncing sign language video.
- Remove unused prototype
AblePlayer.prototype.isCloseToCorner. - Remove unused
mediaTypeargument from AccessibleSlider prototype.
What's Changed
- Bump form-data from 4.0.2 to 4.0.4 by @dependabot[bot] in #651
- VTT parsing - Allow hour section that isn't 2 digits by @richard-smith-preservica in #645
- Merge develop into main for beta 1 release. by @joedolson in #664
- Merge main back into develop. by @joedolson in #665
- Update gh pages by @joedolson in #666
- fix for regex in the postprocessCTag function by @jeanem in #679
- Merge Develop into Main by @joedolson in #683
- Merge main into gh-pages by @joedolson in #684
- Merge develop into main pre-release. by @joedolson in #685
- Bump tar-fs from 3.0.9 to 3.1.1 by @dependabot[bot] in #686
- Develop by @joedolson in #687
- Develop by @joedolson in #688
Full Changelog: v4.6.0...v4.7.0