Skip to main content
Ant Media Server provides official SDKs for multiple platforms to help you quickly integrate ultra-low latency WebRTC streaming into your applications. All SDKs support publishing and playing WebRTC streams with sub-500ms latency.

Available SDKs

Choose the SDK that matches your platform:

JavaScript SDK

For web applications and browsers. Supports WebRTC publish/play, data channels, and peer-to-peer connections.

Android SDK

Native Android SDK for mobile apps. Optimized for performance with hardware encoding/decoding support.

iOS SDK

Native iOS SDK for iPhone and iPad apps. Built with Swift/Objective-C compatibility.

React Native SDK

Cross-platform SDK for React Native apps on iOS and Android.

Flutter SDK

Cross-platform SDK for Flutter apps. Single codebase for iOS and Android.

Common Features

All SDKs provide the following core capabilities:
  • WebRTC Publishing: Stream video/audio from camera and microphone with ultra-low latency
  • WebRTC Playback: Play live streams with sub-500ms latency
  • Adaptive Bitrate: Automatic quality adjustment based on network conditions
  • Data Channels: Send and receive real-time data alongside video streams
  • Conference Room: Multi-party video conferencing support
  • Peer-to-Peer: Direct WebRTC connections between clients
  • Screen Sharing: Share screen content (platform dependent)

Getting Started

1

Choose your platform

Select the SDK that matches your application platform from the list above.
2

Install the SDK

Follow the installation instructions in the specific SDK documentation.
3

Initialize connection

Configure the SDK with your Ant Media Server URL and application name.
4

Publish or play

Use the SDK methods to publish streams from your device or play existing streams.

Integration Patterns

One-to-Many Broadcasting

Use WebRTC publishing on one device (broadcaster) and WebRTC playback on multiple devices (viewers) for ultra-low latency live streaming.
// Publisher
webRTCAdaptor.publish(streamId);

// Viewers
webRTCAdaptor.play(streamId);

Video Conferencing

Create conference rooms where multiple participants can publish and play each other’s streams simultaneously.
webRTCAdaptor.joinRoom(roomId);

Peer-to-Peer Calls

Establish direct WebRTC connections between two clients for one-on-one video calls.
webRTCAdaptor.join(streamId);

Server Requirements

To use the SDKs, you need:
  • Ant Media Server installed and running (Community or Enterprise Edition)
  • SSL/TLS certificate configured (required for WebRTC in production)
  • WebSocket enabled (default port: 5080 HTTP, 5443 HTTPS)
  • TURN server configured for clients behind restrictive NATs (optional but recommended)
WebRTC requires HTTPS in production environments. Make sure to set up SSL/TLS certificates on your Ant Media Server. See the SSL setup guide for details.

Authentication

All SDKs support token-based authentication to secure your streams:
webRTCAdaptor.publish(streamId, token);
Learn more about authentication and security in the security documentation.

Need Help?

  • Community Support: GitHub Discussions
  • Documentation: Each SDK has detailed documentation and examples
  • Sample Apps: All SDKs include sample applications to help you get started
  • Enterprise Support: Available with Enterprise Edition

Next Steps

REST API

Manage streams programmatically with the REST API

Security

Learn about token authentication and security features

Streaming Protocols

Understand WebRTC, RTMP, SRT, and HLS protocols

Clustering

Scale your application with cluster mode

Build docs developers (and LLMs) love