Crosswalk QuickStart, using WEBRTC (HTML) to start developing video calls

Source: Internet
Author: User

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
    1. Download page:

      http://www.oracle.com/technetwork/java/javase/downloads/

      Select the Java version to download (recommended Java 7).

    2. Select a JDK to download and accept the license agreement.

    3. Once downloaded, run the setup program.

Installing Ant
  1. Ant: Download http://www.apache.org/dist/ant/binaries/

    recommended version 1.9.3.

  2. Unzip to C盘 .

  3. 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:

  1. Select the path environment variable (at the top of the Select box, user variable...).

  2. Click Edit .

  3. Additional end- variable value fields:

    ;c:\python;c:\ant\bin;c:\jdk\bin
  4. Click confirm .

JAVA_HOMEto set the location of the environment variable JDK:

  1. Click the New button at the top of the Select box ( User Variables...).

  2. Set variable name to java_home.

  3. Set variable value to c: \ jdk \ bin.

  4. Click OK .

Installing the Android SDK
  1. Download Android sdkhttp://developer.android.com/sdk/index.html.

  2. The extracted file is archived.

  3. 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"

    toolsand the platform-tools directory may be in a slightly different location, depending on how you install the SDK. Modify the path above appropriately.

  4. To run the SDK:

    > "SDK Manager.exe"
  5. 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:

    1. 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).

    2. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.