Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Resources

To develop web applications for streaming video and calls, use Web SDK. This is a set of scripts and examples to work with the WCS server.

Download Web SDK
http://flashphoner.com/downloads/builds/flashphoner_client/wcs_api-2.0

API documentation
http://flashphoner.com/docs/api/WCS5/client/web-sdk/latest

Working with the source code of the examples on your Web server

To work with demo examples on your own Apache, Nginx, Tomcat, IIS, or any other Web server,Use the latest available build of the web client:

http://flashphoner.com/downloads/builds/flashphoner_client/wcs_api-2.0

The building looks as follows:

doc - JavaScript API documentation
examples – demo examples
flashphoner.js – the main API file you should add to your web page, it enables all supported technologies.
flashphoner-no-flash.js – the alternative API file if you don’t plan using Flash
flashphoner-no-webrtc.js - the alternative API file if you don’t plan using WebRTC
flashphoner-no-wsplayer.js - the alternative API file if you don’t plan using the Websocket player
media-provider.swf – the file to support Flash operation

We will review individual examples below.

Working with the source code of the examples directly on the WCS server

If you installed Web Call Server, you can work with the source code of the demo examples directly.

The code of the examples is located at:

/usr/local/FlashphonerWebCallServer/client2/examples/demo

To test an individual example, open the corresponding page in the browser, for example:

https://host:8888/client2/examples/demo/streaming/player/player.html

Here, host is the address of your WCS server.

Therefore, you can make necessary changes to the scripts and test the modified demo example directly on the WCS server.

Source code of API and examples on Github

https://github.com/flashphoner/flashphoner_client/tree/wcs_api-2.0

Usually, you only need builds from the above links.
Most likely you will not need the source code. It is a last resort to make a quick fix on the API level.

In this documentation we use the source code to comment how examples work.
For example, this line 3 is a reference to the third line of the source code of package.json with the hash of 0b891b8.

Known issues

1. When web application is opened via WKWebView on iOS 11 and higher, stream playback only works, but not stream publishing

Symptoms: when Two Way Streaming example is opened in iOS application using WKWebView to view web links (Telegram for example) both stream publishing and playback do not work; when Player example is openede, stream playback works.

Solution: use WKWebView only for web applications that plays a stream without getUserMedia() function call, that is not supported in WKWebView.

  • No labels