blob: c9a67212c2d7eb295cca7f116ce0fd0af33a69e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
If you're a Chrome developer, here's how to run this example:
Build the example, i.e. "make ppapi_example_url_loader" on Linux.
In the "src" directory, start the test server:
On Linux:
export PYTHONPATH=third_party/pyftpdlib:third_party/tlslite:third_party
python net/tools/testserver/testserver.py --port=1337 --data-dir=ppapi/examples/url_loader
On Windows:
set PYTHONPATH=third_party\pyftpdlib;third_party\tlslite:third_party
python net/tools/testserver/testserver.py --port=1337 --data-dir=ppapi/examples/url_loader
Then load the page:
On Linux:
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
On Windows just substitute the generated .dll name for the .so.
And click the button!
|