1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-06 06:50:51 +02:00
video.js/docs
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
..
examples chore: Fix examples and docs and some links (#4279) 2017-05-11 17:16:12 -04:00
guides feat: Allow techs to change poster if player option techCanOverridePoster is set (#4921) 2018-03-07 14:31:50 -05:00
legacy-docs docs: deploy docs using netlify (#4774) 2017-12-04 17:42:07 -05:00
index.md docs: updates to faq, language guide, and minor edits (#4556) 2017-08-14 17:02:48 -04:00
translations-needed.md fix: Add alternate text to the loading spinner. (#4916) 2018-02-22 16:19:35 -05:00