Live pusher abstract class. More...
Public Member Functions | |
void | init (Context context, AlivcLivePushConfig config) throws IllegalArgumentException, IllegalStateException |
void | destroy () throws IllegalStateException |
void | setLivePusherReference (AlivcLivePusher livePusher) |
void | startPreview (SurfaceView surfaceView) throws IllegalArgumentException, IllegalStateException |
void | startPreviewAsync (SurfaceView surfaceView) throws IllegalArgumentException, IllegalStateException |
void | startPreview (Context context, FrameLayout frameLayout, boolean isAnchor) throws IllegalArgumentException, IllegalStateException |
void | stopPreview () throws IllegalStateException |
void | startPush (String url) throws IllegalArgumentException, IllegalStateException |
void | startPushAsync (String url) throws IllegalArgumentException, IllegalStateException |
void | restartPush () throws IllegalStateException |
void | restartPushAsync () throws IllegalStateException |
void | reconnectPushAsync (String url) throws IllegalStateException |
void | stopPush () throws IllegalStateException |
void | pause () throws IllegalStateException |
void | resume () throws IllegalStateException |
void | resumeAsync () throws IllegalStateException |
void | switchCamera () throws IllegalStateException |
void | setAutoFocus (boolean autoFocus) throws IllegalStateException |
void | focusCameraAtAdjustedPoint (float x, float y, boolean autoFocus) throws IllegalArgumentException, IllegalStateException |
void | setZoom (int zoom) throws IllegalArgumentException, IllegalStateException |
int | getMaxZoom () throws IllegalStateException |
int | getCurrentZoom () throws IllegalStateException |
void | setMute (boolean mute) throws IllegalStateException |
void | setFlash (boolean flash) throws IllegalStateException |
void | setPushMirror (boolean mirror) throws IllegalStateException |
void | setPreviewMirror (boolean mirror) throws IllegalStateException |
void | setTargetVideoBitrate (int targetVideoBitrate) throws IllegalArgumentException, IllegalStateException |
void | setMinVideoBitrate (int minVideoBitrate) throws IllegalArgumentException, IllegalStateException |
boolean | isCameraSupportAutoFocus () |
boolean | isCameraSupportFlash () |
boolean | isPushing () throws IllegalStateException |
boolean | isNetworkPushing () throws IllegalStateException |
void | setCustomDetect (AlivcLivePushCustomDetect customVideoDetect) |
void | setCustomFilter (AlivcLivePushCustomFilter customVideoFilter) |
void | setCustomAudioFilter (AlivcLivePushCustomAudioFilter customAudioFilter) |
AlivcLivePushStats | getCurrentStatus () |
void | setLivePushErrorListener (AlivcLivePushErrorListener errorListener) |
void | setLivePushInfoListener (AlivcLivePushInfoListener infoListener) |
void | setLivePushNetworkListener (AlivcLivePushNetworkListener networkListener) |
void | setLivePushBGMListener (AlivcLivePushBGMListener pushBGMListener) |
void | setLivePushRenderContextListener (AlivcLivePusherRenderContextListener renderCtxListener) |
AlivcLivePushStatsInfo | getLivePushStatsInfo () throws IllegalStateException |
String | getPushUrl () |
void | setPreviewOrientation (AlivcPreviewOrientationEnum orientation) |
int | setAudioEffectVoiceChangeMode (AlivcLivePushAudioEffectVoiceChangeMode mode) |
int | setAudioEffectReverbMode (AlivcLivePushAudioEffectReverbMode mode) |
void | startBGMAsync (String path) throws IllegalStateException |
void | stopBGMAsync () throws IllegalStateException |
void | pauseBGM () throws IllegalStateException |
void | resumeBGM () throws IllegalStateException |
void | setBGMLoop (boolean isLoop) throws IllegalStateException |
void | setBGMEarsBack (boolean isOpen) throws IllegalStateException |
void | setBGMVolume (int volume) throws IllegalStateException, IllegalArgumentException |
void | setCaptureVolume (int volume) throws IllegalStateException, IllegalArgumentException |
void | setAudioDenoise (boolean on) |
int | startIntelligentDenoise () |
int | stopIntelligentDenoise () |
void | setQualityMode (AlivcQualityModeEnum mode) throws IllegalStateException |
void | setPreviewMode (AlivcPreviewDisplayMode mode) throws IllegalStateException |
void | pauseScreenCapture () throws IllegalStateException |
void | resumeScreenCapture () throws IllegalStateException |
AlivcLivePushError | getLastError () |
void | changeResolution (AlivcResolutionEnum resolution) |
void | addWaterMark (String path, float x, float y, float width) |
void | setWatermarkVisible (boolean visible) |
int | startCamera (SurfaceView surfaceView) throws IllegalStateException |
void | stopCamera () |
void | setScreenOrientation (int orientation) |
int | startCameraMix (float x, float y, float w, float h) |
void | stopCameraMix () |
void | snapshot (int count, int interval, AlivcSnapshotListener listener) |
void | inputStreamVideoPtr (long dataPtr, int width, int height, int stride, int size, long pts, int rotation) |
void | inputStreamVideoData (byte[] data, int width, int height, int stride, int size, long pts, int rotation) |
void | inputStreamAudioPtr (long dataPtr, int size, int sampleRate, int channels, long pts) |
void | inputStreamAudioData (byte[] data, int size, int sampleRate, int channels, long pts) |
int | addDynamicsAddons (String path, float x, float y, float w, float h) |
void | removeDynamicsAddons (int id) |
void | setExposure (int exposure) |
int | getCurrentExposure () |
int | getSupportedMinExposure () |
int | getSupportedMaxExposure () |
void | sendMessage (String info, int repeat, int delay, boolean isKeyFrame) |
int | setLiveMixTranscodingConfig (AlivcLiveTranscodingConfig config) |
int | muteLocalCamera (boolean mute) |
int | enableSpeakerphone (boolean enable) |
boolean | isSpeakerphoneOn () |
String | getLiveTraceId () |
Live pusher abstract class.
Definition at line 27 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.addDynamicsAddons | ( | String | path, |
float | x, | ||
float | y, | ||
float | w, | ||
float | h | ||
) |
add dynamic addons
path | dynamic addons path, contains 'config.json' |
x | x Position(0~1.0f) |
y | y Position(0~1.0f) |
w | width(0~1.0f) |
h | height(0~1.0f) |
Definition at line 1139 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.addWaterMark | ( | String | path, |
float | x, | ||
float | y, | ||
float | width | ||
) |
add water mark, start position: x[0,width) y[0,height) w(0,width], max count is 3
path | water mark path |
x | the relative position of the x-axis position at the upper left corner of the watermark is 0-1 |
y | the relative position of the y-axis at the upper right corner of the watermark is 0-1 |
width | the relative position of watermark display width 0~1 |
Definition at line 946 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.changeResolution | ( | AlivcResolutionEnum | resolution | ) |
change resolution dynamically
resolution | resolution |
Definition at line 929 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.destroy | ( | ) | throws IllegalStateException |
destroy pusher
IllegalStateException | If the status is invalid, such as not yet initialized |
Definition at line 80 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.enableSpeakerphone | ( | boolean | enable | ) |
Set current audio device output
enable | true:speakerphone(as default);false:earphone |
Definition at line 1275 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.focusCameraAtAdjustedPoint | ( | float | x, |
float | y, | ||
boolean | autoFocus | ||
) | throws IllegalArgumentException, IllegalStateException |
change camera focus at adjusted point
x | x position |
y | y position |
autoFocus | auto focus |
IllegalStateException | If the status is invalid, such as Not Initialized/Not startPreview |
Definition at line 319 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.getCurrentExposure | ( | ) |
AlivcLivePushStats com.alivc.live.pusher.AlivcLivePusher.getCurrentStatus | ( | ) |
int com.alivc.live.pusher.AlivcLivePusher.getCurrentZoom | ( | ) | throws IllegalStateException |
Get current zoom
IllegalStateException | If the status is invalid, such as Not Initialized/Not startPreview |
Definition at line 361 of file AlivcLivePusher.java.
AlivcLivePushError com.alivc.live.pusher.AlivcLivePusher.getLastError | ( | ) |
AlivcLivePushStatsInfo com.alivc.live.pusher.AlivcLivePusher.getLivePushStatsInfo | ( | ) | throws IllegalStateException |
get live push stats info
IllegalStateException | If the status is invalid, such as Not Initialized |
Definition at line 630 of file AlivcLivePusher.java.
String com.alivc.live.pusher.AlivcLivePusher.getLiveTraceId | ( | ) |
Get live trace id
Definition at line 1303 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.getMaxZoom | ( | ) | throws IllegalStateException |
Get max zoom of camera
IllegalStateException | If the status is invalid, such as Not Initialized/Not startPreview |
Definition at line 347 of file AlivcLivePusher.java.
String com.alivc.live.pusher.AlivcLivePusher.getPushUrl | ( | ) |
int com.alivc.live.pusher.AlivcLivePusher.getSupportedMaxExposure | ( | ) |
Get max supported exposure
Definition at line 1204 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.getSupportedMinExposure | ( | ) |
Get min supported exposure
Definition at line 1191 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.init | ( | Context | context, |
AlivcLivePushConfig | config | ||
) | throws IllegalArgumentException, IllegalStateException |
init push config
context | context |
config | push config |
IllegalArgumentException | If config is null or the value of config is invalid (for example, the bitrate value exceeds the range) |
IllegalStateException | If the status is invalid, for example, it has been initialized but has not been destroyed |
Definition at line 42 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.inputStreamAudioData | ( | byte[] | data, |
int | size, | ||
int | sampleRate, | ||
int | channels, | ||
long | pts | ||
) |
input external audio stream data
data | audio data byte array |
size | audio size |
sampleRate | audio sample rate |
channels | audio channels |
pts | audio data pts(US) |
Definition at line 1121 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.inputStreamAudioPtr | ( | long | dataPtr, |
int | size, | ||
int | sampleRate, | ||
int | channels, | ||
long | pts | ||
) |
input external audio stream data
dataPtr | audio data ptr |
size | audio size |
sampleRate | audio sample rate |
channels | audio channels |
pts | audio data pts(US) |
Definition at line 1102 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.inputStreamVideoData | ( | byte[] | data, |
int | width, | ||
int | height, | ||
int | stride, | ||
int | size, | ||
long | pts, | ||
int | rotation | ||
) |
input external video stream data
data | video image byte array |
width | video image width |
height | video image height |
stride | video image stride |
size | video image size |
pts | video image pts(us) |
rotation | video image rotation |
Definition at line 1083 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.inputStreamVideoPtr | ( | long | dataPtr, |
int | width, | ||
int | height, | ||
int | stride, | ||
int | size, | ||
long | pts, | ||
int | rotation | ||
) |
input external video stream data
dataPtr | video image data ptr |
width | video image width |
height | video image height |
stride | video image stride |
size | video image size |
pts | video image pts(us) |
rotation | video image rotation |
Definition at line 1062 of file AlivcLivePusher.java.
boolean com.alivc.live.pusher.AlivcLivePusher.isCameraSupportAutoFocus | ( | ) |
if camera support auto focus
Definition at line 458 of file AlivcLivePusher.java.
boolean com.alivc.live.pusher.AlivcLivePusher.isCameraSupportFlash | ( | ) |
boolean com.alivc.live.pusher.AlivcLivePusher.isNetworkPushing | ( | ) | throws IllegalStateException |
is network pushing
IllegalStateException | If the status is invalid, such as Not Initialized/Not startPush |
Definition at line 499 of file AlivcLivePusher.java.
boolean com.alivc.live.pusher.AlivcLivePusher.isPushing | ( | ) | throws IllegalStateException |
is pushing
IllegalStateException | If the status is invalid, such as Not Initialized/Not startPush |
Definition at line 485 of file AlivcLivePusher.java.
boolean com.alivc.live.pusher.AlivcLivePusher.isSpeakerphoneOn | ( | ) |
Get current audio device output
Definition at line 1289 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.muteLocalCamera | ( | boolean | mute | ) |
mute local camera
mute | true->do not send video frames, false->resume to normal |
Definition at line 1260 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.pause | ( | ) | throws IllegalStateException |
pause push
IllegalStateException | If the status is invalid, such as Not Initialized/Not startPreview/Not startPush/pause |
Definition at line 250 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.pauseBGM | ( | ) | throws IllegalStateException |
pause BGM
IllegalStateException | invalid status |
Definition at line 728 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.pauseScreenCapture | ( | ) | throws IllegalStateException |
pause screen capture(Open privacy settings)
IllegalStateException | If the status is invalid, such as not Initialized/not startPreview/not startPush/pause |
Definition at line 890 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.reconnectPushAsync | ( | String | url | ) | throws IllegalStateException |
reconnect push async
url | push url |
IllegalStateException | If the status is invalid, such as Not Initialized/Not startPreview/Not startPush/stopPush |
Definition at line 224 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.removeDynamicsAddons | ( | int | id | ) |
remove dynamic addons
id | dynamic addons id |
Definition at line 1152 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.restartPush | ( | ) | throws IllegalStateException |
restart push
IllegalStateException | If the status is invalid, such as Not Initialized/Not startPreview/Not startPush/stopPush |
Definition at line 197 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.restartPushAsync | ( | ) | throws IllegalStateException |
restart push async
IllegalStateException | If the status is invalid, such as Not Initialized/Not startPreview/Not startPush/stopPush |
Definition at line 210 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.resume | ( | ) | throws IllegalStateException |
resume push
IllegalStateException | If the status is invalid, such as Not Initialized/Not startPreview/Not startPush/resume |
Definition at line 263 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.resumeAsync | ( | ) | throws IllegalStateException |
resume push async
IllegalStateException | If the status is invalid, such as Not Initialized/Not startPreview/Not startPush/resume |
Definition at line 276 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.resumeBGM | ( | ) | throws IllegalStateException |
resume BGM
IllegalStateException | invalid status |
Definition at line 741 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.resumeScreenCapture | ( | ) | throws IllegalStateException |
resume screen capture(Close privacy settings)
IllegalStateException | If the status is invalid, such as not Initialized/not startPreview/not startPush/pause/resume |
Definition at line 903 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.sendMessage | ( | String | info, |
int | repeat, | ||
int | delay, | ||
boolean | isKeyFrame | ||
) |
Send SEI
info | The SEI message, recommended format is json |
repeat | send frames |
delay | send delay |
isKeyFrame | is key frame |
Definition at line 1220 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setAudioDenoise | ( | boolean | on | ) |
set audio denoise
on | true:open false:close |
Definition at line 812 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.setAudioEffectReverbMode | ( | AlivcLivePushAudioEffectReverbMode | mode | ) |
set audio effect reverb mode
mode | audio effect reverb mode |
Definition at line 688 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.setAudioEffectVoiceChangeMode | ( | AlivcLivePushAudioEffectVoiceChangeMode | mode | ) |
set audio effect voice change mode
mode | audio effect voice change mode |
Definition at line 672 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setAutoFocus | ( | boolean | autoFocus | ) | throws IllegalStateException |
set auto focus
autoFocus | auto focus |
IllegalStateException | If the status is invalid, such as Not Initialized/Not startPreview |
Definition at line 303 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setBGMEarsBack | ( | boolean | isOpen | ) | throws IllegalStateException |
set ears back
isOpen | is open |
IllegalStateException | invalid status |
Definition at line 769 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setBGMLoop | ( | boolean | isLoop | ) | throws IllegalStateException |
set BGM loop
isLoop | is loop |
IllegalStateException | invalid status |
Definition at line 755 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setBGMVolume | ( | int | volume | ) | throws IllegalStateException, IllegalArgumentException |
set BGM volume
volume | bgm volume, range:[0 ~ 100] default:50 |
IllegalStateException | invalid state |
IllegalArgumentException | invalid argument |
Definition at line 784 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setCaptureVolume | ( | int | volume | ) | throws IllegalStateException, IllegalArgumentException |
set capture volume
volume | capture volume, range:[0 ~ 100] default:50 |
IllegalStateException | invalid state |
IllegalArgumentException | invalid argument |
Definition at line 799 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setCustomAudioFilter | ( | AlivcLivePushCustomAudioFilter | customAudioFilter | ) |
Set user-defined audio processing callbacks
customAudioFilter | custom audio filter |
Definition at line 538 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setCustomDetect | ( | AlivcLivePushCustomDetect | customVideoDetect | ) |
set user-defined custom video detect callback
customVideoDetect | custom detect callback |
Definition at line 512 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setCustomFilter | ( | AlivcLivePushCustomFilter | customVideoFilter | ) |
set user-defined custom video filter callback
customVideoFilter | custom video filter |
Definition at line 525 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setExposure | ( | int | exposure | ) |
Set camera exposure
exposure | camera exposure |
Definition at line 1165 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setFlash | ( | boolean | flash | ) | throws IllegalStateException |
set flash
flash | true:open flash false:close flash |
IllegalStateException | If the status is invalid, such as Not Initialized/Not startPreview |
Definition at line 389 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.setLiveMixTranscodingConfig | ( | AlivcLiveTranscodingConfig | config | ) |
Set live mix transcoding config for cloud stream
config | live mix transcoding config |
Definition at line 1242 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setLivePushBGMListener | ( | AlivcLivePushBGMListener | pushBGMListener | ) |
set push BGM listener
pushBGMListener | push BGM listener |
Definition at line 603 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setLivePusherReference | ( | AlivcLivePusher | livePusher | ) |
set live pusher instance
livePusher | live pusher instance |
Definition at line 93 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setLivePushErrorListener | ( | AlivcLivePushErrorListener | errorListener | ) |
set push error listener
errorListener | push error listener |
Definition at line 564 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setLivePushInfoListener | ( | AlivcLivePushInfoListener | infoListener | ) |
set push info listener
infoListener | push info listener |
Definition at line 577 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setLivePushNetworkListener | ( | AlivcLivePushNetworkListener | networkListener | ) |
set push network listener
networkListener | push network listener |
Definition at line 590 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setLivePushRenderContextListener | ( | AlivcLivePusherRenderContextListener | renderCtxListener | ) |
set push render context listener
renderCtxListener | push render context listener |
Definition at line 616 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setMinVideoBitrate | ( | int | minVideoBitrate | ) | throws IllegalArgumentException, IllegalStateException |
set min video bitrate(Kbps)
minVideoBitrate | min video bitrate |
IllegalStateException | If the status is invalid, such as Not Initialized/Not startPreview/Not startPush |
Definition at line 445 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setMute | ( | boolean | mute | ) | throws IllegalStateException |
set mute
mute | true:mute local false:normal |
IllegalStateException | If the status is invalid, such as Not Initialized/Not startPreview/Not startPush |
Definition at line 375 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setPreviewMirror | ( | boolean | mirror | ) | throws IllegalStateException |
set preview mirror
mirror | true:preview mirror false:normal |
IllegalStateException | If the status is invalid, such as Not Initialized/Not startPreview |
Definition at line 417 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setPreviewMode | ( | AlivcPreviewDisplayMode | mode | ) | throws IllegalStateException |
set preview mode
mode | preview mode |
IllegalStateException | invalid state |
Definition at line 877 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setPreviewOrientation | ( | AlivcPreviewOrientationEnum | orientation | ) |
set preview orientation
orientation | preview orientation |
Definition at line 656 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setPushMirror | ( | boolean | mirror | ) | throws IllegalStateException |
set push mirror
mirror | true:push mirror false:normal |
IllegalStateException | If the status is invalid, such as Not Initialized/Not startPreview/Not startPush |
Definition at line 403 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setQualityMode | ( | AlivcQualityModeEnum | mode | ) | throws IllegalStateException |
set quality mode
mode | quality mode |
IllegalStateException | invalid state |
Definition at line 863 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setScreenOrientation | ( | int | orientation | ) |
Set the induced screen rotation angle in screen recording mode
orientation | screen orientation |
Definition at line 998 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setTargetVideoBitrate | ( | int | targetVideoBitrate | ) | throws IllegalArgumentException, IllegalStateException |
Set target video bitrate(Kbps)
targetVideoBitrate | target video bitrate |
IllegalStateException | If the status is invalid, such as Not Initialized/Not startPreview/Not startPush |
Definition at line 431 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setWatermarkVisible | ( | boolean | visible | ) |
set watermark visible
visible | visible |
Definition at line 959 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setZoom | ( | int | zoom | ) | throws IllegalArgumentException, IllegalStateException |
set zoom
zoom | 0~getMaxZoom() |
IllegalStateException | If the status is invalid, such as Not Initialized/Not startPreview |
Definition at line 333 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.snapshot | ( | int | count, |
int | interval, | ||
AlivcSnapshotListener | listener | ||
) |
video stream snapshot
count | 截取图片的个数,该参数仅在普通模式下生效 |
interval | 每张图片的间隔,该参数仅在普通模式下生效 |
listener | 截图回调 |
Definition at line 1041 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.startBGMAsync | ( | String | path | ) | throws IllegalStateException |
start BGM async
path | BGM path |
IllegalStateException | invalid status |
Definition at line 702 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.startCamera | ( | SurfaceView | surfaceView | ) | throws IllegalStateException |
Enable camera preview in screen recording mode If preview is not required, fill in null for surfaceView
surfaceView | surfaceView |
Definition at line 974 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.startCameraMix | ( | float | x, |
float | y, | ||
float | w, | ||
float | h | ||
) |
Enable camera mixing in screen recording mode
x | Mixed flow display x initial position (0~1.0f) |
y | Mixed flow display y initial position (0~1.0f) |
w | Mixed flow display width (0~1.0f) |
h | Mixed flow display height (0~1.0f) |
Definition at line 1015 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.startIntelligentDenoise | ( | ) |
open intelligent denoise
Definition at line 835 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.startPreview | ( | SurfaceView | surfaceView | ) | throws IllegalArgumentException, IllegalStateException |
start preview
surfaceView | surfaceView |
IllegalArgumentException | If the surfaceView is null, or the surface of the surfaceView has not been created/destroyed |
IllegalStateException | If the status is invalid, such as not initialized yet |
Definition at line 108 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.startPreview | ( | Context | context, |
FrameLayout | frameLayout, | ||
boolean | isAnchor | ||
) | throws IllegalArgumentException, IllegalStateException |
start preview
context | android context |
frameLayout | FrameLayout Container |
isAnchor | is anchor |
IllegalArgumentException | error argument |
IllegalStateException | error state |
Definition at line 141 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.startPreviewAsync | ( | SurfaceView | surfaceView | ) | throws IllegalArgumentException, IllegalStateException |
start Preview async
surfaceView | surfaceView |
IllegalArgumentException | If the surfaceView is null, or the surface of the surfaceView has not been created/destroyed |
IllegalStateException | If the status is invalid, such as not initialized yet |
Definition at line 123 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.startPush | ( | String | url | ) | throws IllegalArgumentException, IllegalStateException |
start push
url | push url |
IllegalArgumentException | If the url is empty or not in a valid url format |
IllegalStateException | If the status is invalid, such as not Initialized/not startPreview |
Definition at line 169 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.startPushAsync | ( | String | url | ) | throws IllegalArgumentException, IllegalStateException |
start push async
url | push url |
IllegalArgumentException | If the url is empty or not in a valid url format |
IllegalStateException | If the status is invalid, such as not Initialized/not startPreview |
Definition at line 184 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.stopBGMAsync | ( | ) | throws IllegalStateException |
stop BGM async
IllegalStateException | invalid status |
Definition at line 715 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.stopCamera | ( | ) |
Turn off camera preview in screen recording mode
Definition at line 985 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.stopCameraMix | ( | ) |
Stop camera mixing in screen recording mode
Definition at line 1026 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.stopIntelligentDenoise | ( | ) |
stop intelligent denoise
Definition at line 849 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.stopPreview | ( | ) | throws IllegalStateException |
stop preview
IllegalStateException | If the status is invalid, such as not Initialized/not startPreview |
Definition at line 154 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.stopPush | ( | ) | throws IllegalStateException |
stop push
IllegalStateException | If the status is invalid, such as Not Initialized/Not startPreview/Not startPush/stopPush |
Definition at line 237 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.switchCamera | ( | ) | throws IllegalStateException |
switch camera
IllegalStateException | If the status is invalid, such as Not Initialized/Not startPreview |
Definition at line 289 of file AlivcLivePusher.java.