TVIEncodingParameters Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | TVIEncodingParameters.h |
Overview
TVIEncodingParameters defines audio and video encoding parameters.
Maximum bitrate is specified as Transport Independent Application Specific
Maximum (TIAS) bitrate RFC3890 in bits per second (bps) excluding
IP/UDP/TCP headers. These encoding parameters are applied for each PeerConnection. For peer-to-peer
Rooms, there is a separate PeerConnection for each participant, i.e., if you set maximum video bitrate to 1 Mbps
and you have two TVIRemoteParticipants in the Room, the Client sends up to 2 Mbps. For group Rooms, there is a single
PeerConnection to Twilio’s Media Server. If you are publishing multiple video tracks (e.g., video and screen
share), each tracks receives the maximum bitrate specified, i.e., if you set maximum video bitrate to 1 Mbps and you
publish both video and screen share, client sends out 2 Mbps. You may update encoding parameters any time using
[TVILocalParticipant setEncodingParameters:].
– initWithAudioBitrate:videoBitrate:
Initializes a TVIEncodingParameters object.
- (_Nonnull instancetype)initWithAudioBitrate:(NSUInteger)maxAudioBitrate videoBitrate:(NSUInteger)maxVideoBitrateParameters
maxAudioBitrate |
The maximum audio send bitrate in bits per second. |
|---|---|
maxVideoBitrate |
The maximum video send bitrate in bits per second. |
Return Value
A TVIEncodingParameters instance.
Declared In
TVIEncodingParameters.h
maxAudioBitrate
Maximum audio send bitrate in bits per second.
@property (nonatomic, assign, readonly) NSUInteger maxAudioBitrateDiscussion
Zero indicates the WebRTC default value, which is codec dependent. The maximum bitrate for Opus is 510 kbps.
Declared In
TVIEncodingParameters.h
maxVideoBitrate
Maximum video send bitrate in bits per second.
@property (nonatomic, assign, readonly) NSUInteger maxVideoBitrateDiscussion
Zero indicates the WebRTC default value, which is 2 Mbps.
Declared In
TVIEncodingParameters.h