LiveTranscoding class
A class for managing user-specific CDN live audio/video transcoding settings.
- Annotations
-
- @JsonSerializable(explicitToJson: true)
Constructors
-
LiveTranscoding(List<
TranscodingUser> ? transcodingUsers, {int? width, int? height, int? videoBitrate, VideoFrameRate? videoFramerate, bool? lowLatency, int? videoGop, AnyrtcImage? watermark, AnyrtcImage? backgroundImage, AudioSampleRateType? audioSampleRate, int? audioBitrate, AudioChannel? audioChannels, AudioCodecProfileType? audioCodecProfile, VideoCodecProfileType? videoCodecProfile, Color? backgroundColor, String? transcodingExtraInfo}) - Constructs a LiveTranscoding
Properties
- audioBitrate ↔ int?
-
Bitrate (Kbps) of the CDN live audio output stream. The default value is 48 and the highest value is 128.
getter/setter pair
- audioChannels ↔ AudioChannel?
-
Anyrtc’s self-defined audio channel type. anyrtc recommends choosing 1 (mono), or 2 (stereo) audio channels. Special players are required if you choose 3, 4, or 5.
See AudioChannel.
getter/setter pair
- audioCodecProfile ↔ AudioCodecProfileType?
-
Audio codec profile type: AudioCodecProfileType. Set it as
LCAAC
orHEAAC
. The default value isLCAAC
.getter/setter pair - audioSampleRate ↔ AudioSampleRateType?
-
Self-defined audio-sample rate: AudioSampleRateType.
getter/setter pair
- backgroundColor ↔ Color?
-
The background color in RGB hex. Value only. Do not include a preceding #. For example, 0xFFB6C1 (light pink). The default value is 0x000000 (black).
getter/setter pair
- backgroundImage ↔ AnyrtcImage?
-
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.
See AnyrtcImage.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ int?
-
Height (pixel) of the video. The default value is 640.
getter/setter pair
- lowLatency ↔ bool?
-
anyrtc does not recommend using this parameter.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transcodingExtraInfo ↔ String?
-
getter/setter pair
-
transcodingUsers
↔ List<
TranscodingUser> ? -
An TranscodingUser object managing the user layout configuration in the CDN live stream. anyrtc supports a maximum of 17 transcoding users in a CDN live stream channel.
getter/setter pair
- videoBitrate ↔ int?
-
Bitrate (Kbps) of the CDN live output video stream. The default value is 400. Set this parameter according to the VideoEncoderConfiguration.bitrate(Video Bitrate Table). If you set a bitrate beyond the proper range, the SDK automatically adapts it to a value within the range.
getter/setter pair
- videoCodecProfile ↔ VideoCodecProfileType?
-
Video codec profile type: VideoCodecProfileType. Set it as
BASELINE
,MAIN
, orHIGH
(default). If you set this parameter to other values, anyrtc adjusts it to the default valueHIGH
.getter/setter pair - videoFramerate ↔ VideoFrameRate?
-
The frame rate (fps) of the video. The value range is
0, 30
. The default value is 15. The anyrtc server adjusts any value over 30 to 30.getter/setter pair - videoGop ↔ int?
-
Gop of the video frames in the CDN live stream. The default value is 30 fps.
getter/setter pair
- watermark ↔ AnyrtcImage?
-
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.
See AnyrtcImage.
getter/setter pair
- width ↔ int?
-
Width (pixel) of the video. The default value is 360.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited