Other Languages: 简体中文
This component is used to display an image ad in the middle of the player when a video is paused.
Reference this component and add the following code to the player configuration:
components: [{
name: 'PauseADComponent',
type: AliPlayerComponent.PauseADComponent,
args: ['https://img.alicdn.com/tfs/TB1byi8afDH8KJjy1XcXXcpdXXa-1920-514.jpg', 'https://promotion.aliyun.com/ntms/act/videoai.html']
}]
This component contains the following parameters:
coverUrl and adUrl
coverUrl
: the URL of the image ad. The type isString
.adUrl
: the URL of the ad page. The type isString
.