Live push config. More...
Static Public Member Functions | |
static void | setMediaProjectionPermissionResultData (Intent mediaProjectionPermissionResultData) |
Static Public Attributes | |
static final String | CONFIG = "AlivcLivePushConfig" |
Live push config.
Definition at line 40 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.addWaterMark | ( | String | path, |
float | x, | ||
float | y, | ||
float | width | ||
) |
Add water mark
start position: [0,width) y[0,height),w(0,width], max count: 3
path | water mark path |
x | x 0~1 |
y | y 0~1 |
width | width 0~1 |
Definition at line 1322 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.clearWaterMark | ( | ) |
Remove all the water marks
Definition at line 1337 of file AlivcLivePushConfig.java.
AlivcImageFormat com.alivc.live.pusher.AlivcLivePushConfig.getAlivcExternMainImageFormat | ( | ) |
Get image format of external stream push
Default: IMAGE_FORMAT_YUV420P
Definition at line 1200 of file AlivcLivePushConfig.java.
AlivcSoundFormat com.alivc.live.pusher.AlivcLivePushConfig.getAlivcExternMainSoundFormat | ( | ) |
Get audio format of external stream push
Default: SOUND_FORMAT_S16
Definition at line 1223 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getAudioBitRate | ( | ) |
Get audio bitrate
Default: 64k
Definition at line 1018 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.getAudioCaptureWithoutMix | ( | ) |
The status of audio capture without mix
Default: false, turn off
Definition at line 1305 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getAudioChannels | ( | ) |
Get audio channels
Default: stereo
Definition at line 816 of file AlivcLivePushConfig.java.
AlivcEncodeModeEnum com.alivc.live.pusher.AlivcLivePushConfig.getAudioEncodeMode | ( | ) |
Get audio encode mode
Default: software encode
Definition at line 775 of file AlivcLivePushConfig.java.
AlivcAudioAACProfileEnum com.alivc.live.pusher.AlivcLivePushConfig.getAudioProfile | ( | ) |
Get audio profile
Default: AAC_LC
Definition at line 995 of file AlivcLivePushConfig.java.
AlivcAudioSampleRateEnum com.alivc.live.pusher.AlivcLivePushConfig.getAudioSampleRate | ( | ) |
Get push audio sample rate
Default: 48k
Definition at line 353 of file AlivcLivePushConfig.java.
AlivcAudioSceneModeEnum com.alivc.live.pusher.AlivcLivePushConfig.getAudioSceneMode | ( | ) |
Get audio scene mode
Default: DEFAULT_MODE MEDIA_MODE: Optimization of media sound scene and noise reduction MUSIC_MODE: Set the background sound scene, high fidelity optimization
Definition at line 1043 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getBFrames | ( | ) |
Get the number of B-Frames
Default: 0
Definition at line 330 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getCameraType | ( | ) |
Get push camera type
Default: front
Definition at line 426 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getConnectRetryCount | ( | ) |
Get connect retry count
Default: 5
Definition at line 660 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getConnectRetryInterval | ( | ) |
Get connect retry interval
Default: 1000ms
Definition at line 682 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getExposure | ( | ) |
Get camera exposure
Range: [0,100]
Default: 0
Definition at line 862 of file AlivcLivePushConfig.java.
String com.alivc.live.pusher.AlivcLivePushConfig.getExtraInfo | ( | ) |
int com.alivc.live.pusher.AlivcLivePushConfig.getFps | ( | ) |
Get push video capture fps
Definition at line 269 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getHeight | ( | ) |
int com.alivc.live.pusher.AlivcLivePushConfig.getInitialVideoBitrate | ( | ) |
Get initial video encode bitrate
Definition at line 639 of file AlivcLivePushConfig.java.
AlivcLiveMode com.alivc.live.pusher.AlivcLivePushConfig.getLivePushMode | ( | ) |
Intent com.alivc.live.pusher.AlivcLivePushConfig.getMediaProjectionPermissionResultData | ( | ) |
Get screen capture intent from system
Definition at line 1091 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getMinFps | ( | ) |
int com.alivc.live.pusher.AlivcLivePushConfig.getMinVideoBitrate | ( | ) |
Get min video encode bitrate
Definition at line 309 of file AlivcLivePushConfig.java.
AlivcLivePushMonitorLevel com.alivc.live.pusher.AlivcLivePushConfig.getMonitorLevel | ( | ) |
Get SDK monitor level
Definition at line 246 of file AlivcLivePushConfig.java.
String com.alivc.live.pusher.AlivcLivePushConfig.getNetworkPoorPushImage | ( | ) |
Get path for the network poor image
Definition at line 621 of file AlivcLivePushConfig.java.
String com.alivc.live.pusher.AlivcLivePushConfig.getPausePushImage | ( | ) |
Get path for the pause push image
Definition at line 603 of file AlivcLivePushConfig.java.
AlivcPreviewDisplayMode com.alivc.live.pusher.AlivcLivePushConfig.getPreviewDisplayMode | ( | ) |
Get preview display mode
Default: ASPECT_FIT
Definition at line 1247 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getPreviewOrientation | ( | ) |
Get push preview orientation
Default: portrait
Definition at line 376 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getPreviewRotation | ( | ) |
Get preview rotation
This api is provided for the non-standard Android box
Default: 0
Definition at line 401 of file AlivcLivePushConfig.java.
AlivcQualityModeEnum com.alivc.live.pusher.AlivcLivePushConfig.getQualityMode | ( | ) |
Get video quality mode
Default: RESOLUTION_FIRST
Definition at line 1081 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.getRequireRenderContextNotify | ( | ) |
The status of the notify of OpenGL render context
Default: false, turn off
Definition at line 1283 of file AlivcLivePushConfig.java.
AlivcResolutionEnum com.alivc.live.pusher.AlivcLivePushConfig.getResolution | ( | ) |
Get push resolution
Default: 540p
Definition at line 186 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getSendDataTimeout | ( | ) |
Get RTMP send data timeout
Default: 3000ms
Definition at line 583 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getTargetVideoBitrate | ( | ) |
Get target video encode bitrate
Definition at line 290 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getVideoEncodeGop | ( | ) |
Get video encode gop
Default: 2s
Definition at line 838 of file AlivcLivePushConfig.java.
AlivcEncodeModeEnum com.alivc.live.pusher.AlivcLivePushConfig.getVideoEncodeMode | ( | ) |
Get video encode mode
Default: hardware encode
Definition at line 727 of file AlivcLivePushConfig.java.
AlivcEncodeType com.alivc.live.pusher.AlivcLivePushConfig.getVideoEncodeType | ( | ) |
Get video encode type
Default: H264
Definition at line 751 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getWidth | ( | ) |
boolean com.alivc.live.pusher.AlivcLivePushConfig.isAudioOnly | ( | ) |
Get push audio only
Default: false
Definition at line 471 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.isAutoFocus | ( | ) |
Get camera auto focus
Default: true
Definition at line 515 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.isEnableAutoResolution | ( | ) |
The status of auto resolution
Default: false, close auto resolution
Definition at line 1134 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.isEnableBitrateControl | ( | ) |
The status of bitrate control
Default: true, open bitrate control
Definition at line 1112 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.isEnableNarrowbandHDForScreenPusher | ( | ) |
Get the status of narrowband HD when using screen pusher
Lower bandwidth, higher clarity
Default: true
Definition at line 931 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.isEnableSDKCrashMechanism | ( | ) |
The status of generating crash report during SDK crash
Only the internal crashes in the SDK can be generated, and crashes from the app will not affect
Default: true
Definition at line 959 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.isExternMainStream | ( | ) |
The status of external stream push
Default: false, close external stream push
Definition at line 1156 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.isFlash | ( | ) |
Get status of the camera flash
Default: false, close camera flash
Definition at line 561 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.isFocusBySensor | ( | ) |
Get focus by sensor
Default: false
Definition at line 537 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.isPreviewMirror | ( | ) |
Get preview mirror
Default: false, preview not mirror
Definition at line 449 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.isPushMirror | ( | ) |
Get push mirror
Default: false
Definition at line 704 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.isVideoOnly | ( | ) |
Get push video only
Default: false
Definition at line 493 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.removeWaterMark | ( | String | path | ) |
Remove water mark
path | water mark path |
Definition at line 1347 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setAlivcExternMainImageFormat | ( | AlivcImageFormat | alivcExternMainImageFormat | ) |
Set image format of external stream push
Default: IMAGE_FORMAT_YUV420P
Definition at line 1211 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setAlivcExternMainSoundFormat | ( | AlivcSoundFormat | soundFormat | ) |
Set audio format of external stream push
Default: SOUND_FORMAT_S16
soundFormat | audio format |
Definition at line 1235 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setAudioBitRate | ( | int | audioBitRate | ) |
Set audio bitrate
Default: 64k
audioBitRate | audio bitrate |
Definition at line 1029 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setAudioCaptureWithoutMix | ( | boolean | on | ) |
Open audio capture without mix
Default: false, turn off
on | turn on or off |
Definition at line 1294 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setAudioChannels | ( | AlivcAudioChannelEnum | audioChannels | ) |
Set audio channels
Default: stereo
audioChannels | audio channels |
Definition at line 827 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setAudioEncodeMode | ( | AlivcEncodeModeEnum | audioEncodeMode | ) |
Set audio encode mode
Default: software encode
audioEncodeMode | audio encode mode |
Definition at line 787 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setAudioOnly | ( | boolean | audioOnly | ) |
Set push audio only
Default: false
audioOnly | audio only |
Definition at line 482 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setAudioProfile | ( | AlivcAudioAACProfileEnum | audioProfile | ) |
Set audio profile
Default: AAC_LC
audioProfile | audio profile |
Definition at line 1007 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setAudioSampleRate | ( | AlivcAudioSampleRateEnum | audioSample | ) |
Set push audio sample rate
Default: 48k
audioSample | audio sample rate |
Definition at line 365 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setAudioSceneMode | ( | AlivcAudioSceneModeEnum | audioSceneMode | ) |
Set audio scene mode
Default: DEFAULT_MODE MEDIA_MODE: Optimization of media sound scene and noise reduction MUSIC_MODE: Set the background sound scene, high fidelity optimization
audioSceneMode | audio scene mode |
Definition at line 1057 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setAutoFocus | ( | boolean | autoFocus | ) |
Set camera auto focus
Default: true
autoFocus | camera auto focus |
Definition at line 526 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setBFrames | ( | int | bFrame | ) |
Set the number of B-Frames
Default: 0
bFrame | B-Frames number |
Definition at line 341 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setCameraType | ( | AlivcLivePushCameraTypeEnum | cameraType | ) |
Set push camera type
Default: front
cameraType | push camera type |
Definition at line 438 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setConnectRetryCount | ( | int | connectRetryCount | ) |
Set connect retry count
Default: 5
connectRetryCount | connect retry count |
Definition at line 671 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setConnectRetryInterval | ( | int | connectRetryInterval | ) |
Set connect retry interval
Default: 1000ms
connectRetryInterval | connect retry interval, millisecond |
Definition at line 693 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setEnableAutoResolution | ( | boolean | enableAutoResolution | ) |
Enable auto resolution
Default: false, close auto resolution
enableAutoResolution | auto resolution |
Definition at line 1145 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setEnableBitrateControl | ( | boolean | enableBitrateControl | ) |
Enable bitrate control
Default: true, open bitrate control
enableBitrateControl | bitrate control |
Definition at line 1123 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setEnableNarrowbandHDForScreenPusher | ( | boolean | enable | ) |
Turn on the narrowband HD switch when using screen pusher
Lower bandwidth, higher clarity
Default: true
enable | turn on or off |
Definition at line 918 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setEnableSDKCrashMechanism | ( | boolean | enable | ) |
Set to generate crash report when SDK crashes
Only the internal crashes in the SDK can be generated, and crashes from the app will not affect
Default: true
enable | turn on or off |
Definition at line 945 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setExposure | ( | int | exposure | ) |
Set camera exposure
Range: [0,100]
Default: 0
exposure | camera exposure |
Definition at line 875 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setExternMainStream | ( | boolean | externMainStream | ) |
Open or close external stream push (third push)
When you open external stream push, the SDK will no longer capture audio and video, only retains encoding and transmission capabilities.
Default: false, close external stream push
externMainStream | external stream push flag |
Definition at line 1170 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setExternMainStream | ( | boolean | externMainStream, |
AlivcImageFormat | imageFormat, | ||
AlivcSoundFormat | soundFormat | ||
) |
Open or close external stream push (third push)
When you open external stream push, the SDK will no longer capture audio and video, only retains encoding and transmission capabilities.
externMainStream | external stream push flag |
imageFormat | image format |
soundFormat | audio format |
Definition at line 1186 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setExtraInfo | ( | String | extraInfo | ) |
Set extra info
Such as userID, it's used to troubleshoot problems.
extraInfo | extra info |
Definition at line 235 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setFlash | ( | boolean | flash | ) |
Set camera flash
Default: false, close camera flash
flash | camera flash |
Definition at line 572 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setFocusBySensor | ( | boolean | focusBySensor | ) |
Set focus by sensor
This api is provided for some Android boxes which has problems with continuous autofocus algorithms.
Default: false
focusBySensor | sensor focus |
Definition at line 550 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setFps | ( | AlivcFpsEnum | fps | ) |
Set video capture fps
Default: 20fps
fps | video capture fps |
Definition at line 281 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setInitialVideoBitrate | ( | int | initialVideoBitrate | ) |
Set initial video encode bitrate
initialVideoBitrate | initial video encode bitrate |
Definition at line 648 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setLivePushMode | ( | AlivcLiveMode | pushMode | ) |
Set live push mode
Default: Basic mode
pushMode | live push mode |
Basic mode: push rtmp stream, prefix: 'rtmp://', or push rts stream, prefix: 'artc://'
Interactive mode: push rtc stream, prefix: 'artc://live.aliyun.com/push/'
Definition at line 160 of file AlivcLivePushConfig.java.
|
static |
Set screen capture intent from system
mediaProjectionPermissionResultData | screen capture intent from system |
Definition at line 1101 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setMinFps | ( | AlivcFpsEnum | minFps | ) |
Set min fps
Default: 8
minFps | min fps |
Definition at line 983 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setMinVideoBitrate | ( | int | minBitrate | ) |
Set min video encode bitrate
minBitrate | min video encode bitrate |
Definition at line 318 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setMonitorLevel | ( | AlivcLivePushMonitorLevel | monitorLevel | ) |
Set SDK monitor level
For embedded scenarios, you can specify to simplify monitoring information
Default: All
monitorLevel | monitor level |
Definition at line 260 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setNetworkPoorPushImage | ( | String | path | ) |
Set path for the network poor image
path | network poor image path |
Definition at line 630 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setPausePushImage | ( | String | path | ) |
Set path for the pause push image
path | pause push image path |
Definition at line 612 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setPreviewDisplayMode | ( | AlivcPreviewDisplayMode | displayMode | ) |
Set preview display mode
Default: ASPECT_FIT
displayMode | preview display mode |
Definition at line 1259 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setPreviewMirror | ( | boolean | mirror | ) |
Set preview mirror
Default: false, preview not mirror
mirror | preview mirror |
Definition at line 460 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setPreviewOrientation | ( | AlivcPreviewOrientationEnum | previewOrientation | ) |
Set push preview orientation
Default: portrait
previewOrientation | push preview orientation |
Definition at line 388 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setPreviewRotation | ( | AlivcPreviewRotationEnum | rotation | ) |
Set preview rotation
This api is provided for the non-standard Android box
Default: 0
rotation | preview rotation |
Definition at line 415 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setPushMirror | ( | boolean | pushMirror | ) |
Set push mirror
Default: false
pushMirror | push mirror |
Definition at line 715 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setQualityMode | ( | AlivcQualityModeEnum | quality | ) |
Set video quality mode
Default: RESOLUTION_FIRST
quality | video quality mode |
Definition at line 1069 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setRequireRenderContextNotify | ( | boolean | enable | ) |
Open the notify of OpenGL render context
Default: false, turn off
enable | turn on or off |
Definition at line 1271 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setResolution | ( | AlivcResolutionEnum | resolution | ) |
Set push resolution
Default: 540p
resolution | resolution, support 180P/240P/360P/480P/540P/720P/1080P, or self define resolution |
Definition at line 198 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setSendDataTimeout | ( | int | sendDataTimeout | ) |
Set RTMP send data timeout
Default: 3000ms
sendDataTimeout | send timeout, millisecond |
Definition at line 594 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setTargetVideoBitrate | ( | int | targetBitRate | ) |
Set target video encode bitrate
targetBitRate | target video encode bitrate |
Definition at line 299 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setUseAliPlayerForBGM | ( | boolean | useAliPlayerForBGM | ) |
Set whether use AliPlayer to play BGM or not
The built-in player supports most scenarios. If you need to play special formats, you can switch to the AliPlayer. You need to add the dependency of AliPlayer which the version is 5.4.1 or above.
Default: false, use built-in player
useAliPlayerForBGM | use AliPlayer or not |
Definition at line 890 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setVideoEncodeGop | ( | AlivcVideoEncodeGopEnum | videoEncodeGop | ) |
Set video encode gop
Default: 2s
videoEncodeGop | video encode gop, seconds |
Definition at line 849 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setVideoEncodeMode | ( | AlivcEncodeModeEnum | videoEncodeMode | ) |
Set video encode mode
Default: hardware encode
videoEncodeMode | video encode mode |
Definition at line 739 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setVideoEncodeType | ( | AlivcEncodeType | videoEncodeType | ) |
Set video encode type
Default: H264
videoEncodeType | video encode type |
Definition at line 763 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setVideoOnly | ( | boolean | videoOnly | ) |
Set push video only
Default: false
videoOnly | video only |
Definition at line 504 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.useAliPlayerForBGM | ( | ) |
Get whether use AliPlayer to play BGM or not
The built-in player supports most scenarios. If you need to play special formats, you can switch to the AliPlayer. You need to add the dependency of AliPlayer which the version is 5.4.1 or above.
Default: false, use built-in player
Definition at line 905 of file AlivcLivePushConfig.java.