Method | Description |
init | Initializes stream ingest parameters. |
destroy | Destroys the stream ingest engine. |
startPreview | Starts preview. In interactive mode, call the startPreview method in which you specify the FrameLayout parameter. |
startPreviewAysnc | Asynchronously starts preview. |
stopPreview | Stops preview. |
startPush | Starts stream ingest. |
startPushAysnc | Asynchronously starts stream ingest. |
restartPush | Restarts stream ingest. |
restartPushAync | Asynchronously restarts stream ingest. |
reconnectPushAsync | Reconnects and continues stream ingest. |
stopPush | Stops stream ingest. |
pause | Pauses stream ingest. |
resume | Resumes stream ingest. |
resumeAsync | Asynchronously resumes stream ingest. |
switchCamera | Switches between the front and rear cameras. |
setAutoFocus | Specifies whether to enable autofocus. |
focusCameraAtAdjustedPoint | Configures focus. The coordinates of the focus point are ([0,Screen width],[0,Screen width]). |
setZoom | Sets the zoom factor. Valid values: [0,getMaxZoom()]. |
getMaxZoom | Queries the maximum zoom factor supported by the camera. |
getCurrentZoom | Queries the current zoom factor. |
setMute | Specifies whether to mute the audio during stream ingest. |
setFlash | Specifies whether to enable the flash. |
setPushMirror | Specifies whether to enable the mirroring mode for stream ingest. |
setPreviewMirror | Specifies whether to enable the mirroring mode for preview. |
setTargetVideoBitrate | Specifies the target video bitrate. Valid values: [100,5000]. Unit: Kbit/s. |
setMinVideoBitrate | Specifies the minimum video bitrate. Valid values: [100,5000]. Unit: Kbit/s. |
isCameraSupportAutoFocus | Queries whether autofocus is supported. |
isCameraSupportFlash | Queries whether the flash is supported. |
isPushing | Queries whether a stream is being ingested. |
isNetworkPushing | Queries the current network status of stream ingest. |
setCustomDetect | Configures the callback for custom face recognition. |
setCustomFilter | Configures the callback for custom retouching. |
setCustomAudioFilter | Configures the callback for custom audio processing. |
getCurrentStatus | Queries the current status. |
setLivePushErrorListener | Sets the listener for errors related to stream ingest. |
setLivePushInfoListener | Sets the listener for notifications about stream ingest. |
setLivePushNetworkListener | Sets the listener for notifications about the network. |
setLivePushBGMListener | Sets the listener for notifications about the playback of background music. |
setLivePushRenderContextListener | Sets the listener for the rendering context. |
getLivePushStatsInfo | Queries the statistics on stream ingest. |
getPushUrl | Queries the ingest URL. |
setPreviewOrientation | Sets the stream ingest orientation. By default, streams are ingested in portrait mode. |
setAudioEffectVoiceChangeMode | Sets the voice change mode. |
setAudioEffectReverbMode | Sets the reverberation mode. |
startBGMAsync | Plays background music. |
stopBGMAsync | Stops the playback of background music. |
pauseBGM | Pauses the playback of background music. |
resumeBGM | Resumes the playback of background music. |
setBGMLoop | Specifies whether to enable loop playback for background music. |
setBGMEarsBack | Specifies whether to enable in-ear monitoring. |
setBGMVolume | Sets the music volume for the mixed background music. |
setCaptureVolume | Sets the voice volume for the mixed background music. |
setAudioDenoise | Specifies whether to enable noise reduction. |
startIntelligentDenoise | Enables intelligent noise reduction. |
stopIntelligentDenoise | Disables intelligent noise reduction. |
setQualityMode | Sets the video resolution. |
setPreviewMode | Sets the preview mode. |
pauseScreenCapture | Pauses screen recording during stream ingest with privacy protection enabled. |
resumeScreenCapture | Resumes screen recording during stream ingest with privacy protection disabled. |
getLastError | Queries the recently returned error codes. |
changeResolution | Dynamically adjusts the video resolution. |
addWaterMark | Adds a watermark. You can add up to three watermarks. The coordinates of the initial position are ([0,width),[0,height)). The value range of the width is (0,width]. You can call this method after you call the startPreview method. |
setWatermarkVisible | Specifies whether to make watermarks visible. |
startCamera | Enables the camera preview during screen recording. If the preview is not required, set the surfaceview parameter to null. |
stopCamera | Disables the camera preview during screen recording. |
setScreenOrientation | Sets the rotation angle for the screen during screen recording. |
startCameraMix | Enables the camera mixing during screen recording. |
stopCameraMix | Disables the camera mixing during screen recording. |
snapshot | Captures snapshots of the video stream. |
inputStreamVideoPtr | Specifies the pointer for the custom video stream. |
inputStreamVideoData | Specifies the data for the custom video stream. |
inputStreamAudioPtr | Specifies the pointer for the custom audio stream. |
inputStreamAudioData | Specifies the data for the custom audio stream. |
addDynamicsAddons | Adds an animated sticker. |
removeDynamicsAddons | Removes an animated sticker. |
setExposure | Sets the exposure value for the camera. |
getCurrentExposure | Queries the exposure value of the camera. |
getSupportedMinExposure | Queries the minimum exposure value supported by the camera. |
getSupportedMaxExposure | Queries the maximum exposure value supported by the camera. |
sendMessage | Sends custom supplemental enhancement information (SEI) on the stream ingest side. |
setLiveMixTranscodingConfig | Sets the parameters for cloud-based stream mixing (transcoding). |
getLiveTraceId | Queries the trace ID. |