openj-gate.com

lechoixdeslibraires.com

open4u.co.uk

argosnear.me

sarf3omlat.com

opencities.ca

australia-opening-times.com

embedding-iOS-SDK-mobile-application

Embedding WebRTC iOS SDK into your mobile application

WCS iOS SDK is a framework you can link to your code to carry out operations with video streams and calls. This article shows main functions and code examples.

 

 

Opening the project and preparing iOS SDK for work

You can download WCS iOS SDK here. Then, unpack the archive into any folder.

iOS-SDK-preparing-ro-work

After the archive is unpacled, you should open the WCSExample project in Xcode. Connect iPhone or iPad via USB and select it in the list of devices as shown on the picture. Then, click ‘Play’ to build and run the app on your iPhone or iPad.

iOS-SDK-opening-project

If there are errors while building the project, adjust paths as shown on the screenshot below.

preparing-ro-work-iOS-SDK

To do this, you need just four steps:

  1. cd WCSExample/FPWCSApi.framework
  2. rm -f FPWCSApi
  3. rm -f Headers
  4. ln -sf Versions/A/FPWCSApi FPWCSApi
  5. ln -sf Versions/A/Headers Headers

 

WCS iOS SDK main functions

The main functions of the API are listed in the FPWCSApi.h file of the framework:

WCS-iOS-SDK-main-functions

 

Main functions of the Streaming Min example

The main functions include:

  • API initialization
  • Connecting to the server
  • Publishing (sending) and playing of a video stream

 

Initialization of the API is performed in the following of the Streaming Min example, ViewController.m

streaming-min-example-iOS-SDK

Establishing connection to the server using the ‘connect’ function in ViewController.m

iOS-SDK-main-functions

Playing and publishing (sending) of a video stream are implemented in the same file, ViewController.m, via the calls to the ‘playStream’ and ‘publishStream’ API functions.

iOS-SDK-streaming-min-example

So, we have shown initialization and work of the main API functions: connect, playStream, publishStream. This is a bare minimum of functions that allows to establish connection to the server and send or play a video stream from the mobile application.

The complete list of functions, handling of statuses and errors can be found in WCS iOS SDK documentation

 

Main functions of the Phone Min example

The main functions in this example are:

  • API initialization
  • Establishing connection
  • Calling
  • Answering the incoming call

 

Initialization of the API is performed in the ViewController.m file of the Phone Min example:

iOS-SDK-phone-min-example

Connection is established in the connect method in the LoginViewController.m file:

phone-min-example-iOS-SDK

When the ‘Call’ button is clicked, the outgoing call is established. This is implemented in the same file of the example, LoginViewController.m.

phone-min-iOS-SDK-main-functions

To answer the incoming call, the ‘answer’ function is used as shown in the LoginViewController.m example.

main-functions-iOS-SDK-phone-min

Therefore, here we have shown how the API is initialized for the Phone Min example and specified three functions required for a video chat or a SIP call:

  • connect
  • call
  • answer

 

The complete list of funtions, handling of statuses and errors can be found in WCS iOS SDK documentation

 

Summary of using the iOS SDK code and Streaming Min and Phone Min examples

Here, we have shown how the Objective-C code is organized in Streaming Min and Phone Min examples in the Xcode development framework. You can use these examples to develop your own applications for streaming video, broadcasts, bideo chats and video calls to SIP and mobile telephones.

You can find screenshots of Streaming Min and Phone Min example tests in the Testing section.

 

Download Web Call Server 5

System requirements: Linux x86_64, 1 core CPU, 1 Gb RAM, Java

    Download Now    

Installation:

  1. wget https://flashphoner.com/download-wcs5-server.tar.gz
  2. Unpack and install using ‘install.sh’
  3. Launch server using command ‘service webcallserver start’
  4. Open the web interface http://host:9091 and activate your license

 

If you are using Amazon EC2, you don’t need to download anything.

Launch WCS5 on Amazon EC2

 

If your project requires another level of support or any additional custom features or development, please feel free to contact us sales@flashphoner.com with any questions.

Try Web Call Server

This is 30-days trial version. Please fill out the form to get license.


Processing...

 
x

This page is out of date

Please visit the actual iOS SDK page