gpt4 book ai didi

ios - 阿联酋 : Voice/Video Calling using Data/WiFi in App - using Swift 4. 0

转载 作者:行者123 更新时间:2023-11-30 11:07:16 25 4
gpt4 key购买 nike

我想使用 Swift 4.0 在我的 iOS 应用中添加语音/视频通话功能。

我可以引用哪些第三方框架?

Also, I came across the news that VoIP is blocked in many countries UAE is one of them. Can I achieve the calling features in UAE if YES then How? My app will be only used in UAE country.

我提到:https://www.quora.com/Is-there-any-VoIP-that-still-works-in-Dubai-in-2018

最佳答案

https://www.twilio.com/blog/2018/03/making-phone-calls-in-swift-with-twilio.html

import Foundation
import Alamofire

if let accountSID = ProcessInfo.processInfo.environment["TWILIO_ACCOUNT_SID"],
let authToken = ProcessInfo.processInfo.environment["TWILIO_AUTH_TOKEN"] {

let url = "https://api.twilio.com/2010-04-01/Accounts/\(accountSID)/Calls"
let parameters = ["From": "YOUR_TWILIO_NUMBER", "To": "YOUR_PERSONAL_NUMBER", "Url": "YOUR_TWIML_URL"]

Alamofire.request(url, method: .post, parameters: parameters)
.authenticate(user: accountSID, password: authToken)
.responseJSON { response in
debugPrint(response)
}

RunLoop.main.run()
}

关于ios - 阿联酋 : Voice/Video Calling using Data/WiFi in App - using Swift 4. 0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52567830/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com