Non-linear video advertising

  抱歉,这篇文章有英文版

To display VAST ads in a non-linear mode (without interrupting playback), you can use mid-rolls with the following limitations:

  • ads start only in fullscreen mode (screen width must exceed 1000 pixels)
  • content playback is not paused
  • ads are muted

The ad is triggered during the main content playback at a specified time interval and occupies one-third of the screen width in the bottom-right corner.

The user can close the ad (a close button appears at the 3-second mark) or skip it if this option is enabled in the ad settings. If the user exits fullscreen mode, the ad will expand to fill the entire player, pause the main content, and enable sound.

How to enable

Enable the Non-linear ads support option in the module settings Advertising / Mid-rolls and add the nonlinear: 1 parameter to the configuration of the required mid-rolls.

midroll:[{time:"5", vast:"id:XXX", nonlinear:1}, {time:"50%", vast:"id:ZZZ"}]

The first mid-roll in this example will start in non-linear mode.


22.0.0
2026 © PlayerJS

登录

登录

免费注册

注册
注册即表示您同意服务条款
登录(如果您有帐户)

恢复密码

恢复
忘记电子邮件?联系我们