目录

VideoConfiguration

Class Info

public class VideoConfiguration extends Object

Video configuration that controls video playback.

Nested Class Summary

Qualifier and Type

Class Name and Description

static final class

VideoConfiguration.Builder

Video configuration builder.

Public Method Summary

Qualifier and Type

Method Name and Description

int

getAudioFocusType()

Obtains the audio focus type.

boolean

isClickToFullScreenRequested()

Checks whether a video ad can be displayed in full screen mode upon a click.

boolean

isCustomizeOperateRequested()

Checks whether a custom player component is used for a video ad.

boolean

isStartMuted()

Checks whether a video is initially muted.

int

getAutoPlayNetwork()

Obtains the type of the network allowed for automatic video playback.

Public Methods

[h2]getAudioFocusType

Method

public int getAudioFocusType()

Obtains the audio focus type.

Returns

[h2]isClickToFullScreenRequested

Method

public final boolean isClickToFullScreenRequested()

Checks whether a video ad can be displayed in full screen mode upon a click.

Returns

Type

Description

boolean

Whether a video ad can be displayed in full screen mode upon a click.

  • true: yes
  • false: no

The default value is false.

[h2]isCustomizeOperateRequested

Method

public final boolean isCustomizeOperateRequested()

Checks whether a custom player component is used for a video ad.

Returns

Type

Description

boolean

Whether a custom player component is used for a video ad.

  • true: yes
  • false: no

The default value is false.

[h2]isStartMuted

Method

public final boolean isStartMuted()

Checks whether a video is initially muted.

Returns

Type

Description

boolean

Whether a video is initially muted.

  • true: yes
  • false: no

The default value is false.

[h2]getAutoPlayNetwork

Method

public int getAutoPlayNetwork()

Obtains the type of the network allowed for automatic video playback.

Returns

Type

Description

int

Type of the network allowed for automatic video playback.

  • 0: allowed only on Wi-Fi. The corresponding constant is AutoPlayNetType#WIFI_ONLY.
  • 1: allowed on both Wi-Fi and mobile data. The corresponding constant is AutoPlayNetType#BOTH_WIFI_AND_DATA.
  • 2: forbidden regardless of the network type. The corresponding constant is AutoPlayNetType#FORBID_AUTO_PLAY.

The default value is 0, indicating that automatic playback is allowed only when a Wi-Fi network is available.

For details, please refer to AutoPlayNetType.