Agora Server Gateway SDK Java API Reference
|
Private Attributes | |
int | width |
int | height |
int | videoBitrate |
int | videoFrameRate |
int | lowLatency |
int | videoGop |
int | videoCodecProfile |
int | backgroundColor |
int | userCount |
TranscodingUser | transcodingUsers |
java.lang.String | transcodingExtraInfo |
java.lang.String | metadata |
RtcImage | watermark |
int | watermarkCount |
RtcImage | backgroundImage |
int | backgroundImageCount |
int | audioSampleRate |
int | audioBitrate |
int | audioChannels |
int | audioCodecProfile |
The LiveTranscoding
class.
io.agora.rtc.LiveTranscoding.LiveTranscoding | ( | ) |
io.agora.rtc.LiveTranscoding.LiveTranscoding | ( | int | width, |
int | height, | ||
int | videoBitrate, | ||
int | videoFrameRate, | ||
int | lowLatency, | ||
int | videoGop, | ||
int | videoCodecProfile, | ||
int | backgroundColor, | ||
int | userCount, | ||
TranscodingUser | transcodingUsers, | ||
java.lang.String | transcodingExtraInfo, | ||
java.lang.String | metadata, | ||
RtcImage | watermark, | ||
int | watermarkCount, | ||
RtcImage | backgroundImage, | ||
int | backgroundImageCount, | ||
int | audioSampleRate, | ||
int | audioBitrate, | ||
int | audioChannels, | ||
int | audioCodecProfile ) |
Constructor.
width | The width of the video in pixels. The default value is 360.
|
height | The height of the video in pixels. The default value is 640.
|
videoBitrate | The bitrate (Kbps) of the video. The default value is 400. Set this parameter according to the bitrate you set in VideoEncoderConfiguration. If you set a bitrate beyond the proper range, the SDK automatically adapts it to a value within the range. |
videoFrameRate | The frame rate (fps) of the video that ranges from 0 to 30. The default value is 15. The server adjusts any value over 30 to 30. |
lowLatency | Determines whether to enable low latency.
|
videoGop | Gop (Group of video) of the video frames in the CDN live stream. The default value is 30 fps. |
videoCodecProfile | The video codec profile.
|
backgroundColor | The background color in RGB hex. Value only, do not include a preceding #. For example, 0xFFB6C1 (light pink). The default value is 0x000000 (black). |
userCount | The number of users in the live broadcast. |
transcodingUsers | The user layout configuration in the CDN live streaming. |
transcodingExtraInfo | Extra user-defined information sent to the CDN client. The extra information will be transmitted by SEI packets. |
metadata | The metadata sent to the CDN client. |
watermark | The watermark image added to the CDN live publishing stream. Ensure that the format of the image is PNG. Once a watermark image is added, the audience of the CDN live publishing stream can see it. |
watermarkCount | The variables means the count of watermark. |
backgroundImage | The background image added to the CDN live publishing stream. Once a background image is added, the audience of the CDN live publishing stream can see it. |
backgroundImageCount | The number of background images on the live video. The total number of watermarks and background images must be greater than or equal to 0 and less than or equal to 10. This parameter is used in conjunction with backgroundImage . |
audioSampleRate | The audio sample rates.
|
audioBitrate | The bitrate (Kbps) of the audio output stream set for CDN live. The default value is 48 and the highest value is 128. |
audioChannels | The number of audio channels for the CDN live stream. Agora recommends choosing 1 (mono), or 2 (stereo) audio channels. Special players are required if you choose 3, 4, or 5. |
audioCodecProfile | The audio codec profile type.
|
int io.agora.rtc.LiveTranscoding.getAudioBitrate | ( | ) |
int io.agora.rtc.LiveTranscoding.getAudioChannels | ( | ) |
int io.agora.rtc.LiveTranscoding.getAudioCodecProfile | ( | ) |
int io.agora.rtc.LiveTranscoding.getAudioSampleRate | ( | ) |
int io.agora.rtc.LiveTranscoding.getBackgroundColor | ( | ) |
RtcImage io.agora.rtc.LiveTranscoding.getBackgroundImage | ( | ) |
int io.agora.rtc.LiveTranscoding.getBackgroundImageCount | ( | ) |
int io.agora.rtc.LiveTranscoding.getHeight | ( | ) |
int io.agora.rtc.LiveTranscoding.getLowLatency | ( | ) |
java.lang.String io.agora.rtc.LiveTranscoding.getMetadata | ( | ) |
java.lang.String io.agora.rtc.LiveTranscoding.getTranscodingExtraInfo | ( | ) |
TranscodingUser io.agora.rtc.LiveTranscoding.getTranscodingUsers | ( | ) |
int io.agora.rtc.LiveTranscoding.getUserCount | ( | ) |
int io.agora.rtc.LiveTranscoding.getVideoBitrate | ( | ) |
int io.agora.rtc.LiveTranscoding.getVideoCodecProfile | ( | ) |
int io.agora.rtc.LiveTranscoding.getVideoFrameRate | ( | ) |
int io.agora.rtc.LiveTranscoding.getVideoGop | ( | ) |
RtcImage io.agora.rtc.LiveTranscoding.getWatermark | ( | ) |
int io.agora.rtc.LiveTranscoding.getWatermarkCount | ( | ) |
int io.agora.rtc.LiveTranscoding.getWidth | ( | ) |
void io.agora.rtc.LiveTranscoding.setAudioBitrate | ( | int | audioBitrate | ) |
void io.agora.rtc.LiveTranscoding.setAudioChannels | ( | int | audioChannels | ) |
void io.agora.rtc.LiveTranscoding.setAudioCodecProfile | ( | int | audioCodecProfile | ) |
void io.agora.rtc.LiveTranscoding.setAudioSampleRate | ( | int | audioSampleRate | ) |
void io.agora.rtc.LiveTranscoding.setBackgroundColor | ( | int | backgroundColor | ) |
void io.agora.rtc.LiveTranscoding.setBackgroundImage | ( | RtcImage | backgroundImage | ) |
void io.agora.rtc.LiveTranscoding.setBackgroundImageCount | ( | int | backgroundImageCount | ) |
void io.agora.rtc.LiveTranscoding.setHeight | ( | int | height | ) |
void io.agora.rtc.LiveTranscoding.setLowLatency | ( | int | lowLatency | ) |
void io.agora.rtc.LiveTranscoding.setMetadata | ( | java.lang.String | metadata | ) |
void io.agora.rtc.LiveTranscoding.setTranscodingExtraInfo | ( | java.lang.String | transcodingExtraInfo | ) |
void io.agora.rtc.LiveTranscoding.setTranscodingUsers | ( | TranscodingUser | transcodingUsers | ) |
void io.agora.rtc.LiveTranscoding.setUserCount | ( | int | userCount | ) |
void io.agora.rtc.LiveTranscoding.setVideoBitrate | ( | int | videoBitrate | ) |
void io.agora.rtc.LiveTranscoding.setVideoCodecProfile | ( | int | videoCodecProfile | ) |
void io.agora.rtc.LiveTranscoding.setVideoFrameRate | ( | int | videoFrameRate | ) |
void io.agora.rtc.LiveTranscoding.setVideoGop | ( | int | videoGop | ) |
void io.agora.rtc.LiveTranscoding.setWatermark | ( | RtcImage | watermark | ) |
void io.agora.rtc.LiveTranscoding.setWatermarkCount | ( | int | watermarkCount | ) |
void io.agora.rtc.LiveTranscoding.setWidth | ( | int | width | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |