If we upload a video, close the upload modal and insert the new video from. the Media Library, the video poster will not be able to show up.
The video poster should be able to show up as expected.

_Do not alter or remove anything below. The following sections will be managed by moderators only._
Dang, yet another video poster bug 馃槥
Any findings so far?
Once poster "reset" is fixed, this can probably be P3.
So what's happening is basically this:
useContextValueProvider.js sees the new video and generates & uploads a postergetResourceFromMediaPicker() looks for), so the logic in useContextValueProvider.js tries to generate a poster again, but skips early because the video is already in the "processed" list.Nice investigation.
Once poster "reset" is fixed, this can probably be P3.
Nevermind, "reset" doesn't actually force-regenerate the poster.
@zidianlyu As discussed: to catch other possible causes for "missing poster", let's add a check on video insertion into the page that the poster is not undefined and log it (e.g. throwing a JS error should be surfaced in GA).
Most helpful comment
So what's happening is basically this:
useContextValueProvider.jssees the new video and generates & uploads a poster_(so far so good)_
At this point, the media modal will have partially stale data, because opening the modal does not currently reload media from the server.
This is a known issue with the WP media modal that haven't found a workaround for so far.
getResourceFromMediaPicker()looks for), so the logic inuseContextValueProvider.jstries to generate a poster again, but skips early because the video is already in the "processed" list.