@arenahito/droid-webscr 0.0.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/android/droid-webscr-server-android.jar +0 -0
- package/dist/bin.d.ts +5 -17
- package/dist/bin.js +334 -207
- package/dist/bin.js.map +1 -1
- package/package.json +8 -11
- package/web/assets/disconnected-phone-WRg-ns9U.png +0 -0
- package/web/assets/index-B3WqGQL0.js +10 -0
- package/web/assets/index-CxnoJHDV.css +2 -0
- package/web/index.html +13 -0
- package/dist/index.d.ts +0 -43
- package/dist/index.js +0 -15705
- package/dist/index.js.map +0 -1
- package/dist/main.d.ts +0 -22
- package/dist/main.js +0 -16204
- package/dist/main.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# droid-webscr
|
|
2
2
|
|
|
3
|
-
droid-webscr is a local Android screen streaming and control tool. It runs a
|
|
4
|
-
Node.js
|
|
5
|
-
and
|
|
3
|
+
droid-webscr is a local Android screen streaming and control tool. It runs a local
|
|
4
|
+
Node.js server on your machine, pushes a temporary Android-side server through ADB,
|
|
5
|
+
and serves a browser UI for viewing and controlling an authorized Android device.
|
|
6
6
|
|
|
7
7
|
The project is under active development. Expect CLI and protocol details to keep
|
|
8
8
|
moving until the first stable release.
|
|
@@ -44,21 +44,21 @@ droid-webscr
|
|
|
44
44
|
|
|
45
45
|
## Usage
|
|
46
46
|
|
|
47
|
-
Start the local
|
|
47
|
+
Start the local server and web UI:
|
|
48
48
|
|
|
49
49
|
```sh
|
|
50
50
|
droid-webscr
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
By default the
|
|
53
|
+
By default the integrated server listens on:
|
|
54
54
|
|
|
55
55
|
```text
|
|
56
56
|
http://127.0.0.1:7391
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
Open the
|
|
59
|
+
Open the printed URL, select an authorized device, and start a session. The session
|
|
60
60
|
streams the Android display into the browser and sends control frames back to the
|
|
61
|
-
device through the local
|
|
61
|
+
device through the local server.
|
|
62
62
|
|
|
63
63
|
The UI supports:
|
|
64
64
|
|
|
Binary file
|
package/dist/bin.d.ts
CHANGED
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
declare function startPackagedRuntime(): Promise<{
|
|
3
|
+
close: () => Promise<void>;
|
|
4
|
+
readonly url: string;
|
|
5
|
+
}>;
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
stderr(value: string): void;
|
|
8
|
-
stdout(value: string): void;
|
|
9
|
-
}
|
|
10
|
-
interface CliRuntime {
|
|
11
|
-
readonly packageVersion?: string | undefined;
|
|
12
|
-
readonly startAgent?: (() => Promise<AgentRuntime>) | undefined;
|
|
13
|
-
readonly stderr?: ((value: string) => void) | undefined;
|
|
14
|
-
readonly stdout?: ((value: string) => void) | undefined;
|
|
15
|
-
}
|
|
16
|
-
declare function runCli(argv: readonly string[], runtime?: CliRuntime): Promise<number>;
|
|
17
|
-
declare function createCliHelp(): string;
|
|
18
|
-
|
|
19
|
-
export { type CliIo, type CliRuntime, createCliHelp, runCli };
|
|
7
|
+
export { startPackagedRuntime };
|