Fix poster with pending lives
This commit is contained in:
parent
fa7a022e01
commit
2a69a02527
|
@ -123,6 +123,13 @@ export class PeerTubePlayer {
|
||||||
}
|
}
|
||||||
|
|
||||||
setPoster (url: string) {
|
setPoster (url: string) {
|
||||||
|
// Use HTML video element to display poster
|
||||||
|
if (!this.player) {
|
||||||
|
this.options.playerElement().poster = url
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// Prefer using player poster API
|
||||||
this.player?.poster(url)
|
this.player?.poster(url)
|
||||||
this.options.playerElement().poster = ''
|
this.options.playerElement().poster = ''
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue