mirror of
https://github.com/videojs/video.js.git
synced 2025-01-21 11:02:08 +02:00
29a8ee1d60
Middleware factories currently get run each time a source is set. Because middleware are assocated with a player, the factories should only run once per player. This PR fixes it so that we associate a middleware instance with a middleware factory per player. Each time a player is disposed, we will clear the cache of the middleware instances for that player. Fixes #4677.