TurnServer class
Configuration for a TURN server used by WebRTC ICE.
Constructors
- TurnServer({required String url, required String username, required String credential})
-
Creates a new TurnServer.
const
-
TurnServer.fromJson(Map<
String, dynamic> json) -
Creates a TurnServer from a JSON map.
factory
Properties
- credential → String
-
Credential (password) for TURN authentication.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → String
-
TURN URL, e.g.
turn:turn.example.com:3478.final - username → String
-
Username for TURN authentication.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this server to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override