public class LiveTranscoding
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
audioBitrate
Audio bitrate (bps)
|
private int |
audioChannels
Number of audio channels
|
private int |
audioCodecProfile
Audio codec profile
|
private int |
audioSampleRate
Audio sample rate (Hz)
|
private int |
backgroundColor
Background color
|
private RtcImage |
backgroundImage
Background image
|
private int |
backgroundImageCount
Number of background images
|
private int |
height
Video height (px)
|
private int |
lowLatency
Low latency mode
|
private java.lang.String |
metadata
Metadata
|
private java.lang.String |
transcodingExtraInfo
Extra transcoding information
|
private TranscodingUser |
transcodingUsers
Transcoding user configuration
|
private int |
userCount
Number of users
|
private int |
videoBitrate
Video bitrate (bps)
|
private int |
videoCodecProfile
Video codec profile
|
private int |
videoFrameRate
Video frame rate (fps)
|
private int |
videoGop
Video GOP
|
private RtcImage |
watermark
Watermark image
|
private int |
watermarkCount
Number of watermarks
|
private int |
width
Video width (px)
|
| Constructor and Description |
|---|
LiveTranscoding()
Default constructor for 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)
Constructs LiveTranscoding with all parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAudioBitrate()
Gets the audio bitrate (bps).
|
int |
getAudioChannels()
Gets the number of audio channels.
|
int |
getAudioCodecProfile()
Gets the audio codec profile.
|
int |
getAudioSampleRate()
Gets the audio sample rate (Hz).
|
int |
getBackgroundColor()
Gets the background color.
|
RtcImage |
getBackgroundImage()
Gets the background image.
|
int |
getBackgroundImageCount()
Gets the number of background images.
|
int |
getHeight()
Gets the video height (px).
|
int |
getLowLatency()
Gets the low latency mode.
|
java.lang.String |
getMetadata()
Gets the metadata.
|
java.lang.String |
getTranscodingExtraInfo()
Gets the extra transcoding information.
|
TranscodingUser |
getTranscodingUsers()
Gets the transcoding user configuration.
|
int |
getUserCount()
Gets the number of users.
|
int |
getVideoBitrate()
Gets the video bitrate (bps).
|
int |
getVideoCodecProfile()
Gets the video codec profile.
|
int |
getVideoFrameRate()
Gets the video frame rate (fps).
|
int |
getVideoGop()
Gets the video GOP.
|
RtcImage |
getWatermark()
Gets the watermark image.
|
int |
getWatermarkCount()
Gets the number of watermarks.
|
int |
getWidth()
Gets the video width (px).
|
void |
setAudioBitrate(int audioBitrate)
Sets the audio bitrate (bps).
|
void |
setAudioChannels(int audioChannels)
Sets the number of audio channels.
|
void |
setAudioCodecProfile(int audioCodecProfile)
Sets the audio codec profile.
|
void |
setAudioSampleRate(int audioSampleRate)
Sets the audio sample rate (Hz).
|
void |
setBackgroundColor(int backgroundColor)
Sets the background color.
|
void |
setBackgroundImage(RtcImage backgroundImage)
Sets the background image.
|
void |
setBackgroundImageCount(int backgroundImageCount)
Sets the number of background images.
|
void |
setHeight(int height)
Sets the video height (px).
|
void |
setLowLatency(int lowLatency)
Sets the low latency mode.
|
void |
setMetadata(java.lang.String metadata)
Sets the metadata.
|
void |
setTranscodingExtraInfo(java.lang.String transcodingExtraInfo)
Sets the extra transcoding information.
|
void |
setTranscodingUsers(TranscodingUser transcodingUsers)
Sets the transcoding user configuration.
|
void |
setUserCount(int userCount)
Sets the number of users.
|
void |
setVideoBitrate(int videoBitrate)
Sets the video bitrate (bps).
|
void |
setVideoCodecProfile(int videoCodecProfile)
Sets the video codec profile.
|
void |
setVideoFrameRate(int videoFrameRate)
Sets the video frame rate (fps).
|
void |
setVideoGop(int videoGop)
Sets the video GOP.
|
void |
setWatermark(RtcImage watermark)
Sets the watermark image.
|
void |
setWatermarkCount(int watermarkCount)
Sets the number of watermarks.
|
void |
setWidth(int width)
Sets the video width (px).
|
private int width
private int height
private int videoBitrate
private int videoFrameRate
private int lowLatency
private int videoGop
private int videoCodecProfile
private int backgroundColor
private int userCount
private TranscodingUser transcodingUsers
private java.lang.String transcodingExtraInfo
private java.lang.String metadata
private RtcImage watermark
private int watermarkCount
private RtcImage backgroundImage
private int backgroundImageCount
private int audioSampleRate
private int audioBitrate
private int audioChannels
private int audioCodecProfile
public LiveTranscoding()
public 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)
width - Video width (px)height - Video height (px)videoBitrate - Video bitrate (bps)videoFrameRate - Video frame rate (fps)lowLatency - Low latency modevideoGop - Video GOPvideoCodecProfile - Video codec profilebackgroundColor - Background coloruserCount - Number of userstranscodingUsers - Transcoding user configurationtranscodingExtraInfo - Extra transcoding informationmetadata - Metadatawatermark - Watermark imagewatermarkCount - Number of watermarksbackgroundImage - Background imagebackgroundImageCount - Number of background imagesaudioSampleRate - Audio sample rate (Hz)audioBitrate - Audio bitrate (bps)audioChannels - Number of audio channelsaudioCodecProfile - Audio codec profilepublic int getWidth()
public void setWidth(int width)
width - Video width (px)public int getHeight()
public void setHeight(int height)
height - Video height (px)public int getVideoBitrate()
public void setVideoBitrate(int videoBitrate)
videoBitrate - Video bitrate (bps)public int getVideoFrameRate()
public void setVideoFrameRate(int videoFrameRate)
videoFrameRate - Video frame rate (fps)public int getLowLatency()
public void setLowLatency(int lowLatency)
lowLatency - Low latency modepublic int getVideoGop()
public void setVideoGop(int videoGop)
videoGop - Video GOPpublic int getVideoCodecProfile()
public void setVideoCodecProfile(int videoCodecProfile)
videoCodecProfile - Video codec profilepublic int getBackgroundColor()
public void setBackgroundColor(int backgroundColor)
backgroundColor - Background colorpublic int getUserCount()
public void setUserCount(int userCount)
userCount - Number of userspublic TranscodingUser getTranscodingUsers()
public void setTranscodingUsers(TranscodingUser transcodingUsers)
transcodingUsers - Transcoding user configurationpublic java.lang.String getTranscodingExtraInfo()
public void setTranscodingExtraInfo(java.lang.String transcodingExtraInfo)
transcodingExtraInfo - Extra transcoding informationpublic java.lang.String getMetadata()
public void setMetadata(java.lang.String metadata)
metadata - Metadatapublic RtcImage getWatermark()
public void setWatermark(RtcImage watermark)
watermark - Watermark imagepublic int getWatermarkCount()
public void setWatermarkCount(int watermarkCount)
watermarkCount - Number of watermarkspublic RtcImage getBackgroundImage()
public void setBackgroundImage(RtcImage backgroundImage)
backgroundImage - Background imagepublic int getBackgroundImageCount()
public void setBackgroundImageCount(int backgroundImageCount)
backgroundImageCount - Number of background imagespublic int getAudioSampleRate()
public void setAudioSampleRate(int audioSampleRate)
audioSampleRate - Audio sample rate (Hz)public int getAudioBitrate()
public void setAudioBitrate(int audioBitrate)
audioBitrate - Audio bitrate (bps)public int getAudioChannels()
public void setAudioChannels(int audioChannels)
audioChannels - Number of audio channelspublic int getAudioCodecProfile()
public void setAudioCodecProfile(int audioCodecProfile)
audioCodecProfile - Audio codec profile