1
0
mirror of https://github.com/videojs/video.js.git synced 2024-11-24 08:42:25 +02:00
video.js/sandbox
BrainCrumbz 6221a8f078
fix(middleware): cache grows even if no middleware created (#8674)
## Description
See issue #8653 

## Specific Changes proposed
When in `middleware.js` the function `clearCacheForPlayer` runs, before
setting a value to null in middlware caches, it checks if the key exists
in the first place.

## Requirements Checklist
- [x] Feature implemented / Bug fixed
- [x] If necessary, more likely in a feature request than a bug fix
- [x] Change has been verified in an actual browser (Chrome, Firefox,
IE)
  - [ ] Unit Tests updated or fixed
  - [ ] Docs/guides updated
- [x] Example created ([starter template on
JSBin](https://codepen.io/gkatsev/pen/GwZegv?editors=1000#0))
- [ ] Reviewed by Two Core Contributors

---------

Co-authored-by: Giuseppe Piscopo <g.piscopo@braincrumbz.com>
Co-authored-by: mister-ben <git@misterben.me>
2024-07-06 07:44:37 +01:00
..
autoplay-tests.html.example chore(sandbox): switch all urls to https (#6946) 2020-11-16 15:13:27 -05:00
combined-tracks.html.example docs: Remove Flash (#6994) 2020-12-22 14:10:53 -05:00
debug.html.example ignore: update @videojs/http-streaming to 3.0 release candidate (#7884) 2022-11-23 09:49:30 -05:00
descriptions.html.example docs: Remove Flash (#6994) 2020-12-22 14:10:53 -05:00
docpip.html.example feat: Add document picture-in-picture support (#8113) 2023-04-04 16:44:16 -04:00
double-sub-video.html.example docs: Remove Flash (#6994) 2020-12-22 14:10:53 -05:00
embeds.html.example chore(sandbox): update embeds media to use public url (#7530) 2021-11-16 12:20:01 -05:00
focus-visible.html.example docs: Remove Flash (#6994) 2020-12-22 14:10:53 -05:00
hls.html.example chore(sandbox): switch all urls to https (#6946) 2020-11-16 15:13:27 -05:00
hotkeys.html.example chore(sandbox): switch all urls to https (#6946) 2020-11-16 15:13:27 -05:00
icons.html.example feat: add skip forward/backward buttons (#8147) 2023-03-06 09:51:59 +00:00
index.html.example feat: add a new title bar component (#7788) 2022-11-23 09:49:25 -05:00
language.html.example feat(lang): use less ambiguous text for the fullscreen button when in fullscreen mode (#7856) 2022-11-23 09:49:25 -05:00
live.html.example chore(sandbox): switch all urls to https (#6946) 2020-11-16 15:13:27 -05:00
liveui.html.example chore(sandbox): switch all urls to https (#6946) 2020-11-16 15:13:27 -05:00
load-media.html.example feat: add a new title bar component (#7788) 2022-11-23 09:49:25 -05:00
middleware-instances.html.example fix(middleware): cache grows even if no middleware created (#8674) 2024-07-06 07:44:37 +01:00
middleware-play.html.example docs: Remove Flash (#6994) 2020-12-22 14:10:53 -05:00
noUITitleAttributes.html.example feat: Remove references and logic related to Flash and SWF (#7852) 2022-11-23 09:49:26 -05:00
pip-disabled.html.example chore(sandbox): switch all urls to https (#6946) 2020-11-16 15:13:27 -05:00
plugin.html.example docs: Remove Flash (#6994) 2020-12-22 14:10:53 -05:00
quality-levels.html.example feat: add support for a list of quality levels (#7897) 2022-11-23 09:49:32 -05:00
responsive.html.example chore(sandbox): switch all urls to https (#6946) 2020-11-16 15:13:27 -05:00
shadow-dom.html.example fix(shadow-dom): prevent warning 'element supplied is not included' (#8192) 2023-06-06 17:24:30 -04:00
skip-buttons.html.example feat: add skip forward/backward buttons (#8147) 2023-03-06 09:51:59 +00:00
svg-icons-enabled.html.example feat: Add useSVGIcons option (#8260) 2023-06-12 13:31:06 -05:00
svg-icons.html.example feat: Add useSVGIcons option (#8260) 2023-06-12 13:31:06 -05:00
transient-button.html.example feat: Adds a transient button component (#8629) 2024-07-06 07:40:31 +01:00
userAction-click.html.example feat: Add userAction.click to prevent pause/play when player is clicked (#7495) 2021-11-10 14:06:25 -05:00
vertical-volume.html.example chore(sandbox): switch all urls to https (#6946) 2020-11-16 15:13:27 -05:00