Polyv Help Center

Help Center

Parameters

Updated: 2025-10-10 12:02:04

Configuration Parameters

<plv-live-player
  config="{{ config }}"
>
</plv-live-player>

Parameter List

config

Type: PlayerConfig Description: Player configuration parameters, containing video playback related configuration information. Note: When using only the video component for playback, the forceVideo: true parameter must be configured.

controlSlots

Type: Array<ControlSlotTypes> Description: Custom control slots, used to customize the player's control elements.

<plv-live-player
  config="{{ config }}"
  controlSlots="{{ [ 'skin-play', 'skin-pause' ] }}"
>
  <!-- 自定义播放按钮样式 -->
  <view
    slot="skin-play"
    style="background: url('https://xxx/diy-play-icon.png');"
  ></view>

  <!-- 自定义暂停按钮样式 -->
  <view
    slot="skin-pause"
    style="background: url('https://xxx/diy-pause-icon.png');"
  ></view>
</plv-live-player>

autoplay

Type: boolean Description: Whether to autoplay the video.

vodSetting

Type: VodSetting Description: Playback-related configuration parameters, containing information about the playback video.

pipMode

Type: PictureInPictureMode Description: Picture-in-picture (mini player) mode.

联系客服,在线咨询
在线咨询