Class Info |
|---|
public class PlayerConfig 播放器配置。 |
Qualifier and Type | Method Name and Description |
|---|---|
boolean | 是否适配刘海屏幕。 |
boolean | 是否竖屏。 |
boolean | 是否横屏。 |
boolean | 是否强制静音。 |
boolean | 是否展示行业图标。 |
boolean | 是否跳过线性广告。 |
| 播放器配置的构造器。 |
Constructor |
|---|
public PlayerConfig(Builder builder) 构造播放器配置对象。 |
Parameters
Name | Description |
|---|---|
builder | 播放器构造器。 |
Method |
|---|
public boolean isEnableCutout() 是否适配刘海屏幕。 |
Returns
Type | Description |
|---|---|
boolean | 是否适配刘海屏幕:
|
Method |
|---|
public boolean isEnablePortrait() 是否竖屏。 |
Returns
Type | Description |
|---|---|
boolean | 是否竖屏:
|
Method |
|---|
public boolean isEnableRotation() 是否横屏。 |
Returns
Type | Description |
|---|---|
boolean | 是否横屏:
|
Method |
|---|
public boolean isForceMute() 是否强制静音。 |
Returns
Type | Description |
|---|---|
boolean | 是否强制静音:
|
Method |
|---|
public boolean isIndustryIconShow() 是否展示行业图标。 |
Returns
Type | Description |
|---|---|
boolean | 是否展示行业图标:
|
Method |
|---|
public boolean isSkipLinearAd() 是否跳过线性广告。 |
Returns
Type | Description |
|---|---|
boolean | 是否跳过线性广告:
|
Method |
|---|
public static PlayerConfig.Builder newBuilder() 播放器配置的构造器。 |
Returns
Type | Description |
|---|---|
播放器配置的构造器。 |