WebRTCSettings class
WebRTC configuration settings loaded from webrtc_settings.json.
This class contains all configuration needed for WebRTC signaling, ICE server configuration, and platform-specific video settings.
Example JSON:
{
"signalingServerUrl": "wss://example.com:8443",
"reconnectionTimeoutMs": 5000,
"stunServers": ["stun:stun.l.google.com:19302"],
"turnServers": [],
"video": { ... },
"texture": { ... },
"android": { ... }
}
See also:
- VideoSettings for video encoding configuration
- TextureSettings for native texture rendering configuration
- AndroidSettings for Android-specific settings
Constructors
-
WebRTCSettings({required String signalingServerUrl, required int reconnectionTimeoutMs, required List<
String> stunServers, required List<String> turnServers, required VideoSettings video, required TextureSettings texture, required AndroidSettings android}) - Creates WebRTC settings with all required parameters.
-
WebRTCSettings.fromJsonFile(Map<
String, dynamic> json) - Creates WebRTC settings from a JSON map.
Properties
- android → AndroidSettings
-
Android-specific video settings.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- reconnectionTimeoutMs → int
-
Timeout in milliseconds before attempting to reconnect.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signalingServerUrl → String
-
The WebSocket URL for the signaling server.
final
-
stunServers
→ List<
String> -
List of STUN server URLs for ICE candidate gathering.
final
- texture → TextureSettings
-
Native texture rendering settings for desktop/mobile.
final
-
turnServers
→ List<
String> -
List of TURN server URLs for relay when direct connection fails.
final
- video → VideoSettings
-
Video encoding settings for outgoing streams.
final
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