Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Multiplatform/Controllers/RoomContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ final class RoomContext: ObservableObject {
}
}

// Process-global, applies to rooms connected after it is set.
@Published var isWARPEnabled: Bool = false {
didSet {
store.value.isWARPEnabled = isWARPEnabled
LiveKitSDK.setWARPEnabled(isWARPEnabled)
}
}

// RoomOptions
@Published var simulcast: Bool = true {
didSet { store.value.simulcast = simulcast }
Expand Down Expand Up @@ -118,6 +126,7 @@ final class RoomContext: ObservableObject {
url = store.value.url
token = store.value.token
isE2eeEnabled = store.value.isE2eeEnabled
isWARPEnabled = store.value.isWARPEnabled
e2eeKey = store.value.e2eeKey
simulcast = store.value.simulcast
adaptiveStream = store.value.adaptiveStream
Expand Down
1 change: 1 addition & 0 deletions Multiplatform/Support/SecureStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ struct Preferences: Codable, Equatable {
var token = ""
var e2eeKey = ""
var isE2eeEnabled = false
var isWARPEnabled = false

// Connect options
var autoSubscribe = true
Expand Down
1 change: 1 addition & 0 deletions Multiplatform/Views/ConnectView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ struct ConnectView: View {
Menu {
Toggle("Auto-Subscribe", isOn: $roomCtx.autoSubscribe)
Toggle("Enable E2EE", isOn: $roomCtx.isE2eeEnabled)
Toggle("Enable WARP", isOn: $roomCtx.isWARPEnabled)
} label: {
Image(systemSymbol: .boltFill)
.renderingMode(.original)
Expand Down
Loading