WCS developer guide outdated?

Rahul

New Member
I am following https://flashphoner.com/docs/wcs5/wcs_docs/html/en/wcs-developer-guide-2/
It seems that this is outdated(please correct me if I'm wrong).
This link talks about "To analyze the code, let's take the version of file streamer.js with hash cf0daabc6b86e21d5a2f9e4605366c8b7f0d27eb, which is available here https://github.com/flashphoner/flas.../examples/demo/streaming/streamer/streamer.js
I get this error:
Code:
Uncaught TypeError: Cannot read property 'SESSION_STATUS' of undefined
    at streamer.js:1
On further investigation I found out that the branch in above link of code does not work with flashphoner.js latest version file. Infact that branch does not at all have a flashphoner.js file. It has a flashphoner-core.js file which uses native nodejs syntax like require etc...

Kindly let me know how do I get that streamer demo working.
 

Max

Administrator
Staff member
Hello
The developer guide is correct.
Please check Web SDK home page.
As you can see from this page:
1. Source code
https://github.com/flashphoner/flashphoner_client/tree/wcs_api-2.0
2. Builds
https://flashphoner.com/downloads/builds/flashphoner_client/wcs_api-2.0/
To get this working you have to download latest version of build.
Example:
https://flashphoner.com/downloads/b...fd86af03fee16ba4bd1ebd4ccfe7e7fb6bb804.tar.gz
You don't see flashphoner.js because this file is result of build from sources and it is located in the builds.
Generally we don't recommend to use raw sources, though you can build from them using npm and grunt and flex.
So right direction is:
1. Download latest web sdk build.
2. Unzip this build.
3. Use flashphoner.js from this build.
 
Top