「Main API」 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 isFullScreen) throws IllegalArgumentException, IllegalStateException |
void | updatePreview (Context context, FrameLayout frameLayout, boolean isFullScreen) |
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 | setMute (boolean mute, AlivcLiveMuteLocalAudioMode muteLocalAudioMode) |
void | setFlash (boolean flash) throws IllegalStateException |
void | setPushMirror (boolean mirror) throws IllegalStateException |
void | setPreviewMirror (boolean mirror) throws IllegalStateException |
int | setVideoMirrorMode (AlivcLiveVideoMirrorMode mirrorMode) |
void | setVideoConfig (AlivcLivePushVideoConfig videoConfig) |
AlivcLivePushVideoConfig | getVideoConfig () |
void | setTargetVideoBitrate (int targetVideoBitrate) throws IllegalArgumentException, IllegalStateException |
void | setMinVideoBitrate (int minVideoBitrate) throws IllegalArgumentException, IllegalStateException |
void | refreshPushURLToken (String url) |
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 | setLivePushAudioFrameListener (AlivcLivePushAudioFrameListener pushAudioFrameListener) |
void | setLivePushRenderContextListener (AlivcLivePusherRenderContextListener renderCtxListener) |
AlivcLivePushStatsInfo | getLivePushStatsInfo () throws IllegalStateException |
String | getPushUrl () |
int | setParameter (String parameter) |
String | getParameter (String parameter) |
void | setPreviewOrientation (AlivcPreviewOrientationEnum orientation) |
int | startBGMAsync (String path) throws IllegalStateException |
int | startBGMAsync (String path, AlivcLiveBGMConfig bgmConfig) |
void | stopBGMAsync () throws IllegalStateException |
int | getBGMDuration () |
int | getBGMCurrentPosition () |
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 enable) |
int | startIntelligentDenoise () |
int | stopIntelligentDenoise () |
void | setQualityMode (AlivcQualityModeEnum mode) throws IllegalStateException |
void | setPreviewMode (AlivcPreviewDisplayMode mode) throws IllegalStateException |
void | pauseScreenCapture () throws IllegalStateException |
void | resumeScreenCapture () throws IllegalStateException |
AlivcEncodeType | getVideoCodecType () |
AlivcLivePushError | getLastError () |
void | changeResolution (AlivcResolutionEnum resolution) |
void | addWaterMark (String path, float x, float y, float width) |
void | addWaterMark (Bitmap bitmap, 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 () |
boolean | startLocalRecord (AlivcLiveLocalRecordConfig localRecordConfig) |
void | stopLocalRecord () |
int | startScreenShare () |
int | stopScreenShare () |
int | startLocalDualAudioStream () |
int | stopLocalDualAudioStream () |
void | snapshot (int count, int interval, AlivcSnapshotListener listener) |
void | setExternalVideoSource (boolean enable, boolean useTexture, AlivcLivePlayVideoStreamType videoStreamType, AlivcPreviewDisplayMode previewDisplayMode) |
int | pushExternalVideoFrame (AlivcLivePusherRawDataSample rawDataSample, AlivcLivePlayVideoStreamType videoStreamType) |
int | setMixedWithMic (boolean mixed) |
int | addExternalAudioStream (AlivcLivePushExternalAudioStreamConfig externalAudioStreamConfig) |
int | pushExternalAudioStream (int streamId, AlivcLivePushAudioFrame audioFrame) |
int | setExternalAudioStreamPlayoutVolume (int streamId, int playoutVolume) |
int | setExternalAudioStreamPublishVolume (int streamId, int publishVolume) |
int | removeExternalAudioStream (int streamId) |
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 () |
int | enableSEIVideoStream (boolean enable) |
void | sendMessage (String info, int repeat, int delay, boolean isKeyFrame) |
void | sendMessage (String info, int repeat, int delay, boolean isKeyFrame, int payloadType) |
int | sendDataChannelMessage (String message) |
int | setLiveMixTranscodingConfig (AlivcLiveTranscodingConfig config) |
int | muteLocalCamera (boolean mute) |
int | enableLocalCamera (boolean enable) |
int | startAudioCapture (boolean keepAlive) |
int | stopAudioCapture () |
int | enableSpeakerphone (boolean enable) |
boolean | isSpeakerphoneOn () |
int | setChannelProfile (AlivcLiveChannelProfile channelProfile) |
int | setAudioProfile (AlivcLiveAudioProfileQualityMode audioProfileQualityMode) |
int | setAudioEffectVoiceChangeMode (AlivcLivePushAudioEffectVoiceChangeMode mode) |
int | setAudioEffectReverbMode (AlivcLivePushAudioEffectReverbMode mode) |
int | setAudioEffectPitchValue (double value) |
int | setAudioEffectBeautifyMode (AlivcLiveAudioEffectBeautifyMode audioEffectBeautifyMode) |
int | setAudioEffectReverbParamType (AlivcLiveAudioEffectReverbParamType audioEffectReverbParamType, float value) |
int | setAudioEffectEqualizationParam (AlivcLiveAudioEffectEqualizationBandFrequency audioEffectEqualizationBandFrequency, float gain) |
int | enableAudioVolumeIndication (int interval, int smooth, int reportVad) |
int | enableAudioFrameObserver (boolean enable, AlivcLiveAudioSource audioSource, AlivcLiveAudioFrameObserverConfig config) |
int | preloadAudioEffect (int soundId, String filePath) |
int | unloadAudioEffect (int soundId) |
int | playAudioEffect (int soundId, String filePath, AlivcLiveAudioEffectConfig config) |
int | stopAudioEffect (int soundId) |
int | stopAllAudioEffects () |
int | setAudioEffectPublishVolume (int soundId, int volume) |
int | getAudioEffectPublishVolume (int soundId) |
int | setAudioEffectPlayoutVolume (int soundId, int volume) |
int | getAudioEffectPlayoutVolume (int soundId) |
int | setAllAudioEffectsPublishVolume (int volume) |
int | setAllAudioEffectsPlayoutVolume (int volume) |
int | pauseAudioEffect (int soundId) |
int | pauseAllAudioEffects () |
int | resumeAudioEffect (int soundId) |
int | resumeAllAudioEffects () |
int | startLastMileDetect (AlivcLiveNetworkQualityProbeConfig networkQualityProbeConfig) |
int | stopLastMileDetect () |
AlivcLiveVideoCodecManufacturer | getCurrentEncoderManufacturer (boolean isCameraStream) |
String | getLiveTraceId () |
「Main API」 Live pusher abstract class
Definition at line 42 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 1636 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.addExternalAudioStream | ( | AlivcLivePushExternalAudioStreamConfig | externalAudioStreamConfig | ) |
Add external audio stream
externalAudioStreamConfig | External audio stream configuration |
Definition at line 1473 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.addWaterMark | ( | Bitmap | bitmap, |
float | x, | ||
float | y, | ||
float | width | ||
) |
add water mark, start position: x[0, width) y[0, height) w(0, width]
bitmap | water mark bitmap (type: rgba) |
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 |
com.alivc.live.pusher.AlivcLivePushInfoListener#onPreviewStarted(AlivcLivePusher)
has been called Definition at line 1218 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 |
com.alivc.live.pusher.AlivcLivePushInfoListener#onPreviewStarted(AlivcLivePusher)
has been called Definition at line 1199 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.changeResolution | ( | AlivcResolutionEnum | resolution | ) |
change resolution dynamically
resolution | resolution |
AlivcLivePusher#setVideoConfig(AlivcLivePushVideoConfig)
instead AlivcLivePushConfig#setResolution(AlivcResolutionEnum)
AlivcLivePusher#changeResolution(AlivcResolutionEnum)
AlivcLivePusher#setTargetVideoBitrate(int)
,AlivcLivePusher#setMinVideoBitrate(int)
com.alivc.live.player.AlivcLivePlayInfoListener#onVideoResolutionChanged(int, int)
Definition at line 1181 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 |
com.alivc.live.pusher.AlivcLivePusher#init(Context, AlivcLivePushConfig)
Definition at line 97 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.enableAudioFrameObserver | ( | boolean | enable, |
AlivcLiveAudioSource | audioSource, | ||
AlivcLiveAudioFrameObserverConfig | config | ||
) |
Set audio raw data callback parameters
enable | Allow audio data callback |
audioSource | Callback data source type |
config | Callback parameter settings |
Definition at line 2083 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.enableAudioVolumeIndication | ( | int | interval, |
int | smooth, | ||
int | reportVad | ||
) |
Set the volume callback frequency and smoothing coefficient
interval | Time interval, unit: ms, default value: 300ms; Value range: The minimum value is ≥ 10ms, and it is recommended to set it to 300ms~500ms; A value of ≤ 0 indicates that the volume prompt and speaker prompt functions are not enabled. |
smooth | The smoothing coefficient, the higher the numerical value, the higher the smoothness, and the lower the inverse value, the better the real-time performance. Default value: 3; Value range: 0-9, recommended to be set to 3. |
reportVad | Local voice detection switch. 1: Enable and call back through the AlivcLivePushInfoListener#onMicrophoneVolumeUpdate(AlivcLivePusher, int) interface; 0 (default): Off. |
Definition at line 2063 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.enableLocalCamera | ( | boolean | enable | ) |
Disable or enable local video capture
enable | True ->Enable video capture, false ->Turn off video capture |
com.alivc.live.player.AlivcLivePlayInfoListener#onVideoEnabled(boolean)
com.alivc.live.pusher.AlivcLivePusher#muteLocalCamera(boolean)
Definition at line 1848 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.enableSEIVideoStream | ( | boolean | enable | ) |
Enable SEI video streaming
enable | turn on or off |
AlivcLivePusher#enableLocalCamera(boolean)
is called to turn off camera capture, the video will not be sent by default; AlivcLivePusher#sendMessage(String, int, int, boolean)
interface is subsequently called to send SEI information, the SDK will default to sending 16x16 all black image streams/20fps video streams to carry SEI information; Definition at line 1719 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 1899 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 394 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.getAudioEffectPlayoutVolume | ( | int | soundId | ) |
Get local playback volume for audio effects
soundId | The ID assigned by the user to the audio effect file |
Definition at line 2224 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.getAudioEffectPublishVolume | ( | int | soundId | ) |
Get audio effect streaming mix volume
soundId | The ID assigned by the user to the audio effect file |
Definition at line 2193 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.getBGMCurrentPosition | ( | ) |
Get the playback progress of the BGM file
Definition at line 944 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.getBGMDuration | ( | ) |
Get BGM file duration
Definition at line 929 of file AlivcLivePusher.java.
AlivcLiveVideoCodecManufacturer com.alivc.live.pusher.AlivcLivePusher.getCurrentEncoderManufacturer | ( | boolean | isCameraStream | ) |
Obtain the currently used codec type, if streaming has not started, return an invalid type
isCameraStream | true->Obtain the encoder type of the camera stream; false ->Obtain the encoder type for the shared stream |
Definition at line 2359 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.getCurrentExposure | ( | ) |
AlivcLivePushStats com.alivc.live.pusher.AlivcLivePusher.getCurrentStatus | ( | ) |
get current status
Definition at line 712 of file AlivcLivePusher.java.
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 436 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 811 of file AlivcLivePusher.java.
String com.alivc.live.pusher.AlivcLivePusher.getLiveTraceId | ( | ) |
Get live trace id
Definition at line 2373 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 422 of file AlivcLivePusher.java.
String com.alivc.live.pusher.AlivcLivePusher.getParameter | ( | String | parameter | ) |
Get parameter
parameter | parameter |
Definition at line 854 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 1701 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.getSupportedMinExposure | ( | ) |
Get min supported exposure
Definition at line 1688 of file AlivcLivePusher.java.
AlivcEncodeType com.alivc.live.pusher.AlivcLivePusher.getVideoCodecType | ( | ) |
Get the current video encoding format
Definition at line 1149 of file AlivcLivePusher.java.
AlivcLivePushVideoConfig com.alivc.live.pusher.AlivcLivePusher.getVideoConfig | ( | ) |
Get video configuration
Definition at line 556 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.init | ( | Context | context, |
AlivcLivePushConfig | config | ||
) | throws IllegalArgumentException, IllegalStateException |
Initialize pusher
context | android 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 |
com.alivc.live.pusher.AlivcLivePusher#destroy()
Definition at line 58 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 1617 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 (deprecated)
dataPtr | audio data ptr |
size | audio size |
sampleRate | audio sample rate |
channels | audio channels |
pts | audio data pts(US) |
AlivcLivePusher#inputStreamAudioData(byte[], int, int, int, long)
instead Definition at line 1599 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 1579 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 (deprecated)
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 |
AlivcLivePusher#inputStreamVideoData(byte[], int, int, int, int, long, int)
instead Definition at line 1559 of file AlivcLivePusher.java.
boolean com.alivc.live.pusher.AlivcLivePusher.isCameraSupportAutoFocus | ( | ) |
if camera support auto focus
Definition at line 618 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 659 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 645 of file AlivcLivePusher.java.
boolean com.alivc.live.pusher.AlivcLivePusher.isSpeakerphoneOn | ( | ) |
Get current audio device output
Definition at line 1913 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 |
com.alivc.live.player.AlivcLivePlayInfoListener#onVideoMuted(boolean)
com.alivc.live.pusher.AlivcLivePushConfig#setPausePushImage(String)
, preview is normal, and subscriber will show pause image; com.alivc.live.pusher.AlivcLivePushConfig#setPausePushImage(String)
, preview is normal, and subscriber will show black screen; com.alivc.live.pusher.AlivcLivePusher#enableLocalCamera(boolean)
Definition at line 1830 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 |
AlivcLivePushConfig#setPausePushImage(String)
to set pause push image path before it can take effect com.alivc.live.pusher.AlivcLivePushInfoListener#onPushPaused(AlivcLivePusher)
com.alivc.live.pusher.AlivcLivePusher#resume()
com.alivc.live.pusher.AlivcLivePusher#resumeAsync()
Definition at line 321 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.pauseAllAudioEffects | ( | ) |
Pause all audio effects
Definition at line 2283 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.pauseAudioEffect | ( | int | soundId | ) |
Pause audio effect
soundId | The ID assigned by the user to the audio effect file |
Definition at line 2269 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.pauseBGM | ( | ) | throws IllegalStateException |
pause BGM
IllegalStateException | invalid status |
Definition at line 957 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 1122 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.playAudioEffect | ( | int | soundId, |
String | filePath, | ||
AlivcLiveAudioEffectConfig | config | ||
) |
Start playing audio effects
soundId | The ID assigned by the user to the audio effect file |
filePath | audio effect file path, supports local files and network urls |
config | audio effect playback configuration |
Definition at line 2133 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.preloadAudioEffect | ( | int | soundId, |
String | filePath | ||
) |
Preload audio effect files
soundId | The ID assigned by the user to the audio effect file |
filePath | audio effect file path, supports local files and network urls |
Definition at line 2100 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.pushExternalAudioStream | ( | int | streamId, |
AlivcLivePushAudioFrame | audioFrame | ||
) |
Input external audio stream data
streamId | external audio stream id |
audioFrame | external audio stream data |
Definition at line 1490 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.pushExternalVideoFrame | ( | AlivcLivePusherRawDataSample | rawDataSample, |
AlivcLivePlayVideoStreamType | videoStreamType | ||
) |
Input external video stream data
rawDataSample | raw video stream data |
videoStreamType | video stream type |
Definition at line 1443 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 |
com.alivc.live.pusher.AlivcLivePushInfoListener#onFirstFramePushed(AlivcLivePusher)
Definition at line 291 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.refreshPushURLToken | ( | String | url | ) |
Refresh the authentication information, pass in a new streaming URL with new token that has not expired, and the room ID/user ID/sdkAppId need to be the same as before
url | push url |
AlivcLivePushNetworkListener#onPushURLAuthenticationOverdue(AlivcLivePusher)
, the application should update the authentication information Definition at line 605 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.removeDynamicsAddons | ( | int | id | ) |
remove dynamic addons
id | dynamic addons id |
Definition at line 1649 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.removeExternalAudioStream | ( | int | streamId | ) |
Remove external audio stream
streamId | external audio stream id |
Definition at line 1537 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 |
com.alivc.live.pusher.AlivcLivePushInfoListener#onPushRestarted(AlivcLivePusher)
com.alivc.live.pusher.AlivcLivePushInfoListener#onFirstFramePushed(AlivcLivePusher)
com.alivc.live.pusher.AlivcLivePusher#stopPush()
Definition at line 260 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 |
com.alivc.live.pusher.AlivcLivePushInfoListener#onPushRestarted(AlivcLivePusher)
com.alivc.live.pusher.AlivcLivePushInfoListener#onFirstFramePushed(AlivcLivePusher)
com.alivc.live.pusher.AlivcLivePusher#stopPush()
Definition at line 276 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 |
com.alivc.live.pusher.AlivcLivePushInfoListener#onPushResumed(AlivcLivePusher)
com.alivc.live.pusher.AlivcLivePusher#pause()
Definition at line 336 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.resumeAllAudioEffects | ( | ) |
Resume all audio effect files
Definition at line 2312 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 |
com.alivc.live.pusher.AlivcLivePushInfoListener#onPushResumed(AlivcLivePusher)
com.alivc.live.pusher.AlivcLivePusher#pause()
Definition at line 351 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.resumeAudioEffect | ( | int | soundId | ) |
Resume specified audio effect files
soundId | The ID assigned by the user to the audio effect file |
Definition at line 2298 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.resumeBGM | ( | ) | throws IllegalStateException |
resume BGM
IllegalStateException | invalid status |
Definition at line 970 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 1135 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.sendDataChannelMessage | ( | String | message | ) |
The streaming end sends custom messages through data channel
message | custom messages |
com.alivc.live.pusher.AlivcLivePushConfig#setEnableDataChannelMessage(boolean)
com.alivc.live.player.AlivcLivePlayInfoListener#onReceiveDataChannelMessage(byte[])
com.alivc.live.pusher.AlivcLivePusher#sendMessage(String, int, int, boolean)
或 com.alivc.live.pusher.AlivcLivePusher#sendMessage(String, int, int, boolean, int)
Definition at line 1784 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 |
com.alivc.live.pusher.AlivcLivePusher#sendMessage(String, int, int, boolean, int)
com.alivc.live.player.AlivcLivePlayInfoListener#onReceiveSEIMessage(int, byte[])
com.alivc.live.pusher.AlivcLivePusher#sendDataChannelMessage(String)
AlivcLivePusher#enableSEIVideoStream(boolean)
Definition at line 1742 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.sendMessage | ( | String | info, |
int | repeat, | ||
int | delay, | ||
boolean | isKeyFrame, | ||
int | payloadType | ||
) |
Send SEI
info | The SEI message, recommended format is json |
repeat | send frames |
delay | send delay |
isKeyFrame | is key frame |
payloadType | SEI payload type, range: [5, 100..254] |
com.alivc.live.pusher.AlivcLivePusher#sendMessage(String, int, int, boolean)
com.alivc.live.player.AlivcLivePlayInfoListener#onReceiveSEIMessage(int, byte[])
com.alivc.live.pusher.AlivcLivePusher#sendDataChannelMessage(String)
AlivcLivePusher#enableSEIVideoStream(boolean)
Definition at line 1767 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.setAllAudioEffectsPlayoutVolume | ( | int | volume | ) |
Set local playback volume for all audio effects
volume | Local playback volume for audio effects, range: [0, 100], default value: 50 |
Definition at line 2254 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.setAllAudioEffectsPublishVolume | ( | int | volume | ) |
Set all audio effects streaming mix volume
volume | Push stream mixing volume, range: [0, 100], default value: 50 |
Definition at line 2239 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setAudioDenoise | ( | boolean | enable | ) |
set audio denoise
enable | true:open false:close |
Definition at line 1044 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.setAudioEffectBeautifyMode | ( | AlivcLiveAudioEffectBeautifyMode | audioEffectBeautifyMode | ) |
Set the sound mode
audioEffectBeautifyMode | sound mode |
Definition at line 2008 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.setAudioEffectEqualizationParam | ( | AlivcLiveAudioEffectEqualizationBandFrequency | audioEffectEqualizationBandFrequency, |
float | gain | ||
) |
Set equalizer parameters
audioEffectEqualizationBandFrequency | Number of equalizer segments[0,9] center frequency [31,62,125,250,500,1000,2000,4000,8000,16000] Hz |
gain | Equalizer gain db [-15,15] default 0 |
Definition at line 2043 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.setAudioEffectPitchValue | ( | double | value | ) |
Set audio effect pitch value
value | audio effect pitch value |
Definition at line 1992 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.setAudioEffectPlayoutVolume | ( | int | soundId, |
int | volume | ||
) |
Set local playback volume for audio effects
soundId | The ID assigned by the user to the audio effect file |
volume | Local playback volume for audio effects, range: [0, 100], default value: 50 |
Definition at line 2209 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.setAudioEffectPublishVolume | ( | int | soundId, |
int | volume | ||
) |
Set audio effects streaming mix volume
soundId | The ID assigned by the user to the audio effect file |
volume | Push stream mixing volume, range: [0, 100], default value: 50 |
Definition at line 2178 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 1976 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.setAudioEffectReverbParamType | ( | AlivcLiveAudioEffectReverbParamType | audioEffectReverbParamType, |
float | value | ||
) |
Set the reverb audio effect type
audioEffectReverbParamType | reverb audio effect type |
AlivcLivePusher#setAudioEffectReverbMode
Definition at line 2025 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 1960 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.setAudioProfile | ( | AlivcLiveAudioProfileQualityMode | audioProfileQualityMode | ) |
Set audio profile
audioProfileQualityMode | audio profile |
Definition at line 1944 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 378 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 998 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 984 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 1013 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 1028 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.setChannelProfile | ( | AlivcLiveChannelProfile | channelProfile | ) |
Set Channel Mode
channelProfile | Channel Mode, default: INTERACTIVE_LIVE |
Definition at line 1929 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 698 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 672 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setCustomFilter | ( | AlivcLivePushCustomFilter | customVideoFilter | ) |
set user-defined custom video filter callback (Video Pre-Processing Callback)
customVideoFilter | custom video filter |
Definition at line 685 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setExposure | ( | int | exposure | ) |
Set camera exposure
exposure | camera exposure |
Definition at line 1662 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.setExternalAudioStreamPlayoutVolume | ( | int | streamId, |
int | playoutVolume | ||
) |
Set external audio stream playback volume
streamId | external audio stream id |
playoutVolume | Play volume, range of values [0, 100] |
Definition at line 1506 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.setExternalAudioStreamPublishVolume | ( | int | streamId, |
int | publishVolume | ||
) |
Set external audio stream push volume
streamId | external audio stream id |
publishVolume | Push flow volume, value range [0, 100] |
Definition at line 1522 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setExternalVideoSource | ( | boolean | enable, |
boolean | useTexture, | ||
AlivcLivePlayVideoStreamType | videoStreamType, | ||
AlivcPreviewDisplayMode | previewDisplayMode | ||
) |
Enable external video input source
enable | Is it enabled |
useTexture | input texture data or not |
videoStreamType | video stream type |
previewDisplayMode | preview display mode |
Definition at line 1426 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 485 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 |
com.alivc.live.pusher.AlivcLivePushInfoListener#onSetLiveMixTranscodingConfig(AlivcLivePusher, boolean, String)
Definition at line 1810 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setLivePushAudioFrameListener | ( | AlivcLivePushAudioFrameListener | pushAudioFrameListener | ) |
set push audio sample raw data listener
pushAudioFrameListener | Audio raw data listener |
Definition at line 784 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setLivePushBGMListener | ( | AlivcLivePushBGMListener | pushBGMListener | ) |
set push BGM listener
pushBGMListener | push BGM listener |
Definition at line 770 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setLivePusherReference | ( | AlivcLivePusher | livePusher | ) |
set live pusher instance (No external calls required)
livePusher | live pusher instance |
Definition at line 111 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setLivePushErrorListener | ( | AlivcLivePushErrorListener | errorListener | ) |
set push error listener
errorListener | push error listener |
Definition at line 728 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setLivePushInfoListener | ( | AlivcLivePushInfoListener | infoListener | ) |
set push info listener
infoListener | push info listener |
Definition at line 742 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setLivePushNetworkListener | ( | AlivcLivePushNetworkListener | networkListener | ) |
set push network listener
networkListener | push network listener |
Definition at line 756 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 797 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 |
AlivcLivePusher#setVideoConfig(AlivcLivePushVideoConfig)
instead Definition at line 586 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.setMixedWithMic | ( | boolean | mixed | ) |
Set whether to mix audio with microphone collection
mixed | true ->mixing; false ->Completely replace the microphone to collect data |
Definition at line 1458 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setMute | ( | boolean | mute | ) | throws IllegalStateException |
Set audio mute
mute | true->mute audio, false->resume to normal |
IllegalStateException | If the status is invalid, such as Not Initialized/Not startPreview/Not startPush |
com.alivc.live.player.AlivcLivePlayInfoListener#onAudioMuted(boolean)
com.alivc.live.pusher.AlivcLivePusher#stopAudioCapture()
Definition at line 453 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setMute | ( | boolean | mute, |
AlivcLiveMuteLocalAudioMode | muteLocalAudioMode | ||
) |
Set audio mute
mute | true->mute audio, false->resume to normal |
muteLocalAudioMode | mute local audio mode,default: AlivcLiveMuteLocalAudioMode.DEFAULT |
com.alivc.live.player.AlivcLivePlayInfoListener#onAudioMuted(boolean)
com.alivc.live.pusher.AlivcLivePusher#stopAudioCapture()
Definition at line 471 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.setParameter | ( | String | parameter | ) |
Set parameter
parameter | parameter |
Definition at line 839 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 513 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 1109 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setPreviewOrientation | ( | AlivcPreviewOrientationEnum | orientation | ) |
set preview orientation
orientation | preview orientation |
Definition at line 867 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 499 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 1095 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 1270 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 |
AlivcLivePusher#setVideoConfig(AlivcLivePushVideoConfig)
instead Definition at line 571 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setVideoConfig | ( | AlivcLivePushVideoConfig | videoConfig | ) |
Set video configuration
videoConfig | video configuration |
Definition at line 543 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.setVideoMirrorMode | ( | AlivcLiveVideoMirrorMode | mirrorMode | ) |
set video mirror mode
mirrorMode | video pipeline mirror mode |
Definition at line 529 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.setWatermarkVisible | ( | boolean | visible | ) |
set watermark visible
visible | visible |
Definition at line 1231 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 408 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.snapshot | ( | int | count, |
int | interval, | ||
AlivcSnapshotListener | listener | ||
) |
video stream snapshot
count | The number of captured images, this parameter only takes effect in basic mode |
interval | The interval between each image, this parameter only takes effect in basic mode |
listener | snapshot callback |
Definition at line 1409 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.startAudioCapture | ( | boolean | keepAlive | ) |
Enable audio capture
keepAlive | true->audio capture is still enabled after stopping streaming, false->audio capture is stopped after stopping streaming |
com.alivc.live.pusher.AlivcLivePusher#stopAudioCapture()
com.alivc.live.pusher.AlivcLivePusher#setMute(boolean)
Definition at line 1866 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.startBGMAsync | ( | String | path | ) | throws IllegalStateException |
start BGM async
path | BGM path |
IllegalStateException | invalid status |
Definition at line 884 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.startBGMAsync | ( | String | path, |
AlivcLiveBGMConfig | bgmConfig | ||
) |
start BGM async
path | BGM path |
bgmConfig | BGM config |
Definition at line 901 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 1246 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 1287 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.startIntelligentDenoise | ( | ) |
open intelligent denoise
Definition at line 1067 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.startLastMileDetect | ( | AlivcLiveNetworkQualityProbeConfig | networkQualityProbeConfig | ) |
Start network quality detection
networkQualityProbeConfig | Network detection configuration |
AlivcLivePushNetworkListener#onLastMileDetectResultWithQuality(AlivcLivePusher, AlivcLiveNetworkQuality)
AlivcLivePushNetworkListener#onLastMileDetectResultWithBandWidth(AlivcLivePusher, int, AlivcLiveNetworkQualityProbeResult)
Definition at line 2330 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.startLocalDualAudioStream | ( | ) |
Start the dual audio stream push
AlivcLivePusher#addExternalAudioStream(AlivcLivePushExternalAudioStreamConfig)
to add the audio data source AlivcLivePushExternalAudioStreamConfig#publishStream
needs to pass 1 AlivcLivePusher#pushExternalAudioStream(int, AlivcLivePushAudioFrame)
to input audio data into the second audio channel AlivcLivePusher#stopLocalDualAudioStream()
Definition at line 1379 of file AlivcLivePusher.java.
boolean com.alivc.live.pusher.AlivcLivePusher.startLocalRecord | ( | AlivcLiveLocalRecordConfig | localRecordConfig | ) |
start local recording
localRecordConfig | local recording config |
AlivcLivePushInfoListener#onLocalRecordEvent(AlivcLiveRecordMediaEvent, String)
Definition at line 1316 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.startPreview | ( | Context | context, |
FrameLayout | frameLayout, | ||
boolean | isFullScreen | ||
) | throws IllegalArgumentException, IllegalStateException |
start preview (interactive mode only)
context | android context |
frameLayout | FrameLayout Container; The rendering view is created internally by the SDK and added to the container |
isFullScreen | Whether the rendered view is full screen; If the rendering view is full screen, it needs to be placed at the lowest level for full screen display to avoid obstructing other small window rendering views |
IllegalArgumentException | error argument |
IllegalStateException | error state |
com.alivc.live.pusher.AlivcLivePushInfoListener#onPreviewStarted(AlivcLivePusher)
com.alivc.live.pusher.AlivcLivePushInfoListener#onFirstFramePreviewed(AlivcLivePusher)
com.alivc.live.pusher.AlivcLivePusher#stopPreview()
com.alivc.live.pusher.AlivcLivePusher#updatePreview(Context, FrameLayout, boolean)
com.alivc.live.pusher.AlivcLivePushConfig#setPreviewDisplayMode(com.alivc.live.pusher.AlivcPreviewDisplayMode)
Definition at line 175 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.startPreview | ( | SurfaceView | surfaceView | ) | throws IllegalArgumentException, IllegalStateException |
start preview (basic mode only)
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 |
com.alivc.live.pusher.AlivcLivePushInfoListener#onPreviewStarted(AlivcLivePusher)
com.alivc.live.pusher.AlivcLivePushInfoListener#onFirstFramePreviewed(AlivcLivePusher)
com.alivc.live.pusher.AlivcLivePusher#stopPreview()
com.alivc.live.pusher.AlivcLivePushConfig#setPreviewDisplayMode(com.alivc.live.pusher.AlivcPreviewDisplayMode)
Definition at line 131 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.startPreviewAsync | ( | SurfaceView | surfaceView | ) | throws IllegalArgumentException, IllegalStateException |
start Preview async (basic mode only)
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 |
com.alivc.live.pusher.AlivcLivePushInfoListener#onPreviewStarted(AlivcLivePusher)
com.alivc.live.pusher.AlivcLivePushInfoListener#onFirstFramePreviewed(AlivcLivePusher)
com.alivc.live.pusher.AlivcLivePusher#stopPreview()
com.alivc.live.pusher.AlivcLivePushConfig#setPreviewDisplayMode(com.alivc.live.pusher.AlivcPreviewDisplayMode)
Definition at line 151 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 |
com.alivc.live.pusher.AlivcLivePushInfoListener#onPushStarted(AlivcLivePusher)
com.alivc.live.pusher.AlivcLivePushInfoListener#onFirstFramePushed(AlivcLivePusher)
com.alivc.live.pusher.AlivcLivePusher#stopPush()
Definition at line 226 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 |
com.alivc.live.pusher.AlivcLivePushInfoListener#onPushStarted(AlivcLivePusher)
com.alivc.live.pusher.AlivcLivePushInfoListener#onFirstFramePushed(AlivcLivePusher)
com.alivc.live.pusher.AlivcLivePusher#stopPush()
Definition at line 244 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.startScreenShare | ( | ) |
Start screen share
com.alivc.live.pusher.AlivcLivePushInfoListener#onScreenSharePublishStateChanged(AlivcLivePublishState, AlivcLivePublishState)
Definition at line 1347 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.stopAllAudioEffects | ( | ) |
Stop playing all audio effects
Definition at line 2162 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.stopAudioCapture | ( | ) |
stop audio capture
com.alivc.live.pusher.AlivcLivePusher#startAudioCapture(boolean)
com.alivc.live.pusher.AlivcLivePusher#setMute(boolean)
Definition at line 1884 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.stopAudioEffect | ( | int | soundId | ) |
Stop playing audio effects
soundId | The ID assigned by the user to the audio effect file |
Definition at line 2148 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.stopBGMAsync | ( | ) | throws IllegalStateException |
stop BGM async
IllegalStateException | invalid status |
Definition at line 914 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.stopCamera | ( | ) |
Turn off camera preview in screen recording mode
Definition at line 1257 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.stopCameraMix | ( | ) |
Stop camera mixing in screen recording mode
Definition at line 1298 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.stopIntelligentDenoise | ( | ) |
stop intelligent denoise
Definition at line 1081 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.stopLastMileDetect | ( | ) |
Stop network quality detection
Definition at line 2344 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.stopLocalDualAudioStream | ( | ) |
Stop the dual audio stream push
AlivcLivePusher#startLocalDualAudioStream()
Definition at line 1394 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.stopLocalRecord | ( | ) |
stop local recording
AlivcLivePushInfoListener#onLocalRecordEvent(AlivcLiveRecordMediaEvent, String)
Definition at line 1332 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 |
com.alivc.live.pusher.AlivcLivePusher#startPreview(SurfaceView)
Definition at line 206 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 304 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.stopScreenShare | ( | ) |
Stop screen share
Definition at line 1361 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 364 of file AlivcLivePusher.java.
int com.alivc.live.pusher.AlivcLivePusher.unloadAudioEffect | ( | int | soundId | ) |
Unload preloaded audio effect files
soundId | The ID assigned by the user to the audio effect file |
Definition at line 2115 of file AlivcLivePusher.java.
void com.alivc.live.pusher.AlivcLivePusher.updatePreview | ( | Context | context, |
FrameLayout | frameLayout, | ||
boolean | isFullScreen | ||
) |
Update preview view (interactive mode only)
context | android context |
frameLayout | FrameLayout container; The rendering view is created internally by the SDK and added to the container |
isFullScreen | Whether the rendered view is full screen; If the rendering view is full screen, it needs to be placed at the lowest level for full screen display to avoid obstructing other small window rendering views |
Definition at line 192 of file AlivcLivePusher.java.