AgoraManager 1.1.4

AgoraManager 1.1.4

Maintained by janlionly.



AgoraManager

Version License Platform Swift

Description

AgoraManager is a high level APIs based on AgoraRtcEngine_iOS, which support for Audio.

Installation

CocoaPods

pod 'AgoraManager'

Usage

Here is how to use:

// 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 
}

Requirements

  • iOS 9.0+
  • Swift 4.2 to 5.1

Author

Visit my github: janlionly
Contact with me by email: [email protected]

Contribute

I would love you to contribute to AgoraManager

License

AgoraManager is available under the MIT license. See the LICENSE file for more info.