poster
播放器首帧预览图插件。源码
pluginName: poster
该插件在起播之后会自动隐藏
config
isEndedShow
@type:Booleandefault:true@desc: 是否在播放结束之后显示
hideCanplay
@type:Booleandefault:false@desc: canplay 时间大于1的时候才隐藏
poster
@type:Stringdefault: ``@desc: 封面图地址
当playerConfig.poster是string类型的时候,会默认获取, 使用demo如下
// 除了图片地址,没有其他配置
const player = new Player({
...,
poster: './poster.jpg'
})
// 传入其他配置
const player = new Player({
...,
poster: {
poster: './poster.jpg',
isEndedShow: false
}
})