「Main API」Live push config More...
Static Public Member Functions | |
static void | setMediaProjectionPermissionResultData (Intent mediaProjectionPermissionResultData) |
Static Public Attributes | |
static final String | CONFIG = "AlivcLivePushConfig" |
「Main API」Live push config
Definition at line 46 of file AlivcLivePushConfig.java.
com.alivc.live.pusher.AlivcLivePushConfig.AlivcLivePushConfig | ( | ) |
Definition at line 144 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 |
use com.alivc.live.pusher.AlivcLivePusher#addWaterMark(String, float, float, float)
instead
use com.alivc.live.pusher.AlivcLivePusher#addWaterMark(Bitmap, float, float, float)
instead
Definition at line 1572 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.clearWaterMark | ( | ) |
Remove all the water marks
Definition at line 1587 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 1450 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 1473 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getAudioBitRate | ( | ) |
Get audio bitrate
Definition at line 1269 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 1555 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getAudioChannels | ( | ) |
Get audio channels
Definition at line 1027 of file AlivcLivePushConfig.java.
AlivcLiveAudioCodecType com.alivc.live.pusher.AlivcLivePushConfig.getAudioCodecType | ( | ) |
Get audio codec type
Definition at line 1225 of file AlivcLivePushConfig.java.
AlivcEncodeModeEnum com.alivc.live.pusher.AlivcLivePushConfig.getAudioEncodeMode | ( | ) |
Get audio encode mode
Default: software encode
Definition at line 987 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getAudioFormat | ( | ) |
Definition at line 161 of file AlivcLivePushConfig.java.
AlivcAudioAACProfileEnum com.alivc.live.pusher.AlivcLivePushConfig.getAudioProfile | ( | ) |
Get audio profile
Default: AAC_LC
Definition at line 1247 of file AlivcLivePushConfig.java.
AlivcAudioSampleRateEnum com.alivc.live.pusher.AlivcLivePushConfig.getAudioSampleRate | ( | ) |
Get push audio sample rate
Default: 48k
Definition at line 554 of file AlivcLivePushConfig.java.
AlivcAudioSceneModeEnum com.alivc.live.pusher.AlivcLivePushConfig.getAudioSceneMode | ( | ) |
Get audio scene mode
Default: MUSIC_MODE MEDIA_MODE: Optimization of media sound scene and noise reduction MUSIC_MODE: Set the background sound scene, high fidelity optimization
Definition at line 1293 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getBFrames | ( | ) |
Get the number of B-Frames
Default: 0
Definition at line 531 of file AlivcLivePushConfig.java.
AlivcLiveCameraCaptureOutputPreference com.alivc.live.pusher.AlivcLivePushConfig.getCameraCaptureOutputPreference | ( | ) |
Get camera capture output preference
Definition at line 403 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getCameraType | ( | ) |
Get push camera type
Default: front
Definition at line 627 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getConnectRetryCount | ( | ) |
Get connect retry count
Default: 5
Definition at line 872 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getConnectRetryInterval | ( | ) |
Get connect retry interval
Default: 1000ms
Definition at line 894 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getExposure | ( | ) |
Get camera exposure
Range: [0,100]
Default: 0
Definition at line 1102 of file AlivcLivePushConfig.java.
String com.alivc.live.pusher.AlivcLivePushConfig.getExtraInfo | ( | ) |
HashMap< String, String > com.alivc.live.pusher.AlivcLivePushConfig.getExtras | ( | ) |
Obtain the RTC extra information field for RTC engine initialization
Definition at line 314 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getFps | ( | ) |
Get push video capture fps
Definition at line 449 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 846 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 1341 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 502 of file AlivcLivePushConfig.java.
AlivcLivePushMonitorLevel com.alivc.live.pusher.AlivcLivePushConfig.getMonitorLevel | ( | ) |
Get SDK monitor level
Definition at line 426 of file AlivcLivePushConfig.java.
String com.alivc.live.pusher.AlivcLivePushConfig.getNetworkPoorPushImage | ( | ) |
Get path for the network poor image
Definition at line 826 of file AlivcLivePushConfig.java.
String com.alivc.live.pusher.AlivcLivePushConfig.getPausePushImage | ( | ) |
Get path for the pause push image
Definition at line 805 of file AlivcLivePushConfig.java.
AlivcPreviewDisplayMode com.alivc.live.pusher.AlivcLivePushConfig.getPreviewDisplayMode | ( | ) |
Get preview display mode
Default: ASPECT_FILL
Definition at line 1497 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getPreviewOrientation | ( | ) |
Get push preview orientation
Default: portrait
Definition at line 577 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 602 of file AlivcLivePushConfig.java.
AlivcQualityModeEnum com.alivc.live.pusher.AlivcLivePushConfig.getQualityMode | ( | ) |
Get video quality mode
Default: RESOLUTION_FIRST
Definition at line 1331 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 1533 of file AlivcLivePushConfig.java.
AlivcResolutionEnum com.alivc.live.pusher.AlivcLivePushConfig.getResolution | ( | ) |
Get push resolution
Default: 540p
Definition at line 248 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getSendDataTimeout | ( | ) |
Get RTMP send data timeout
Default: 3000ms
Definition at line 784 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getTargetVideoBitrate | ( | ) |
Get target video encode bitrate
Definition at line 475 of file AlivcLivePushConfig.java.
String com.alivc.live.pusher.AlivcLivePushConfig.getUserName | ( | ) |
Definition at line 300 of file AlivcLivePushConfig.java.
AlivcLivePushVideoConfig com.alivc.live.pusher.AlivcLivePushConfig.getVideoConfig | ( | ) |
Get video configuration
Definition at line 206 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getVideoEncodeGop | ( | ) |
Get video encode gop
Default: 2s
Definition at line 1048 of file AlivcLivePushConfig.java.
AlivcEncodeModeEnum com.alivc.live.pusher.AlivcLivePushConfig.getVideoEncodeMode | ( | ) |
Get video encode mode
Default: hardware encode
Definition at line 939 of file AlivcLivePushConfig.java.
AlivcEncodeType com.alivc.live.pusher.AlivcLivePushConfig.getVideoEncodeType | ( | ) |
Get video encode type
Default: H264
Definition at line 963 of file AlivcLivePushConfig.java.
int com.alivc.live.pusher.AlivcLivePushConfig.getVideoFormat | ( | ) |
Definition at line 153 of file AlivcLivePushConfig.java.
ArrayList< WaterMarkInfo > com.alivc.live.pusher.AlivcLivePushConfig.getWaterMarkInfos | ( | ) |
Get array of water marks
Definition at line 1612 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 672 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.isAutoFocus | ( | ) |
Get camera auto focus
Default: true
Definition at line 716 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.isEnableAutoResolution | ( | ) |
The status of auto resolution
Default: false, close auto resolution
Definition at line 1384 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.isEnableBitrateControl | ( | ) |
The status of bitrate control
Default: true, open bitrate control
Definition at line 1362 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.isEnableDataChannelMessage | ( | ) |
Is enable Data Channel custom message channels or not
Definition at line 361 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 1171 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.isEnableRemoteVideoFrameCallback | ( | ) |
Is remote video frame data callback enabled
Definition at line 381 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.isEnableRTSForInteractiveMode | ( | ) |
Whether to enable RTS push pull naked streaming in interactive mode (direct push & pull, different from co-streaming)
Definition at line 1181 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.isEnableVideoCodecDowngrade | ( | ) |
Allow video encoder degradation by default
Definition at line 1077 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 1406 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 762 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.isFocusBySensor | ( | ) |
Get focus by sensor
Default: false
Definition at line 738 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.isH5CompatibleMode | ( | ) |
Is it compatible with H5 (Connect and communicate with Web client)
Definition at line 337 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.isPreviewMirror | ( | ) |
Get preview mirror
Default: false, preview not mirror
Definition at line 650 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.isPushMirror | ( | ) |
Get push mirror
Default: false
Definition at line 916 of file AlivcLivePushConfig.java.
boolean com.alivc.live.pusher.AlivcLivePushConfig.isVideoOnly | ( | ) |
Get push video only
Default: false
Definition at line 694 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.removeWaterMark | ( | String | path | ) |
Remove water mark
path | water mark path |
Definition at line 1597 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 1461 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 1485 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setAudioBitRate | ( | int | audioBitRate | ) |
Set audio bitrate
audioBitRate | audio bitrate |
Definition at line 1279 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 1544 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setAudioChannels | ( | AlivcAudioChannelEnum | audioChannels | ) |
Set audio channels
audioChannels | audio channels |
Definition at line 1037 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setAudioCodecType | ( | AlivcLiveAudioCodecType | audioCodecType | ) |
Set audio codec type
audioCodecType | audio codec type |
Definition at line 1235 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 999 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setAudioFormat | ( | int | audioFormat | ) |
Definition at line 165 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 683 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 1259 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 566 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setAudioSceneMode | ( | AlivcAudioSceneModeEnum | audioSceneMode | ) |
Set audio scene mode
Default: MUSIC_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 1307 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 727 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 542 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setCameraCaptureOutputPreference | ( | AlivcLiveCameraCaptureOutputPreference | cameraCaptureOutputPreference | ) |
Set camera capture output preference
cameraCaptureOutputPreference | camera capture output preference |
Definition at line 415 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 639 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 883 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 905 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 1395 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 1373 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setEnableDataChannelMessage | ( | boolean | enableDataChannelMessage | ) |
Enable Data Channel custom message channel
enableDataChannelMessage | switch, default: off |
Definition at line 371 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 1158 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setEnableRemoteVideoFrameCallback | ( | boolean | enable | ) |
Remote video frame data callback switch
enable | turn on or off |
Definition at line 391 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setEnableRTSForInteractiveMode | ( | boolean | enableRTSForInteractiveMode | ) |
Enable RTS push pull naked streaming in interactive mode (direct push & pull, different from co-streaming)
enableRTSForInteractiveMode | Whether to push pull naked streaming |
Definition at line 1191 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setEnableVideoCodecDowngrade | ( | boolean | enableVideoCodecDowngrade | ) |
Set whether video encoder degradation is enabled, default enabled
enableVideoCodecDowngrade | true->enabled,false->disabled |
Definition at line 1089 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 1115 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 1420 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 1436 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 296 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setExtras | ( | HashMap< String, String > | extras | ) |
Transparent RTC extra information field for RTC engine initialization
extras | RTC extra information field |
Definition at line 324 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 773 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 751 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setFps | ( | AlivcFpsEnum | fps | ) |
Set video capture fps
fps | video capture fps |
AlivcLivePushConfig#setVideoConfig(AlivcLivePushVideoConfig)
instead AlivcLivePushConfig#setVideoConfig(AlivcLivePushVideoConfig)
, AlivcLivePushConfig#setFps(AlivcFpsEnum)
AlivcLivePusher#setVideoConfig(AlivcLivePushVideoConfig)
Definition at line 462 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setH5CompatibleMode | ( | boolean | h5CompatibleMode | ) |
Set H5 compatibility mode (Connect and communicate with Web client)
h5CompatibleMode | enable or not |
Under the same process, it can only be set once; If modification is required, the process needs to be killed before setting it up;
It can only be called before pusher initialization, and it is invalid to call after pusher initialization
Definition at line 351 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setInitialVideoBitrate | ( | int | initialVideoBitrate | ) |
Set initial video encode bitrate
initialVideoBitrate | initial video encode bitrate |
AlivcLivePushConfig#setVideoConfig(AlivcLivePushVideoConfig)
instead Definition at line 857 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setLivePushMode | ( | AlivcLiveMode | pushMode | ) |
Set live push mode
Default: Basic mode
pushMode | live push mode |
Definition at line 181 of file AlivcLivePushConfig.java.
|
static |
Set screen capture intent from system
mediaProjectionPermissionResultData | screen capture intent from system |
Definition at line 1351 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setMinFps | ( | AlivcFpsEnum | minFps | ) |
Set min fps
Default: 8
minFps | min fps |
Definition at line 1215 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setMinVideoBitrate | ( | int | minBitrate | ) |
Set min video encode bitrate
minBitrate | min video encode bitrate |
AlivcLivePushConfig#setVideoConfig(AlivcLivePushVideoConfig)
instead AlivcLivePushConfig#setVideoConfig(AlivcLivePushVideoConfig)
, AlivcLivePushConfig#setMinVideoBitrate(int)
AlivcLivePusher#setVideoConfig(AlivcLivePushVideoConfig)
, AlivcLivePusher#setMinVideoBitrate(int)
AlivcLivePushConfig#setMinVideoBitrate(int)
Definition at line 516 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 440 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(sdcard path) |
Definition at line 837 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(sdcard path) |
Definition at line 816 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setPreviewDisplayMode | ( | AlivcPreviewDisplayMode | displayMode | ) |
Set preview display mode
Default: ASPECT_FILL
displayMode | preview display mode |
Definition at line 1509 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 661 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 589 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 616 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setPushMirror | ( | boolean | pushMirror | ) |
Set push mirror
Default: false
pushMirror | push mirror |
Definition at line 927 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 1319 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 1521 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setResolution | ( | AlivcResolutionEnum | resolution | ) |
Set push resolution
Default: AlivcResolutionEnum#RESOLUTION_540P
resolution | resolution, support 180P/240P/360P/480P/540P/720P/1080P, or self define resolution |
AlivcLivePushConfig#setVideoConfig(AlivcLivePushVideoConfig)
instead AlivcLivePushConfig#setVideoConfig(AlivcLivePushVideoConfig)
, AlivcLivePushConfig#setVideoConfig(AlivcLivePushVideoConfig)
AlivcLivePusher#setVideoConfig(AlivcLivePushVideoConfig)
, AlivcLivePusher#setVideoConfig(AlivcLivePushVideoConfig)
AlivcLivePushConfig#setMinVideoBitrate(int)
, AlivcLivePushConfig#setTargetVideoBitrate(int)
Definition at line 265 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 795 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setTargetVideoBitrate | ( | int | targetBitRate | ) |
Set target video encode bitrate
targetBitRate | target video encode bitrate |
AlivcLivePushConfig#setVideoConfig(AlivcLivePushVideoConfig)
instead AlivcLivePushConfig#setVideoConfig(AlivcLivePushVideoConfig)
, AlivcLivePushConfig#setTargetVideoBitrate(int)
AlivcLivePusher#setVideoConfig(AlivcLivePushVideoConfig)
, AlivcLivePusher#setTargetVideoBitrate(int)
AlivcLivePushConfig#setTargetVideoBitrate(int)
Definition at line 489 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 1130 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setUserName | ( | String | userName | ) |
Definition at line 304 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setVideoConfig | ( | AlivcLivePushVideoConfig | videoConfig | ) |
Set video configuration
videoConfig | video configuration |
Definition at line 215 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setVideoEncodeGop | ( | AlivcVideoEncodeGopEnum | videoEncodeGop | ) |
Set video encode gop
videoEncodeGop | video encode gop, seconds |
AlivcLivePushConfig#setVideoConfig(AlivcLivePushVideoConfig)
instead AlivcLivePushConfig#setVideoConfig(AlivcLivePushVideoConfig)
, AlivcLivePushConfig#setVideoEncodeGop(AlivcVideoEncodeGopEnum)
AlivcLivePusher#setVideoConfig(AlivcLivePushVideoConfig)
Definition at line 1061 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 951 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 975 of file AlivcLivePushConfig.java.
void com.alivc.live.pusher.AlivcLivePushConfig.setVideoFormat | ( | int | videoFormat | ) |
Definition at line 157 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 705 of file AlivcLivePushConfig.java.
String com.alivc.live.pusher.AlivcLivePushConfig.toString | ( | ) |
Definition at line 1617 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 1145 of file AlivcLivePushConfig.java.
|
static |
Definition at line 47 of file AlivcLivePushConfig.java.