poster
The first frame preview image plug-in,SourceCode
pluginName: poster
The plug-in will be automatically hidden after the start of the broadcast
config
isEndedShow
@type
:Boolean
default
:true
@desc
: Whether to display after the end of the playback
hideCanplay
@type
:Boolean
default
:false
@desc
: Whether to hide after the video canplay
poster
@type
:String
default
: ``@desc
: url
When playerConfig.poster
is of string type, it will be obtained by default, E.g:
const player = new Player({
...,
poster: './poster.jpg'
})
// OR
const player = new Player({
...,
poster: {
poster: './poster.jpg',
isEndedShow: false
}
})