Crosswalk QuickStart, using WEBRTC (HTML) to start developing video calls
Install Python
Download the installer from http://www.python.org/downloads/
After the installation is complete, add the environment variable again.
Installing Oracle JDK
Download page:
http://www.oracle.com/technetwork/java/javase/downloads/
Select the Java version to download (recommended Java 7).
Select a JDK to download and accept the license agreement.
Once downloaded, run the setup program.
Installing Ant
Ant: Download http://www.apache.org/dist/ant/binaries/
recommended version 1.9.3.
Unzip to C盘
.
Rename the extracted directory to ant
.
Ant is now installed on the C:\ant
.
Configuration tools
The next step is to set up your environment so that the Setup program (Ant,jdk,python) to the environment variable.
Set the Path
variables to look for the "edit for your account" environment variable from the Windows Start menu option. Alternatively, click the system icon Control Panel , then go to advanced system settings and click the Environment Variables button. You should see this dialog box:
The editing Path
environment variables are as follows:
Select the path environment variable (at the top of the Select box, user variable...).
Click Edit .
Additional end- variable value fields:
;c:\python;c:\ant\bin;c:\jdk\bin
Click confirm .
JAVA_HOME
to set the location of the environment variable JDK:
Click the New button at the top of the Select box ( User Variables...).
Set variable name to java_home.
Set variable value to c: \ jdk \ bin.
Click OK .
Installing the Android SDK
Download Android sdkhttp://developer.android.com/sdk/index.html.
The extracted file is archived.
The Android SDK directory is added to your PATH
:
> setx path "%path%;<path to Android SDK>"> setx path "%path%;<path to Android SDK>\sdk\tools"> setx path "%path%;<path to Android SDK>\sdk\platform-tools"
tools
and the platform-tools
directory may be in a slightly different location, depending on how you install the SDK. Modify the path above appropriately.
To run the SDK:
> "SDK Manager.exe"
In the SDK Manager window, select from the list the following items:
[ ] Tools [x] Android SDK Platform-tools 19.0.1 [x] Android SDK Build tools 18.0.1[ ] Android 4.3 (API 18) [x] SDK Platform
Download Crosswalk Android App template
Crosswalk Android distribution contains an application template that can be used as a wrapper for an HTML5 application. It also includes a script to convert the wrapped HTML5 application into an installable Android apk
file.
Let the crosswalk Android:
Download the version you want on the download page (https://crosswalk-project.org/documentation/downloads.html). We recommend that you use a stable version of Android (10.39.235.15).
Unzip it. Unzip to the crosswalk-10.39.235.15
directory.
Verify your environment
Check that the correct tools are installed to run these commands:
> java -versionjava version "1.7.0_45"Java(TM) SE Runtime Environment (build 1.7.0_45-b18)Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)> ant -versionApache Ant(TM) version 1.9.3 compiled on December 23 2013> python --versionPython 2.7.6> adb helpAndroid Debug Bridge version 1.0.31
Join WEBRTC HTML page
In the Extract directory, add a WebRTC folder, in this folder, add a index.html (as the first page) and a Manifest.json file, this file content is as follows:
{ "name": "WebRTC", "xwalk_version": "0.0.0.1", "Start_url": "Index.html"}
Compiling apk files
Go to Directory
Run: Python make_apk.py--package=org.crosswalkproject.example--manifest=webrtc/manifest.json
The exact operation is as follows:
The compiled results are as follows:
You can install and debug on your Android phone.
Crosswalk QuickStart, using WEBRTC (HTML) to start developing video calls