1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-02 09:11:54 +02:00
video.js/test
Michael Vogel 8706941573 feat: Allow techs to change poster if player option techCanOverridePoster is set (#4921)
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.
2018-03-07 14:31:50 -05:00
..
api feat: playerresize event in all cases (#4864) 2018-01-30 13:26:21 -05:00
require @gkatsev added tests for webpack and browserify bundling and node.js requiring. closes #3558 2016-08-24 16:32:05 -04:00
unit feat: Allow techs to change poster if player option techCanOverridePoster is set (#4921) 2018-03-07 14:31:50 -05:00
globals-shim.js test: fix tests (#3953) 2017-01-19 11:17:46 -05:00
index.html test: fix tests (#3953) 2017-01-19 11:17:46 -05:00
karma.conf.js chore(package): update dependencies (#4908) 2018-01-30 11:18:04 -05:00