1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-14 11:23:30 +02:00
video.js/docs/guides
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
..
audio-tracks.md docs: fix links in generated docs (#4200) 2017-03-21 17:13:06 -04:00
components.md feat: playerresize event in all cases (#4864) 2018-01-30 13:26:21 -05:00
debugging.md feat: add support for debug logging (#4780) 2017-12-14 17:31:51 -05:00
embeds.md docs: fix some typos (#4880) 2018-01-22 17:07:05 -05:00
event-target.md docs: updates to faq, language guide, and minor edits (#4556) 2017-08-14 17:02:48 -04:00
faq.md docs: updates to faq, language guide, and minor edits (#4556) 2017-08-14 17:02:48 -04:00
hooks.md feat: Add videojs.hookOnce method to allow single-run hooks. (#4672) 2017-10-30 17:56:21 -04:00
languages.md docs: updates to faq, language guide, and minor edits (#4556) 2017-08-14 17:02:48 -04:00
middleware.md docs(middleware): update the middleware guide with setTech and other corrections (#4926) 2018-02-12 18:55:08 -05:00
modal-dialog.md docs: fix links in generated docs (#4200) 2017-03-21 17:13:06 -04:00
options.md feat: Allow techs to change poster if player option techCanOverridePoster is set (#4921) 2018-03-07 14:31:50 -05:00
player-workflows.md docs: updates to faq, language guide, and minor edits (#4556) 2017-08-14 17:02:48 -04:00
plugins.md docs(plugins guide): changed paused to pause where appropriate (#4957) 2018-02-14 13:43:55 -05:00
react.md docs(react guide): update guide to prevent memory leaks when components are disposed of (#4998) 2018-03-07 12:09:06 -05:00
setup.md feat: Add getPlayer method to Video.js. (#4836) 2018-01-30 11:19:06 -05:00
skins.md chore(docs): Documentation Linting and TOC generation (#3841) 2016-12-20 16:55:59 -05:00
tech.md feat: Allow techs to change poster if player option techCanOverridePoster is set (#4921) 2018-03-07 14:31:50 -05:00
text-tracks.md docs: fix some typos (#4880) 2018-01-22 17:07:05 -05:00
tracks.md docs: fix links in generated docs (#4200) 2017-03-21 17:13:06 -04:00
troubleshooting.md docs: fix links in generated docs (#4200) 2017-03-21 17:13:06 -04:00
video-tracks.md docs: fix links in generated docs (#4200) 2017-03-21 17:13:06 -04:00
videojs.md docs: updates to faq, language guide, and minor edits (#4556) 2017-08-14 17:02:48 -04:00
webpack.md docs: updates to faq, language guide, and minor edits (#4556) 2017-08-14 17:02:48 -04:00