Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

1. Download sources

Code Block
languagebash
themeRDark
cd /usr/local/src


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

Code Block
languagebash
themeRDark
wget https://github.com/flashphoner/flashphoner_client/archive/wcs_api-2.0.zip
unzip wcs_api-2.0.zip


Download latest flashphoner_client build from https://flashphoner.com/downloads/builds/flashphoner_client/wcs_api-2.0/

Code Block
languagebash
themeRDark
wget https://flashphoner.com/downloads/builds/flashphoner_client/wcs_api-2.0/flashphoner-api-0.5.25.2455-0338741669d1de9219b1cb7565eb9a4333f22fe7.tar.gz
tar -xvf flashphoner-api-0.5.25.2455-0338741669d1de9219b1cb7565eb9a4333f22fe7.tar.gz


Copy media-source-media-provider.js from flashphoner_client build to the sources

Code Block
languagebash
themeRDark
cp flashphoner-api-0.5.25/examples/demo/dependencies/mse/media-source-media-provider.js flashphoner_client-wcs_api-2.0/src


2. Download Flex SDK

Required for Flash

Code Block
languagebash
themeRDark
mkdir flex_sdk_4.6
wget http://download.macromedia.com/pub/flex/sdk/flex_sdk_4.6.zip
unzip flex_sdk_4.6.zip -d flex_sdk_4.6


Specify the path in Gruntfile.js

Code Block
languagebash
themeRDark
sed -i -e "s@env.FLEX_HOME@'\/usr\/local\/src\/flex_sdk_4.6'@g" flashphoner_client-wcs_api-2.0/Gruntfile.js


3. Install npm and grunt

Code Block
languagebash
themeRDark
Install npm, e.g. for CentOS

yum -y install nodejs npm


4. Install npm modules

Code Block
languagebash
themeRDark
cd flashphoner_client-wcs_api-2.0
npm install
sed -i -e 's@static-link-runtime-shared-libraries=true@static-link-runtime-shared-libraries=false@g' node_modules/grunt-flash-compiler/tasks/flash-compiler.js


5. Build the client

For release, run

grunt release

For building Flash:

Grunt flash

For building limited versions with excluded media providers:

grunt browserify

(See the tasks in Gruntfile.js.)


6. Copy scripts for WSPlayer

For WSPlayer, WSReceiver2.js and video-worker2.js are required. The scripts are available in flashphoner_client build.

Code Block
languagebash
themeRDark
cp ../flashphoner-api-0.5.25/examples/demo/dependencies/websocket-player release/*/examples/demo/dependencies -R