@yume-chan/scrcpy 0.0.13 → 0.0.16
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/CHANGELOG.json +45 -0
- package/CHANGELOG.md +25 -1
- package/LICENSE +21 -21
- package/README.md +90 -89
- package/bin/scrcpy-server +0 -0
- package/bin/version.d.ts +1 -1
- package/bin/version.js +1 -1
- package/esm/client.d.ts +14 -2
- package/esm/client.d.ts.map +1 -1
- package/esm/client.js +275 -143
- package/esm/client.js.map +1 -1
- package/esm/connection.d.ts.map +1 -1
- package/esm/connection.js +74 -86
- package/esm/connection.js.map +1 -1
- package/esm/decoder/tinyh264/index.js +48 -48
- package/esm/decoder/tinyh264/index.js.map +1 -1
- package/esm/decoder/tinyh264/wrapper.js +3 -2
- package/esm/decoder/tinyh264/wrapper.js.map +1 -1
- package/esm/decoder/web-codecs/index.js +26 -21
- package/esm/decoder/web-codecs/index.js.map +1 -1
- package/esm/message.d.ts +13 -8
- package/esm/message.d.ts.map +1 -1
- package/esm/message.js +14 -8
- package/esm/message.js.map +1 -1
- package/esm/options/1_16/index.d.ts +8 -4
- package/esm/options/1_16/index.d.ts.map +1 -1
- package/esm/options/1_16/index.js +44 -18
- package/esm/options/1_16/index.js.map +1 -1
- package/esm/options/1_16/sps.js +3 -2
- package/esm/options/1_16/sps.js.map +1 -1
- package/esm/options/1_18.d.ts +3 -2
- package/esm/options/1_18.d.ts.map +1 -1
- package/esm/options/1_18.js +24 -1
- package/esm/options/1_18.js.map +1 -1
- package/esm/options/1_21.js +4 -1
- package/esm/options/1_21.js.map +1 -1
- package/esm/options/1_22.d.ts +3 -3
- package/esm/options/1_22.d.ts.map +1 -1
- package/esm/options/1_22.js +9 -6
- package/esm/options/1_22.js.map +1 -1
- package/esm/options/1_23.js +4 -1
- package/esm/options/1_23.js.map +1 -1
- package/esm/options/1_24.d.ts +9 -0
- package/esm/options/1_24.d.ts.map +1 -0
- package/esm/options/1_24.js +13 -0
- package/esm/options/1_24.js.map +1 -0
- package/esm/options/common.d.ts +2 -0
- package/esm/options/common.d.ts.map +1 -1
- package/esm/options/common.js.map +1 -1
- package/esm/options/index.d.ts +1 -0
- package/esm/options/index.d.ts.map +1 -1
- package/esm/options/index.js +1 -0
- package/esm/options/index.js.map +1 -1
- package/esm/push-server.js +5 -10
- package/esm/push-server.js.map +1 -1
- package/package.json +8 -8
- package/scrcpy.LICENSE +203 -203
- package/scripts/fetch-server.cjs +28 -28
- package/src/client.ts +435 -275
- package/src/codec.ts +35 -35
- package/src/connection.ts +148 -145
- package/src/decoder/index.ts +3 -3
- package/src/decoder/tinyh264/index.ts +112 -112
- package/src/decoder/tinyh264/types.d.ts +137 -137
- package/src/decoder/tinyh264/worker.ts +2 -2
- package/src/decoder/tinyh264/wrapper.ts +89 -89
- package/src/decoder/types.ts +35 -35
- package/src/decoder/web-codecs/index.ts +99 -99
- package/src/index.ts +8 -8
- package/src/message.ts +113 -105
- package/src/options/1_16/index.ts +345 -315
- package/src/options/1_16/sps.ts +300 -300
- package/src/options/1_18.ts +61 -41
- package/src/options/1_21.ts +34 -34
- package/src/options/1_22.ts +78 -80
- package/src/options/1_24.ts +18 -0
- package/src/options/common.ts +66 -63
- package/src/options/index.ts +7 -6
- package/src/push-server.ts +24 -24
- package/src/utils.ts +5 -5
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yume-chan/scrcpy",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.0.16",
|
|
6
|
+
"tag": "@yume-chan/scrcpy_v0.0.16",
|
|
7
|
+
"date": "Sat, 28 May 2022 03:56:37 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"none": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Upgrade TypeScript to 4.7.2 to enable Node.js ESM"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"comment": "Add support for more `CodecOptions` keys"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"comment": "Add support for `CodecOptions` value types other than `int`"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"version": "0.0.15",
|
|
24
|
+
"tag": "@yume-chan/scrcpy_v0.0.15",
|
|
25
|
+
"date": "Mon, 02 May 2022 04:18:01 GMT",
|
|
26
|
+
"comments": {
|
|
27
|
+
"none": [
|
|
28
|
+
{
|
|
29
|
+
"comment": "Add support for `rotateDevice` control message"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"comment": "Add method to get screen list"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"version": "0.0.14",
|
|
39
|
+
"tag": "@yume-chan/scrcpy_v0.0.14",
|
|
40
|
+
"date": "Sat, 30 Apr 2022 14:05:48 GMT",
|
|
41
|
+
"comments": {
|
|
42
|
+
"none": [
|
|
43
|
+
{
|
|
44
|
+
"comment": "Add support for new option of 1.24"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
4
49
|
{
|
|
5
50
|
"version": "0.0.13",
|
|
6
51
|
"tag": "@yume-chan/scrcpy_v0.0.13",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
# Change Log - @yume-chan/scrcpy
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Sat, 28 May 2022 03:56:37 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.0.16
|
|
6
|
+
Sat, 28 May 2022 03:56:37 GMT
|
|
7
|
+
|
|
8
|
+
### Updates
|
|
9
|
+
|
|
10
|
+
- Upgrade TypeScript to 4.7.2 to enable Node.js ESM
|
|
11
|
+
- Add support for more `CodecOptions` keys
|
|
12
|
+
- Add support for `CodecOptions` value types other than `int`
|
|
13
|
+
|
|
14
|
+
## 0.0.15
|
|
15
|
+
Mon, 02 May 2022 04:18:01 GMT
|
|
16
|
+
|
|
17
|
+
### Updates
|
|
18
|
+
|
|
19
|
+
- Add support for `rotateDevice` control message
|
|
20
|
+
- Add method to get screen list
|
|
21
|
+
|
|
22
|
+
## 0.0.14
|
|
23
|
+
Sat, 30 Apr 2022 14:05:48 GMT
|
|
24
|
+
|
|
25
|
+
### Updates
|
|
26
|
+
|
|
27
|
+
- Add support for new option of 1.24
|
|
4
28
|
|
|
5
29
|
## 0.0.13
|
|
6
30
|
Thu, 28 Apr 2022 01:23:53 GMT
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2020-2022 Simon Chan
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020-2022 Simon Chan
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,89 +1,90 @@
|
|
|
1
|
-
# @yume-chan/scrcpy
|
|
2
|
-
|
|
3
|
-
TypeScript implementation of [Scrcpy](https://github.com/Genymobile/scrcpy) client.
|
|
4
|
-
|
|
5
|
-
It uses the official Scrcpy server releases.
|
|
6
|
-
|
|
7
|
-
**WARNING:** The public API is UNSTABLE. If you have any questions, please open an issue.
|
|
8
|
-
|
|
9
|
-
## Download Server Binary
|
|
10
|
-
|
|
11
|
-
This package has a script `fetch-scrcpy-server` to help you download the official server binary.
|
|
12
|
-
|
|
13
|
-
The server binary is subject to [Apache License 2.0](https://github.com/Genymobile/scrcpy/blob/master/LICENSE).
|
|
14
|
-
|
|
15
|
-
Usage:
|
|
16
|
-
|
|
17
|
-
```
|
|
18
|
-
$ npx fetch-scrcpy-server <version>
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
For example:
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
$ npx fetch-scrcpy-server 1.21
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
You can also add it to the `postinstall` script of your `package.json` so it will run automatically when you do `npm install`:
|
|
28
|
-
|
|
29
|
-
```json
|
|
30
|
-
"scripts": {
|
|
31
|
-
"postinstall": "fetch-scrcpy-server 1.21",
|
|
32
|
-
},
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
It will download the binary to `bin/scrcpy` and write the version string to `bin/version.js`. You can import the version string with
|
|
36
|
-
|
|
37
|
-
```js
|
|
38
|
-
import SCRCPY_SERVER_VERSION from '@yume-chan/scrcpy/bin/version';
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
And import the server binary with [file-loader](https://v4.webpack.js.org/loaders/file-loader/) (Webpack 4) or [Asset Modules](https://webpack.js.org/guides/asset-modules/) (Webpack 5).
|
|
42
|
-
|
|
43
|
-
## Option versions
|
|
44
|
-
|
|
45
|
-
Scrcpy server has no backward compatibility on options input format. Currently the following versions are supported:
|
|
46
|
-
|
|
47
|
-
| versions | type |
|
|
48
|
-
| --------- | ------------------- |
|
|
49
|
-
| 1.16~1.17 | `ScrcpyOptions1_16` |
|
|
50
|
-
| 1.18~1.20 | `ScrcpyOptions1_18` |
|
|
51
|
-
| 1.21 | `ScrcpyOptions1_21` |
|
|
52
|
-
| 1.22 | `ScrcpyOptions1_22` |
|
|
53
|
-
| 1.23 | `ScrcpyOptions1_23` |
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
*
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
|
66
|
-
|
|
|
67
|
-
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
const
|
|
79
|
-
|
|
80
|
-
client.
|
|
81
|
-
client.
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
})
|
|
88
|
-
|
|
89
|
-
|
|
1
|
+
# @yume-chan/scrcpy
|
|
2
|
+
|
|
3
|
+
TypeScript implementation of [Scrcpy](https://github.com/Genymobile/scrcpy) client.
|
|
4
|
+
|
|
5
|
+
It uses the official Scrcpy server releases.
|
|
6
|
+
|
|
7
|
+
**WARNING:** The public API is UNSTABLE. If you have any questions, please open an issue.
|
|
8
|
+
|
|
9
|
+
## Download Server Binary
|
|
10
|
+
|
|
11
|
+
This package has a script `fetch-scrcpy-server` to help you download the official server binary.
|
|
12
|
+
|
|
13
|
+
The server binary is subject to [Apache License 2.0](https://github.com/Genymobile/scrcpy/blob/master/LICENSE).
|
|
14
|
+
|
|
15
|
+
Usage:
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
$ npx fetch-scrcpy-server <version>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
For example:
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
$ npx fetch-scrcpy-server 1.21
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
You can also add it to the `postinstall` script of your `package.json` so it will run automatically when you do `npm install`:
|
|
28
|
+
|
|
29
|
+
```json
|
|
30
|
+
"scripts": {
|
|
31
|
+
"postinstall": "fetch-scrcpy-server 1.21",
|
|
32
|
+
},
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
It will download the binary to `bin/scrcpy` and write the version string to `bin/version.js`. You can import the version string with
|
|
36
|
+
|
|
37
|
+
```js
|
|
38
|
+
import SCRCPY_SERVER_VERSION from '@yume-chan/scrcpy/bin/version';
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
And import the server binary with [file-loader](https://v4.webpack.js.org/loaders/file-loader/) (Webpack 4) or [Asset Modules](https://webpack.js.org/guides/asset-modules/) (Webpack 5).
|
|
42
|
+
|
|
43
|
+
## Option versions
|
|
44
|
+
|
|
45
|
+
Scrcpy server has no backward compatibility on options input format. Currently the following versions are supported:
|
|
46
|
+
|
|
47
|
+
| versions | type |
|
|
48
|
+
| --------- | ------------------- |
|
|
49
|
+
| 1.16~1.17 | `ScrcpyOptions1_16` |
|
|
50
|
+
| 1.18~1.20 | `ScrcpyOptions1_18` |
|
|
51
|
+
| 1.21 | `ScrcpyOptions1_21` |
|
|
52
|
+
| 1.22 | `ScrcpyOptions1_22` |
|
|
53
|
+
| 1.23 | `ScrcpyOptions1_23` |
|
|
54
|
+
| 1.24 | `ScrcpyOptions1_24` |
|
|
55
|
+
|
|
56
|
+
You must use the correct type according to the server version.
|
|
57
|
+
|
|
58
|
+
## Video stream
|
|
59
|
+
|
|
60
|
+
The data from `onVideoData` event is a raw H.264 stream. You can process it as you want, or use the following built-in decoders to render it in browsers:
|
|
61
|
+
|
|
62
|
+
* WebCodecs decoder: Uses the [WebCodecs API](https://developer.mozilla.org/en-US/docs/Web/API/WebCodecs_API). The video stream will be decoded into `VideoFrame`s and drawn on a 2D canvas.
|
|
63
|
+
* TinyH264 decoder: TinyH264 compiles the old Android H.264 software decoder (now deprecated and removed) into WebAssembly, and wrap it in Web Worker to prevent blocking the main thread. The video stream will be decoded into YUV frames, then converted to RGB using a WebGL shader.
|
|
64
|
+
|
|
65
|
+
| Name | Chrome | Firefox | Safari | Performance | Supported H.264 profile/level |
|
|
66
|
+
| ----------------- | ------ | ------- | ------ | ------------------------------- | ----------------------------- |
|
|
67
|
+
| WebCodecs decoder | 94 | No | No | High with Hardware acceleration | High level 5 |
|
|
68
|
+
| TinyH264 decoder | 57 | 52 | 11 | Poor | Baseline level 4 |
|
|
69
|
+
|
|
70
|
+
TinyH264 decoder needs some extra setup:
|
|
71
|
+
|
|
72
|
+
1. `tinyh264`, `yuv-buffer` and `yuv-canvas` packages are peer dependencies. You must install them separately.
|
|
73
|
+
2. The bundler you use must support the `new Worker(new URL('./worker.js', import.meta.url))` syntax. It's known to work with Webpack 5.
|
|
74
|
+
|
|
75
|
+
Example usage:
|
|
76
|
+
|
|
77
|
+
```ts
|
|
78
|
+
const client = new ScrcpyClient(adb);
|
|
79
|
+
const decoder = new WebCodecsDecoder(); // Or `new TinyH264Decoder()`
|
|
80
|
+
client.onSizeChanged(size => decoder.setSize(size));
|
|
81
|
+
client.onVideoData(data => decoder.feed(data));
|
|
82
|
+
client.start(serverPath, serverVersion, new ScrcpyOptionsX_XX({
|
|
83
|
+
...options,
|
|
84
|
+
codecOptions: new CodecOptions({
|
|
85
|
+
profile: decoder.maxProfile,
|
|
86
|
+
level: decoder.maxLevel,
|
|
87
|
+
}),
|
|
88
|
+
}));
|
|
89
|
+
document.body.appendChild(decoder.element);
|
|
90
|
+
```
|
package/bin/scrcpy-server
CHANGED
|
Binary file
|
package/bin/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.
|
|
1
|
+
export default '1.24';
|
package/bin/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.
|
|
1
|
+
export default '1.24';
|
package/esm/client.d.ts
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
import { type Adb, type AdbSocket, type AdbSubprocessProtocol
|
|
1
|
+
import { ReadableStream, type Adb, type AdbSocket, type AdbSubprocessProtocol } from '@yume-chan/adb';
|
|
2
2
|
import { ScrcpyInjectKeyCodeControlMessage, ScrcpyInjectTouchControlMessage, type AndroidKeyEventAction } from './message.js';
|
|
3
3
|
import type { ScrcpyInjectScrollControlMessage1_22, ScrcpyOptions, VideoStreamPacket } from "./options/index.js";
|
|
4
4
|
export declare class ScrcpyClient {
|
|
5
|
+
/**
|
|
6
|
+
* This method will modify the given `options`,
|
|
7
|
+
* so don't reuse it elsewhere.
|
|
8
|
+
*/
|
|
5
9
|
static getEncoders(adb: Adb, path: string, version: string, options: ScrcpyOptions<any>): Promise<string[]>;
|
|
10
|
+
/**
|
|
11
|
+
* This method will modify the given `options`,
|
|
12
|
+
* so don't reuse it elsewhere.
|
|
13
|
+
*/
|
|
14
|
+
static getDisplays(adb: Adb, path: string, version: string, options: ScrcpyOptions<any>): Promise<number[]>;
|
|
6
15
|
static start(adb: Adb, path: string, version: string, options: ScrcpyOptions<any>): Promise<ScrcpyClient>;
|
|
7
16
|
private _adb;
|
|
8
17
|
get adb(): Adb;
|
|
@@ -24,13 +33,16 @@ export declare class ScrcpyClient {
|
|
|
24
33
|
<TThis, TArgs extends unknown[]>(listener: import("@yume-chan/event").EventListener<string, TThis, TArgs, unknown>, thisArg: TThis, ...args: TArgs): import("@yume-chan/event").RemoveEventListener;
|
|
25
34
|
};
|
|
26
35
|
private lastTouchMessage;
|
|
27
|
-
constructor(adb: Adb, options: ScrcpyOptions<any>, process: AdbSubprocessProtocol, videoStream: AdbSocket, controlStream: AdbSocket | undefined);
|
|
36
|
+
constructor(adb: Adb, options: ScrcpyOptions<any>, process: AdbSubprocessProtocol, stdout: ReadableStream<string>, videoStream: AdbSocket, controlStream: AdbSocket | undefined);
|
|
28
37
|
private checkControlStream;
|
|
38
|
+
private getControlMessageTypeValue;
|
|
29
39
|
injectKeyCode(message: Omit<ScrcpyInjectKeyCodeControlMessage, 'type'>): Promise<void>;
|
|
30
40
|
injectText(text: string): Promise<void>;
|
|
31
41
|
injectTouch(message: Omit<ScrcpyInjectTouchControlMessage, 'type' | 'screenWidth' | 'screenHeight'>): Promise<void>;
|
|
32
42
|
injectScroll(message: Omit<ScrcpyInjectScrollControlMessage1_22, 'type' | 'screenWidth' | 'screenHeight'>): Promise<void>;
|
|
33
43
|
pressBackOrTurnOnScreen(action: AndroidKeyEventAction): Promise<void>;
|
|
44
|
+
private sendSimpleControlMessage;
|
|
45
|
+
rotateDevice(): Promise<void>;
|
|
34
46
|
close(): Promise<void>;
|
|
35
47
|
}
|
|
36
48
|
//# sourceMappingURL=client.d.ts.map
|
package/esm/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkG,cAAc,EAAmC,KAAK,GAAG,EAAE,KAAK,SAAS,EAAE,KAAK,qBAAqB,EAAoC,MAAM,gBAAgB,CAAC;AAGzQ,OAAO,EAAsD,iCAAiC,EAAkC,+BAA+B,EAA8B,KAAK,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAC9O,OAAO,KAAK,EAAE,oCAAoC,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AA8FjH,qBAAa,YAAY;IACrB;;;OAGG;WACiB,WAAW,CAC3B,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,aAAa,CAAC,GAAG,CAAC,GAC5B,OAAO,CAAC,MAAM,EAAE,CAAC;IA2BpB;;;OAGG;WACiB,WAAW,CAC3B,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,aAAa,CAAC,GAAG,CAAC,GAC5B,OAAO,CAAC,MAAM,EAAE,CAAC;WA8BA,KAAK,CACrB,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,aAAa,CAAC,GAAG,CAAC;IA6E/B,OAAO,CAAC,IAAI,CAAM;IAClB,IAAW,GAAG,QAAwB;IAEtC,OAAO,CAAC,OAAO,CAAqB;IACpC,OAAO,CAAC,OAAO,CAAwB;IAEvC,OAAO,CAAC,OAAO,CAAyB;IACxC,IAAW,MAAM,2BAA2B;IAE5C,IAAW,IAAI,oBAAgC;IAE/C,OAAO,CAAC,YAAY,CAAqB;IACzC,IAAW,WAAW,uBAAgC;IAEtD,OAAO,CAAC,aAAa,CAAqB;IAC1C,IAAW,YAAY,uBAAiC;IAExD,OAAO,CAAC,YAAY,CAAoC;IACxD,IAAW,WAAW,sCAAgC;IAEtD,OAAO,CAAC,oBAAoB,CAAsD;IAElF,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAA8B;IACnE,IAAW,iBAAiB;;;MAA8C;IAE1E,OAAO,CAAC,gBAAgB,CAAK;gBAGzB,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,aAAa,CAAC,GAAG,CAAC,EAC3B,OAAO,EAAE,qBAAqB,EAC9B,MAAM,EAAE,cAAc,CAAC,MAAM,CAAC,EAC9B,WAAW,EAAE,SAAS,EACtB,aAAa,EAAE,SAAS,GAAG,SAAS;IAwCxC,OAAO,CAAC,kBAAkB;IAQ1B,OAAO,CAAC,0BAA0B;IASrB,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC,iCAAiC,EAAE,MAAM,CAAC;IAStE,UAAU,CAAC,IAAI,EAAE,MAAM;IASvB,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,+BAA+B,EAAE,MAAM,GAAG,aAAa,GAAG,cAAc,CAAC;IA2BnG,YAAY,CAAC,OAAO,EAAE,IAAI,CAAC,oCAAoC,EAAE,MAAM,GAAG,aAAa,GAAG,cAAc,CAAC;IAgBzG,uBAAuB,CAAC,MAAM,EAAE,qBAAqB;YAYpD,wBAAwB;IAQzB,YAAY;IAIZ,KAAK;CAIrB"}
|