public interface AliyunIMixComposer
Modifier and Type | Method and Description |
---|---|
int |
cancel()
Cancels the composition process.
|
AliyunMixTrack |
createTrack(AliyunMixTrackLayoutParam layoutParam)
Creates a video track.
|
int |
pause()
Pauses the composition process.
|
int |
release()
Releases resources.
|
int |
resume()
Resumes the composition process.
|
int |
setBackgroundColor(int color)
Set the background color
Added in v3.19.0
|
int |
setBackgroundImage(Bitmap bitmap,
int displayMode)
Set the background image with bitmap
Added in v3.19.0
|
int |
setOutputParam(AliyunMixOutputParam param)
Sets output parameters.
|
int |
start(AliyunMixCallback callback)
Starts the composition process.
|
AliyunMixTrack createTrack(AliyunMixTrackLayoutParam layoutParam)
layoutParam
- The layout parameter. This parameter indicates the screen areas that display the video streams on the track. For more information, see AliyunMixTrackLayoutParam
.AliyunMixTrackLayoutParam
int setOutputParam(AliyunMixOutputParam param)
start(AliyunMixCallback)
. Otherwise, the composition process cannot be started.AliyunErrorCode.OK
if the invocation is successful or an error code if the invocation fails.AliyunMixOutputParam
int start(AliyunMixCallback callback)
callback
- The callback.AliyunErrorCode.OK
if the invocation is successful or an error code if the invocation fails.int pause()
AliyunErrorCode.OK
if the invocation is successful or an error code if the invocation fails.int resume()
AliyunErrorCode.OK
if the invocation is successful or an error code if the invocation fails.int cancel()
AliyunErrorCode.OK
if the invocation is successful or an error code if the invocation fails.int release()
AliyunErrorCode.OK
if the invocation is successful or an error code if the invocation fails.int setBackgroundColor(int color)
color
- AliyunErrorCode.OK
if the invocation is successful or an error code if the invocation fails.int setBackgroundImage(Bitmap bitmap, int displayMode)
bitmap
- displayMode
- 0:crop 1:fill 2:exact fitAliyunErrorCode.OK
if the invocation is successful or an error code if the invocation fails.