Please note that this repository is now in a read-only state and will not receive any further updates or support.
We recommend using to the latest versions of the Agora Video SDK and Agora Signaling SDK
For documentation and support, please visit the Agora Documentation.
其他语言版本:中文
-
= Cocos Creator 2.4
- iOS SDK 8.0+
- Android 5.0+
- A valid Agora account Sign up for free.
Open the specified ports in Firewall Requirements if your network has a firewall.
In the next step, you need to use the App ID of your project. Follow these steps to Create an Agora project in Console and get an App ID.
- Go to Console and click the Project Management icon on the left navigation panel.
- Click Create and follow the on-screen instructions to set the project name, choose an authentication mechanism (for this project select App ID without a certificate), and Click Submit.
- On the Project Management page, find the App ID of your project.
Check the end of document if you want to use App ID with the certificate.
- Download and extract the zip file (or clone this repository).
- Find
~/.CocosCreator/services/agoraand replace all files. - Download Agora SDK which matched the version,the version code part of
package.json/versionvalue in the middle. Sample as1.2.1_3.1.2_3.2.1,you need to download the3.1.2version of SDK.- SDK link sample:
- Audio:
- Video:
- SDK link sample:
- Extract SDK to the
resources/sdkfolder(Audio and Video in different folder).android/agora/audioandandroid/agora/videofolders save the.sofile,android/lib/audioandandroid/lib/videosave the.jarfile.ios/agora/audioandios/agora/videofolders save the.frameworkfile. (Not need, use Cocoapods instead of now)
- Finally, Use Cocos Creator build to make SDK work.
- Agora API doc
MIT