LiveInjectStreamConfig class
Configurations of injecting an external audio or video stream. Agora will soon stop the service for injecting online media streams on the client. If you have not implemented this service, Agora recommends that you do not use it.
- Annotations
-
- @JsonSerializable(explicitToJson: true)
Constructors
- LiveInjectStreamConfig({int? width, int? height, int? videoGop, VideoFrameRate? videoFramerate, int? videoBitrate, AudioSampleRateType? audioSampleRate, int? audioBitrate, AudioChannel? audioChannels})
- Constructs the LiveInjectStreamConfig.
Properties
- audioBitrate ↔ int?
-
The bitrate (Kbps) of injecting the external audio stream. The default value is 48 Kbps.
Agora recommends using the default value.
getter/setter pair
- audioChannels ↔ AudioChannel?
-
The number of channels of the external audio stream after injecting. 1: (Default) Mono.
2: Stereo. Agora recommends using the default value.
getter/setter pair
- audioSampleRate ↔ AudioSampleRateType?
-
The sampling rate (Hz) of injecting the external audio stream. The default value is 48000 Hz. See AudioSampleRateType .
Agora recommends using the default value.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ int?
-
The height of the external video stream after injecting. The default value is 0, which represents the same height as the original.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- videoBitrate ↔ int?
-
The bitrate (Kbps) of injecting the external video stream. The default value is 400 Kbps.
The bitrate setting is closely linked to the video resolution. If the bitrate you set is beyond a reasonable range, the SDK sets it within a reasonable range.
getter/setter pair
- videoFramerate ↔ VideoFrameRate?
-
The frame rate (fps) of injecting the external video stream. The default rate is 15 fps.
getter/setter pair
- videoGop ↔ int?
-
The GOP (in frames) of injecting the external video stream. The default value is 30 frames.
getter/setter pair
- width ↔ int?
-
The width of the external video stream after injecting. The default value is 0, which represents the same width as the original.
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