All Products
Search
Document Center

How do I configure playback delay

Last Updated: Sep 16, 2019

Playback delay

Playback delay is applicable to play videos during transcoding. You can set playback delay and playback delay message for ApsaraVideo Player V2.1.0 and later.

Playback delay configuration

infoDisplay is required for enabling the playback delay function. If you have customized skinLayout, you need to enable infoDisplay.

skinLayout:[
    ...
    {name: "errorDisplay", align: "tlabs", x: 0, y: 0},
    {name: "infoDisplay", align: "cc"},
    ...
  ]

The following two attributes are used to set the delay time and delay message:

  • autoPlayDelay: sets the delay time, in seconds.

  • autoPlayDelayDisplayText: sets the delay message, such as "Transcoding. Please wait."

When you enable playback delay, set autoplay to true.