Installation
CocoaPods
Add to yourPodfile:
Swift Package Manager
Add the package in Xcode:- Go to File > Add Packages
- Enter the repository URL:
https://github.com/ant-media/WebRTC-iOS-SDK - Select version and add to your project
Manual Installation
- Download the latest release from GitHub
- Add
AntMediaSDK.frameworkto your project - Link the framework in your target settings
Configuration
Info.plist Permissions
Add required permissions to yourInfo.plist:
Background Modes
Enable background audio if needed:Basic Usage
Initialize the SDK
Publishing a Stream
Publish video from the device camera:Playing a Stream
Play an existing stream:Video Rendering
Add video views to your interface:Conference Room
Join a multi-party conference room:Camera Controls
Control camera and media:Data Channels
Send and receive real-time data:Delegate Methods
Implement all delegate methods:Configuration Options
Video Resolution
Audio/Video Settings
Resources
iOS SDK Repository
View source code, sample apps, and contribute on GitHub
Requirements
- iOS 12.0 or later
- Xcode 13.0 or later
- Swift 5.5+ or Objective-C
- Camera and microphone hardware
- Ant Media Server with SSL/TLS configured
WebRTC requires HTTPS in production. Make sure your Ant Media Server has a valid SSL certificate.
Next Steps
Android SDK
Build for Android with the native Android SDK
Authentication
Secure streams with token authentication
