In my setup, I am dynamically generating the jpeg ready poster and mp4 video. The poster is created before the video, since ffmpeg is able to output the jpeg before having enough data to create mp4 segments. I am unable to get the readyPoster to show because the video player seems to be in an errored state due to Video element error (code 4): MEDIA_ELEMENT_ERROR: Empty src attribute. It will show the error poster in that case
Kevin analyzed it afterwards and figured out it was caused by this if-statement in the mounted event handler:
// should this be an error???
if (!this.getProperty("url")) {
this.videoPlaybackProblem = true
}
Changing it to this.videoPlaybackProblem = false solves the problem. But then I get the ready poster if no url has been defined and autoplay is false, which is not correct (because then no video playback is possible)...
Test feedback from Kevin:
Kevin analyzed it afterwards and figured out it was caused by this if-statement in the
mounted
event handler:Changing it to
this.videoPlaybackProblem = false
solves the problem. But then I get the ready poster if no url has been defined and autoplay is false, which is not correct (because then no video playback is possible)...