西瓜播放器 HTML5 video video.js 播放器 HTML5播放器 mp4 hls hls.js flv flv.js dash dash.js 无缝切换

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
  }
})