1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-21 11:02:08 +02:00
Gary Katsevman 29a8ee1d60
fix: cache middleware instances per player (#4939)
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.
2018-02-12 17:30:27 -05:00
..
2017-01-26 22:04:34 -05:00
2017-01-19 17:29:09 -05:00