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:Booleandefault:true@desc: Whether to display after the end of the playback
hideCanplay
@type:Booleandefault:false@desc: Whether to hide after the video canplay
poster
@type:Stringdefault: ``@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
}
})