Skip to content

Commit 38b36c4

Browse files
committed
Pass options
1 parent 8e6a4eb commit 38b36c4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

VoiceAgent/VoiceAgentApp.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ struct VoiceAgentApp: App {
1313
// - Enable your sandbox here https://cloud.livekit.io/projects/p_/sandbox/templates/token-server
1414
// - Create .env.xcconfig with your LIVEKIT_SANDBOX_ID
1515
private static let sandboxId = Bundle.main.object(forInfoDictionaryKey: "LiveKitSandboxId") as! String
16-
@StateObject private var session = Session(tokenSource: SandboxTokenSource(id: Self.sandboxId),
17-
room: Room(roomOptions: RoomOptions(defaultScreenShareCaptureOptions: ScreenShareCaptureOptions(useBroadcastExtension: true))))
16+
17+
@StateObject private var session = Session(
18+
tokenSource: SandboxTokenSource(id: Self.sandboxId),
19+
options: Session.Options(room: Room(roomOptions: RoomOptions(defaultScreenShareCaptureOptions: ScreenShareCaptureOptions(useBroadcastExtension: true))))
20+
)
1821

1922
var body: some Scene {
2023
WindowGroup {

0 commit comments

Comments
 (0)