抱歉,该网页目前还不存在中文版本,请继续浏览其他网页!

Samples

These sample applications can help get you up and running with the Crosswalk Project.

All sample source is available on github (MIT license). To use the samples, clone this project:

$ git clone https://github.com/crosswalk-project/crosswalk-samples.git

There will be a crosswalk-samples directory with several project sub-directories:

  • extensions-android – A simple Crosswalk Android extension example. The Android extensions tutorial explains how this was developed. See this README for build instructions.

  • hello-world – A minimal example.

  • simd-mandelbrot – An example of using Crosswalk's native support for SIMD.

  • space-dodge-game – A game where you dodge asteroids in a spaceship. This contains the code developed for the article about Crosswalk's screen APIs.

  • webgl – An example of how to use WebGL in Crosswalk via three.js.

  • webrtc – An example of using the WebRTC API in Crosswalk. This is the example developed in the WebRTC tutorial. See this README for build instructions.

For more information about the samples, follow the links in the menu.