//
//  ContentView.swift
//  Test
//
//  Created by admin on 2024/10/25.
//

import SwiftUI
import AgoraRtcKit

struct ContentView: View {
    var body: some View {
        VStack {
            Image(systemName: "globe")
                .imageScale(.large)
                .foregroundStyle(.tint)
            Text("Hello, world!").onTapGesture {
                let rtc = AgoraRtcEngineKit.sharedEngine(withAppId: "aab8b8f5a8cd4469a63042fcfafe7063", delegate: nil)
                rtc.enableVideo()
                rtc.joinChannel(byToken: nil, channelId: "123", userAccount: "123") { a, b, c in
                    NSLog("%@ %d %d", a, b, c)
                }
            }
        }
        .padding()
    }
}

#Preview {
    ContentView()
}
