public class AgoraVideoMixer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private long |
cptr
Native pointer to the video mixer instance.
|
| Constructor and Description |
|---|
AgoraVideoMixer(long cptr)
Constructs a video mixer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addImageSource(java.lang.String id,
MixerLayoutConfig config,
int type)
Adds an image source to the mixer.
|
void |
addVideoTrack(java.lang.String id,
AgoraVideoTrack agora_video_track)
Adds a video track to the mixer.
|
void |
delStreamLayout(java.lang.String id)
Deletes a stream layout.
|
void |
destroy()
Destroys the video mixer and releases native resources.
|
private void |
ndestroy()
Destroys the native video mixer.
|
void |
refresh()
Refreshes the mixer output.
|
void |
removeVideoTrack(java.lang.String id,
AgoraVideoTrack agora_video_track)
Removes a video track from the mixer.
|
void |
setBackgroundColor(int width,
int height,
int fps,
int color_argb)
Sets the background color for the mixer.
|
void |
setBackgroundUrl(int width,
int height,
int fps,
java.lang.String url)
Sets the background image URL for the mixer.
|
void |
setRotation(byte rotation)
Sets the rotation for the mixer output.
|
void |
setStreamLayout(java.lang.String id,
MixerLayoutConfig config)
Sets the stream layout configuration.
|
public AgoraVideoMixer(long cptr)
cptr - Native pointer to the video mixer instanceprivate void ndestroy()
public void destroy()
public void addVideoTrack(java.lang.String id,
AgoraVideoTrack agora_video_track)
id - Track IDagora_video_track - Video track to addpublic void removeVideoTrack(java.lang.String id,
AgoraVideoTrack agora_video_track)
id - Track IDagora_video_track - Video track to removepublic void setStreamLayout(java.lang.String id,
MixerLayoutConfig config)
id - Stream IDconfig - Layout configurationpublic void delStreamLayout(java.lang.String id)
id - Stream IDpublic void addImageSource(java.lang.String id,
MixerLayoutConfig config,
int type)
id - Image source IDconfig - Layout configurationtype - Image source typepublic void refresh()
public void setBackgroundColor(int width,
int height,
int fps,
int color_argb)
width - Output widthheight - Output heightfps - Frame ratecolor_argb - Background color in ARGB formatpublic void setBackgroundUrl(int width,
int height,
int fps,
java.lang.String url)
width - Output widthheight - Output heightfps - Frame rateurl - Background image URLpublic void setRotation(byte rotation)
rotation - Rotation value