ps-tcplayer
Version:
Tencent Cloud Player component with Vue2/Vue3 compatibility
25 lines (15 loc) • 733 B
Markdown
Other Languages: [简体中文](https://github.com/aliyunvideo/AliyunPlayer_Web/blob/master/customComponents/src/components/playerNextComponent/README.zh_CN.md)
This component adds the `Play Next` button to the control bar of the player. You can customize the click event handler for the button and pass the event handler as the component parameter.
Reference this component and add the following code to the player configuration:
```js
components: [{
name: 'playerNextComponent',
type: AliPlayerComponent.ReportingComponent,
args: [clickHandle]
}]
```
This component contains the following parameter:
> clickHandle
- `clickHandle`: the click event handler for the `Play Next` button.