AgoraManager 1.1.4

AgoraManager 1.1.4

janlionly 维护。



AgoraManager

Version License Platform Swift

描述

AgoraManager 是基于 AgoraRtcEngine_iOS 的高级 API,支持音频。

安装

CocoaPods

pod 'AgoraManager'

用法

以下是如何使用的方法

// create a singleton and remember to set your app id
let agora = AgoraManager.shared
agora.appId = "yourAppId"

// call joinChannel to support people talk with microphone
agora.joinChannel(token: String, channelId: String, info: String? = nil, uid: UInt64, completion: (()->Void)? = nil)

// call leaveChannel to exit current channel
agora.leaveChannel()

// switch about microphone and listen remote audio voice
agora.changeMicrophone(true)
agora.listenAllRemoteAudioStreams(true)

// who is speaking
agora.speaking = { uid, volume in
    // the one(uid) speaking 
}

要求

  • iOS 9.0+
  • Swift 4.2 至 5.1

作者

访问我的github: janlionly
通过电子邮件联系我: [email protected]

贡献

我很希望您为 AgoraManager 贡献

许可证

AgoraManager 是在 MIT 许可证下可用的。有关更多信息,请参阅 LICENSE 文件。