• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1If you're a Chrome developer, here's how to run this example:
2
3Build the example, i.e. "make ppapi_example_url_loader" on Linux.
4
5In the "src" directory, start the test server:
6
7  On Linux:
8    export PYTHONPATH=third_party/pyftpdlib:third_party/tlslite:third_party
9    python net/tools/testserver/testserver.py --port=1337 --data-dir=ppapi/examples/url_loader
10
11  On Windows:
12    set PYTHONPATH=third_party\pyftpdlib;third_party\tlslite:third_party
13    python net/tools/testserver/testserver.py --port=1337 --data-dir=ppapi/examples/url_loader
14
15Then load the page:
16
17  On Linux:
18    out/Debug/chrome --register-pepper-plugins="[[[ YOUR SOURCE DIR ]]]/out/Debug/lib.target/libppapi_example_url_loader.so;application/x-ppapi-url-loader-example" http://127.0.0.1:1337/files/url_loader.html
19
20  On Windows just substitute the generated .dll name for the .so.
21
22And click the button!
23