mirror of
https://github.com/videojs/video.js.git
synced 2024-12-02 09:11:54 +02:00
8706941573
The option for the player techCanOverridePoster is introduced in this commit. It allows techs to update the post whenever they like. isPosterFromTech_ is introduced as a private player field in order to track when a poster was set by a tech. This allows us to clear the poster whenever the tech is disposed of by the player. Additionally, attempting to set the same poster more than once will have no effect / no changes will be made, since the poster is the same. This was done in order to stop triggering multiple posterchange events when calling player.poster(aPoster) with techCanOverridePoster set to true. When a tech is disposed and a poster was set by it, unset the poster. Pass a `canOverridePoster` option to techs to know whether techCanOverridePoster was set. Fixes #4910. |
||
---|---|---|
.. | ||
api | ||
require | ||
unit | ||
globals-shim.js | ||
index.html | ||
karma.conf.js |