Skip to content

Commit

Permalink
New ConnectionQuality.lost case (Protocol 11) (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshihorie committed Jan 8, 2024
1 parent 1461398 commit 233fda7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Sources/LiveKit/Types/ConnectionQuality.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ import Foundation
@objc
public enum ConnectionQuality: Int {
case unknown
/// Indicates that a participant has temporarily (or permanently) lost connection to LiveKit.
/// For permanent disconnection, ``RoomDelegate/room(_:participantDidLeave:)`` will be invoked after a timeout.
case lost
case poor
case good
case excellent
Expand All @@ -30,6 +33,7 @@ extension Livekit_ConnectionQuality {
case .poor: return .poor
case .good: return .good
case .excellent: return .excellent
case .lost: return .lost
default: return .unknown
}
}
Expand Down
4 changes: 2 additions & 2 deletions Sources/LiveKit/Types/Options/ConnectOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class ConnectOptions: NSObject {
reconnectAttempts = 3
reconnectAttemptDelay = .defaultReconnectAttemptDelay
iceServers = []
protocolVersion = .v10
protocolVersion = .v11
}

@objc
Expand All @@ -61,7 +61,7 @@ public class ConnectOptions: NSObject {
reconnectAttempts: Int = 3,
reconnectAttemptDelay: TimeInterval = .defaultReconnectAttemptDelay,
iceServers: [IceServer] = [],
protocolVersion: ProtocolVersion = .v10)
protocolVersion: ProtocolVersion = .v11)
{
self.autoSubscribe = autoSubscribe
self.publishOnlyMode = publishOnlyMode
Expand Down

0 comments on commit 233fda7

Please sign in to comment.