Skip to content

Latest commit

 

History

History
executable file
·
25 lines (16 loc) · 796 Bytes

File metadata and controls

executable file
·
25 lines (16 loc) · 796 Bytes

Pause ad component

Other Languages: 简体中文

This component is used to display an image ad in the middle of the player when a video is paused.

Usage

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 is String.
  • adUrl: the URL of the ad page. The type is String.