iOS SDK
You can build your own streaming and calling mobile apps based on the iOS SDK. All signaling communications are held via the Websocket protocol. WebRTC is used for audio and video streaming
Connect to server FPWCSApi2Session *session = [FPWCSApi2 createSession:options error:&error]; |
Publish a stream FPWCSApi2Stream *stream = [session createStream:options error:&error]; if(![stream publish:&error]) { //published without errors } |
Play a stream FPWCSApi2Stream *stream = [session createStream:options error:nil]; if(![stream play:&error]){ //published without errors } |
Unpublish or stop ([FPWCSApi2 getSessions].count) { FPWCSApi2Session *session = [FPWCSApi2 getSessions][0]; NSLog(@"Disconnect session with server %@", [session getServerUrl]); [session disconnect]; |
Give it a try
1. Install WCS-server using this instruction or launch a server instance on Amazon AWS or DigitalOcean.
2. Here is described how to build examples using Xcode before 10. Examples building procedure with Xcode 10 and newer slightly differs, and described here.
Download iOS SDK builds
WebRTC iOS SDK and demo apps
Sample sources
Source code of demo apps for iOS SDK
iOS SDK API docs
Learn API documentation for iOS SDK
iOS SDK Developer Guide
Here we explain source codes of iOS mobile apps
iOS SDK code samples
Set of demo samples based on the iOS SDK
The streamer can be used to publish a live stream from a camera of a mobile device to the server.
The player is used for the live stream playback in mobile apps
This example is helpful if you need to place two or more live players on the same mobile app view.
You can select particular camera of a mobile device and apply available settings such as FPS, frame size, etc.
This example allows to record a live stream in a mobile application and then download or play the recorded stream.
This is two way streaming example when we publish a stream from a mobile device and play another stream simultaneously. It can be used as a base for video chat.
Video conference for three participants. Each participant can be a browser or mobile device.
Video chat for two participants. Each participant can be a browser or mobile device.
Click to Call button for SIP calls from a mobile app.
Phone mobile application working over the SIP protocol.
Phone mobile application with video support working over the SIP protocol.
All demo samples are described in the Developer Guide