Set videojs poster on player ready

Resolves Github issue #870
This commit is contained in:
Xaekai 2022-01-26 20:52:47 -08:00 committed by Calvin Montgomery
parent 1790d5b569
commit 517058bef3
1 changed files with 1 additions and 0 deletions

View File

@ -119,6 +119,7 @@ window.VideoJSPlayer = class VideoJSPlayer extends Player
@player.ready(=> @player.ready(=>
# Have to use updateSrc instead of <source> tags # Have to use updateSrc instead of <source> tags
# see: https://github.com/videojs/video.js/issues/3428 # see: https://github.com/videojs/video.js/issues/3428
@player.poster(data.meta.thumbnail)
@player.updateSrc(@sources) @player.updateSrc(@sources)
@player.on('error', => @player.on('error', =>
err = @player.error() err = @player.error()