When both the media URL and the poster return a response other than 200.
The media error is overwritten by an empty error, leaving the player in an inconsistent state.
- add a condition to `handleTechError_` to ensure that the `error` is truthy
- add a test case
Fixes#8409
* chore(package): Update VHS version
* get rid of kaios 2 from browserlist
* get rid of kaios 2
* get rid of op_mob 64
---------
Co-authored-by: Dzianis Dashkevich <ddashkevich@brightcove.com>
* Added the createNewLogger method, to create a logger without a naming chain.
* Added optional custom delimiter and custom styles.
* Several improvements in jsDoc for proper types(d.ts) generation.
---------
Co-authored-by: Dzianis Dashkevich <ddashkevich@brightcove.com>
Uses the same color as defined by the `color` property of the `video-js` class to apply to `svg icons` for easy customization
- set `fill` property to `currentColor`
Co-authored-by: mister-ben <git@misterben.me>
* fix(svg-icons): icon size consistency
The icons have been regenerated from the svg files in `videojs/font` to ensure consistency in size.
- update icons.svg file
* fix(svg-icons): default height and width in css
Uses the same reference value from the font size of `font icons` to define the default height and width of `svg icons`
* fix(big-play-button): default height and width of svg icon
Uses the same size as the big-play-button font size and centers the svg icon
* fix(volume-control): default height and width of svg icon
Uses the same size as the `volume-level` font size and
centers the svg icon for both horizontal and vertical display
* fix(volume-control): mouse-display overlaps the volume-level svg icon
* fix(play-progress): default height and width of svg icon
Uses the same size as the `play-progress` font size and removes the hover effect
* fix(subtitles-button): default height and width of svg icon
Uses the same size as the `subtitles button` font size
When an error occurs, only the error screen should be displayed to maintain visual consistency.
- Hides the Title Bar
- Hides the Loading Spinner
- Hides the Captions Settings
- Hides the Text Track Display
Svg play icon is missing when player is initialized with class `vjs-has-started`.
- add `setIcon` to the `play-toggle` component constructor
Fixes#8336
Updating cache_.currentTime as soon as the currentTime is set avoids having to wait for the timeupdate event, which results in:
- making cache_.currentTime more reliable
- updating the progress bar on mouse up after dragging when the media is paused.
See also: #6232, #6234, #6370, #6372