Agora Developer Portal - Sample Code

There is a new release of the Developer Center! If you'd like to check it out, please click  here

Basic Video Call
Sample app to join/leave a channel, mute/unmute, enable/disable the video, and switch between front/rear cameras.
iOS
Swift
iOS
Objective-C
Android
Java
macOS
Swift
macOS
Objective-C
Windows
C++
WebRTC
JavaScript
Basic Voice Call
Sample app to join/leave a channel, mute/unmute, and switch between the speaker/headset.
iOS
Swift
Android
Java
Advanced Video Call
Sample app to join/leave a channel, mute/unmute, enable/disable the video, switch between front/rear cameras, send a message to a channel, set the video parameters, enable encryption, enable/disable the black and white filter, and share the screen (macOS only).
iOS
Swift
iOS
Objective-C
Android
Java
macOS
Swift
Windows
C++
Advanced Voice Call
Sample app to join/leave a channel, mute/unmute, and switch between the speaker/headset.
iOS
Swift
Android
Java
Live Video Broadcast
Sample app to join/leave a channel, set the role as a host/audience, mute/unmute, switch between front/rear cameras, and set the video parameters.
iOS
Swift
iOS
OC
Android
Java
macOS
Swift
Windows
C++
Live Voice Broadcast
Sample app to join/leave a channel, set the role as a host/audience, mute/unmute, and switch between the speaker/headset.
iOS
Swift
Android
Java
RTMP Push Stream
Sample app to join/leave a channel, capture the raw voice/video data, and push the raw data to the RTMP server.
iOS
Swift
Android
Java
Capture Raw Video Data
Sample app to join/leave a channel, mute/unmute, capture the camera’s raw data, switch between front/rear cameras, and enable/disable the video.
iOS
Swift
Android
Java
Basic Voice for Gaming
Sample app to join/leave a channel, mute/unmute, and switch between the speaker/headset.
Unity Voice
C#
Cocos
C++
iOS
Swift
Android
Java
Unity Video
C#
Advanced Voice for Gaming
Sample app to join/leave a channel, select the voice mode, mute/unmute, mix/play audio effects, morph the voice, and set the audio position/volume.
Unity
C#
Cocos
C++
iOS (SpriteKit)
Swift
Recording
Sample app to set voice-only mode, mix the audio, encrypt/decrypt the recording, and set the UDP port.
All Platform
C#
Signaling (Messaging)
Sample app to login/logout Agora’s signaling server, send/receive peer-to-peer messages, show the peer-to-peer message history, join/leave a channel, and send/receive channel messages.
iOS
Swift
Android
Java
macOS
Swift
windows
C++
Web
javascript
Linux
C++
Java
Java
Signaling (Open Duo)
Sample app to login Agora’s signaling server, check whether a user is online, call a user, join/end a call, mute/unmute, and switch between front/rear cameras.
Android
Java
iOS
Objective-C