Interface Info |
|---|
public interface VideoOperator Implements video controls such as playing, pausing, and muting a video. |
Qualifier and Type | Class Name and Description |
|---|---|
abstract static class | VideoOperator.VideoLifecycleListener Video lifecycle listener. |
Qualifier and Type | Method Name and Description |
|---|---|
float | Obtains the video aspect ratio. |
| Obtains a video lifecycle listener. | |
boolean | hasVideo() Checks whether ad content contains a video. |
boolean | Checks whether a custom player component is used for a video ad. |
boolean | isMuted() Checks whether a video is muted. |
void | mute(boolean mute) Sets whether to mute a video when a custom player component is used. |
void | pause() Pauses video playback when a custom player component is used. |
void | play() Plays a video when a custom player component is used. |
void | setVideoLifecycleListener(VideoOperator.VideoLifecycleListener listener) Sets a video lifecycle listener. |
void | stop() Stops video playback when a custom player component is used. |
Method |
|---|
public float getAspectRatio() Obtains the video aspect ratio. |
Returns
Type | Description |
|---|---|
float | Video aspect ratio if the aspect ratio information is available; 0 otherwise. |
Method |
|---|
public VideoOperator.VideoLifecycleListener getVideoLifecycleListener() Obtains a video lifecycle listener. |
Returns
Type | Description |
|---|---|
Video lifecycle listener. |
Method |
|---|
public boolean hasVideo() Checks whether ad content contains a video. |
Returns
Type | Description |
|---|---|
boolean | Whether ad content contains a video.
|
Method |
|---|
public boolean isCustomizeOperateEnabled() 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.
The default value is false. |
Method |
|---|
public boolean isMuted() Checks whether a video is muted. |
Returns
Type | Description |
|---|---|
boolean | Whether a video is muted.
The default value is false. |
Method |
|---|
public void mute(boolean mute) Sets whether to mute a video when a custom player component is used. |
Parameters
Name | Description |
|---|---|
mute | Whether to mute a video when a custom player component is used.
|
Method |
|---|
public void setVideoLifecycleListener(VideoOperator.VideoLifecycleListener listener) Sets a video lifecycle listener. |
Parameters
Name | Description |
|---|---|
listener | Video lifecycle listener. |