Class Info |
|---|
public static final class VideoConfiguration.Builder extends Object Video configuration builder. |
Qualifier and Type | Method Name and Description |
|---|---|
build() Constructs a VideoConfiguration object with specified attributes. | |
VideoConfiguration.Builder | setAudioFocusType(int audioFocusType) Sets the audio focus type. |
VideoConfiguration.Builder | setClickToFullScreenRequested(boolean clickToFullScreenRequested) Sets whether a video ad can be displayed in full screen mode upon a click. |
VideoConfiguration.Builder | setCustomizeOperateRequested(boolean customizeOperateRequested) Sets whether a custom player component is used for a video ad. |
VideoConfiguration.Builder | setStartMuted(boolean startMuted) Sets whether to mute a video initially. |
VideoConfiguration.Builder | setAutoPlayNetWork(int autoPlayNetwork) Sets the type of the network allowed for automatic video playback. |
Method |
|---|
public final VideoConfiguration build() Constructs a VideoConfiguration object with specified attributes. |
Returns
Type | Description |
|---|---|
Video configuration. |
Method |
|---|
public VideoConfiguration.Builder setAudioFocusType(int audioFocusType) Sets the audio focus type. |
Parameters
Name | Description |
|---|---|
audioFocusType | Audio focus type. |
Returns
Type | Description |
|---|---|
VideoConfiguration.Builder | Video configuration builder object. |
Method |
|---|
public VideoConfiguration.Builder setClickToFullScreenRequested(boolean clickToFullScreenRequested) Sets whether a video ad can be displayed in full screen mode upon a click. |
Parameters
Name | Description |
|---|---|
clickToFullScreenRequested | Indicates whether a video ad can be displayed in full screen mode upon a click.
|
Returns
Type | Description |
|---|---|
VideoConfiguration.Builder | Video configuration builder object. |
Method |
|---|
public VideoConfiguration.Builder setCustomizeOperateRequested(boolean customizeOperateRequested) Sets whether a custom player component is used for a video ad. After the setting, you can call the VideoConfiguration.isCustomizeOperateRequested() method for verification. Then you can call VideoOperator.play(), VideoOperator.pause(), and VideoOperator.mute(boolean) to control video ad playback. |
Parameters
Name | Description |
|---|---|
customizeOperateRequested | Indicates whether to request a custom player component.
|
Returns
Type | Description |
|---|---|
VideoConfiguration.Builder | Video configuration builder object. |
Method |
|---|
public VideoConfiguration.Builder setStartMuted(boolean startMuted) Sets whether to mute a video initially. |
Parameters
Name | Description |
|---|---|
startMuted | Indicates whether to mute a video initially.
|
Returns
Type | Description |
|---|---|
VideoConfiguration.Builder | Video configuration builder object. |
Method |
|---|
public VideoConfiguration.Builder setAutoPlayNetwork(int autoPlayNetwork) Sets the type of the network allowed for automatic video playback. |
Parameters
Name | Description |
|---|---|
autoPlayNetwork | Type of the network allowed for automatic video playback.
For details, please refer to AutoPlayNetType. |
Returns
Type | Description |
|---|---|
VideoConfiguration.Builder | Video configuration builder object. |