JoinOptions
Optional parameters for joining a channel.
Example:
ChannelInfo
Channel info.UserInfo
User info.TrackInfo
Track description.Codec
Codec enum.VideoRotation
Video frame rotation, used bypushFrame(_:rotation:timestampNs:) and VideoFrame.
The raw value is the angle, using the same convention as the
rotation parameter of inputData on Android.
StreamVendor
Media streaming engine vendor.
The SDK automatically selects the engine based on
stream_vendor in the token / join response.
ConnectionState
DisconnectReason
Preset types
MicPreset
Common presets:.speech.music.musicStereo.musicHighQuality.musicHighQualityStereo
CameraPreset
Common presets:.h180p.h360p.h720p.h1080p
ScreenPreset
Common presets:.h720p.h1080p
ScreenAudioPreset
Common presets:.default
ScreenCaptureMode
iOS screen capture mode, passed tocreateLocalScreenTrack(mode:). Ignored on macOS (which always uses ScreenCaptureKit).
DeviceInfo
The unified device structure returned by the device manager.
Possible values of
DeviceKind:
audioInputaudioOutputvideoInput
On iOS,
getDevices(kind: .audioOutput) returns an empty array—the system doesn’t expose output device enumeration.
To control where output goes, use the audio route types below—see Audio routing.AudioRoute
iOS only. The current audio output route, read-only, for reporting, with five states.
Helper properties:
AudioRouteTarget
iOS only. Route targets you can switch to actively, with only two states.
It’s deliberately separate from
AudioRoute: iOS doesn’t provide the ability to switch to a specific Bluetooth / wired device; external devices are taken over by the system,
and the SDK can only control “built-in speaker or receiver”. asRoute maps back to AudioRoute (.earpiece → .receiver).
AudioRouteInfo
iOS only. A snapshot of a system audio port, for diagnostics / display, not a list to choose from.AudioCallState
iOS only. The system call state, from CallKit. The SDK uses it to decide when it can recover after an audio interruption.ConnectionQuality
Connection quality level, parsed from the reports sent by the server.
When comparing which level is worse, the order is
unknown < excellent < good < poor < lost.
QualitySample
A snapshot of quality values in one direction; a signal-strength icon / network panel can render directly from these fields.QualityReport
A complete quality report. The SDK emits one each time the server sends a report.QualityEvaluation
A simplified level evaluation snapshot, used bygetConnectionQuality() and the level-change event.
LocalQualitySnapshot
One sample of local network quality (since 1.9.0), delivered bydidUpdateLocalQuality and read with Channel.getLocalQuality(). The SDK computes it locally from WebRTC statistics, on both the SeaStart and Wangsu engines.
LocalDirectionQuality
Local quality in one direction. A value that isn’t available isnil; 0 is never used in place of a measured value.
LocalQualityLevel
ConnectionQualityChange
ActiveSpeakerInfo / ActiveSpeakersSnapshot
speakers is the full list: the SDK has already merged the server’s incremental protocol and sorted it by level in descending order; when nobody is speaking, it’s an empty array. Since 1.6.0 you are in it too (isLocal == true), on the same scale as remote speakers.
LayerSwitchedInfo
For how to use the quality-related types above, see Call quality and active speakers.
ReceiveStreamStatus
The payload of a receive status change for one remote video, delivered by thechannel(_:didChangeReceiveStreamStatus:) callback.
It’s judged per track, looking only at whether this video is producing frames, and is unrelated to the quality level of the whole link—don’t use
ConnectionQualityChange in its place; see Events for details.
It corresponds to
engineChannel:onReceiveStreamStatusChange:trackId:status: in the older RTCEngineKit; timedOut has the same truth value as the old status (true means timed out), so you don’t need to invert it when migrating.AudioProcessingConstraints
A capture processor’s requirements for WebRTC’s built-in 3A, available since 1.8.0, with the same meaning as the same-named type in the Web SDK. It takes effect when a processor that conforms to theAudioProcessingDeclaring protocol (a single read-only property audioProcessing: AudioProcessingConstraints) is set as SRTCEngine.audioCaptureProcessor.
false requires the feature off; true or nil leaves the SDK default unchanged. It applies only to WebRTC’s software processing; the system’s own voice processing on iOS / macOS is unaffected. For usage, see AI noise suppression.
NetworkCheckResult
The result of the pre-call network check (since 1.10.0), returned bynetworkCheck. All types in this section are Codable; field names encoded by JSONEncoder match the other platforms, so you can report or log them as is.
There is also a method
item(_ id: NetworkCheckItemId) -> NetworkCheckItem? that gets an item by id.
NetworkCheckItem
NetworkCheckItemId
When the stream vendor isn’t SeaStart,
mtu and the media check are skipped (vendor_not_supported); when the server information can’t be obtained (the server hasn’t been upgraded), mtu and the signaling and media checks are skipped (server_info_unavailable).
NetworkCheckStatus / NetworkCheckItemStatus
NetworkCheckData
Each item fills in only its own fields; the rest arenil and omitted when encoded.