@appium/media-proxy 0.0.0-stage → 1.1.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/CHANGELOG.md +33 -0
- package/LICENSE +201 -0
- package/README.md +184 -2
- package/THIRD_PARTY_NOTICES.md +29 -0
- package/binding.gyp +90 -0
- package/lib/src/background.d.ts +5 -0
- package/lib/src/background.d.ts.map +1 -0
- package/lib/src/background.js +16 -0
- package/lib/src/background.js.map +1 -0
- package/lib/src/capabilities.d.ts +9 -0
- package/lib/src/capabilities.d.ts.map +1 -0
- package/lib/src/capabilities.js +11 -0
- package/lib/src/capabilities.js.map +1 -0
- package/lib/src/errors.d.ts +26 -0
- package/lib/src/errors.d.ts.map +1 -0
- package/lib/src/errors.js +40 -0
- package/lib/src/errors.js.map +1 -0
- package/lib/src/framing/apst.d.ts +43 -0
- package/lib/src/framing/apst.d.ts.map +1 -0
- package/lib/src/framing/apst.js +126 -0
- package/lib/src/framing/apst.js.map +1 -0
- package/lib/src/framing/mjpeg-http.d.ts +30 -0
- package/lib/src/framing/mjpeg-http.d.ts.map +1 -0
- package/lib/src/framing/mjpeg-http.js +148 -0
- package/lib/src/framing/mjpeg-http.js.map +1 -0
- package/lib/src/framing/mjpeg-multipart.d.ts +11 -0
- package/lib/src/framing/mjpeg-multipart.d.ts.map +1 -0
- package/lib/src/framing/mjpeg-multipart.js +26 -0
- package/lib/src/framing/mjpeg-multipart.js.map +1 -0
- package/lib/src/index.d.ts +10 -0
- package/lib/src/index.d.ts.map +1 -0
- package/lib/src/index.js +7 -0
- package/lib/src/index.js.map +1 -0
- package/lib/src/native.d.ts +12 -0
- package/lib/src/native.d.ts.map +1 -0
- package/lib/src/native.js +36 -0
- package/lib/src/native.js.map +1 -0
- package/lib/src/pkg-root.d.ts +6 -0
- package/lib/src/pkg-root.d.ts.map +1 -0
- package/lib/src/pkg-root.js +12 -0
- package/lib/src/pkg-root.js.map +1 -0
- package/lib/src/queue.d.ts +34 -0
- package/lib/src/queue.d.ts.map +1 -0
- package/lib/src/queue.js +123 -0
- package/lib/src/queue.js.map +1 -0
- package/lib/src/transcoder.d.ts +81 -0
- package/lib/src/transcoder.d.ts.map +1 -0
- package/lib/src/transcoder.js +422 -0
- package/lib/src/transcoder.js.map +1 -0
- package/lib/src/types.d.ts +147 -0
- package/lib/src/types.d.ts.map +1 -0
- package/lib/src/types.js +2 -0
- package/lib/src/types.js.map +1 -0
- package/package.json +65 -4
- package/prebuilds/darwin-arm64/@appium+media-proxy.node +0 -0
- package/prebuilds/darwin-arm64/ffmpeg-LICENSE-LGPL-2.1.txt +502 -0
- package/prebuilds/darwin-arm64/ffmpeg-build-info.txt +3 -0
- package/prebuilds/darwin-arm64/libavcodec-appium.62.dylib +0 -0
- package/prebuilds/darwin-arm64/libavutil-appium.60.dylib +0 -0
- package/prebuilds/darwin-arm64/libswscale-appium.9.dylib +0 -0
- package/prebuilds/darwin-x64/@appium+media-proxy.node +0 -0
- package/prebuilds/darwin-x64/ffmpeg-LICENSE-LGPL-2.1.txt +502 -0
- package/prebuilds/darwin-x64/ffmpeg-build-info.txt +3 -0
- package/prebuilds/darwin-x64/libavcodec-appium.62.dylib +0 -0
- package/prebuilds/darwin-x64/libavutil-appium.60.dylib +0 -0
- package/prebuilds/darwin-x64/libswscale-appium.9.dylib +0 -0
- package/prebuilds/linux-arm64/@appium+media-proxy.node +0 -0
- package/prebuilds/linux-arm64/ffmpeg-LICENSE-LGPL-2.1.txt +502 -0
- package/prebuilds/linux-arm64/ffmpeg-build-info.txt +3 -0
- package/prebuilds/linux-arm64/libavcodec-appium.so.62 +0 -0
- package/prebuilds/linux-arm64/libavutil-appium.so.60 +0 -0
- package/prebuilds/linux-arm64/libswscale-appium.so.9 +0 -0
- package/prebuilds/linux-x64/@appium+media-proxy.node +0 -0
- package/prebuilds/linux-x64/ffmpeg-LICENSE-LGPL-2.1.txt +502 -0
- package/prebuilds/linux-x64/ffmpeg-build-info.txt +3 -0
- package/prebuilds/linux-x64/libavcodec-appium.so.62 +0 -0
- package/prebuilds/linux-x64/libavutil-appium.so.60 +0 -0
- package/prebuilds/linux-x64/libswscale-appium.so.9 +0 -0
- package/prebuilds/win32-arm64/@appium+media-proxy.node +0 -0
- package/prebuilds/win32-arm64/avcodec-appium-62.dll +0 -0
- package/prebuilds/win32-arm64/avutil-appium-60.dll +0 -0
- package/prebuilds/win32-arm64/ffmpeg-LICENSE-LGPL-2.1.txt +502 -0
- package/prebuilds/win32-arm64/ffmpeg-build-info.txt +3 -0
- package/prebuilds/win32-arm64/swscale-appium-9.dll +0 -0
- package/prebuilds/win32-x64/@appium+media-proxy.node +0 -0
- package/prebuilds/win32-x64/avcodec-appium-62.dll +0 -0
- package/prebuilds/win32-x64/avutil-appium-60.dll +0 -0
- package/prebuilds/win32-x64/ffmpeg-LICENSE-LGPL-2.1.txt +502 -0
- package/prebuilds/win32-x64/ffmpeg-build-info.txt +3 -0
- package/prebuilds/win32-x64/swscale-appium-9.dll +0 -0
- package/scripts/install.mjs +29 -0
- package/src/background.ts +15 -0
- package/src/capabilities.ts +12 -0
- package/src/errors.ts +45 -0
- package/src/framing/apst.ts +158 -0
- package/src/framing/mjpeg-http.ts +186 -0
- package/src/framing/mjpeg-multipart.ts +38 -0
- package/src/index.ts +43 -0
- package/src/native/addon.cc +402 -0
- package/src/native/audio_pipeline.cc +426 -0
- package/src/native/audio_pipeline.h +63 -0
- package/src/native/ffmpeg_util.h +37 -0
- package/src/native/h264_encoder.cc +133 -0
- package/src/native/h264_encoder.h +48 -0
- package/src/native/mediafoundation_encoder.cc +442 -0
- package/src/native/mediafoundation_encoder.h +14 -0
- package/src/native/napi_util.h +20 -0
- package/src/native/openh264_encoder.cc +285 -0
- package/src/native/openh264_encoder.h +14 -0
- package/src/native/pipeline.cc +555 -0
- package/src/native/pipeline.h +108 -0
- package/src/native/vendor/openh264/LICENSE +23 -0
- package/src/native/vendor/openh264/codec_api.h +592 -0
- package/src/native/vendor/openh264/codec_app_def.h +820 -0
- package/src/native/vendor/openh264/codec_def.h +216 -0
- package/src/native/vendor/openh264/codec_ver.h +15 -0
- package/src/native/videotoolbox_encoder.cc +314 -0
- package/src/native/videotoolbox_encoder.h +13 -0
- package/src/native.ts +51 -0
- package/src/pkg-root.ts +14 -0
- package/src/queue.ts +133 -0
- package/src/transcoder.ts +480 -0
- package/src/types.ts +158 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One native HEVC access unit as produced by `appium-ios-remotexpc`'s `ScreenStreamCapture`
|
|
3
|
+
* (structural, so this package has no dependency on it): bare NAL units, no start codes.
|
|
4
|
+
*/
|
|
5
|
+
export interface NalAccessUnit {
|
|
6
|
+
nals: Buffer[];
|
|
7
|
+
isKeyFrame: boolean;
|
|
8
|
+
/** Raw 32-bit RTP media-clock timestamp (24 kHz on the device, see `videoClockRate`). */
|
|
9
|
+
timestamp: number;
|
|
10
|
+
/** `performance.now()` when the unit arrived; aligns video with audio. Defaults to the push time. */
|
|
11
|
+
receivedAt?: number;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* One native AAC-ELD access unit as produced by `appium-ios-remotexpc`'s `AudioStreamCapture`
|
|
15
|
+
* (structural): 480 samples (10 ms) of 48 kHz stereo.
|
|
16
|
+
*/
|
|
17
|
+
export interface AudioAccessUnit {
|
|
18
|
+
data: Buffer;
|
|
19
|
+
/** Raw 32-bit RTP media-clock timestamp (48 kHz). */
|
|
20
|
+
timestamp: number;
|
|
21
|
+
/** `performance.now()` when the unit arrived; aligns audio with video. Defaults to the push time. */
|
|
22
|
+
receivedAt?: number;
|
|
23
|
+
}
|
|
24
|
+
/** Mirrors coresim's `VideoStreamOptions` (minus `displayId`/`codec`/`audio`). */
|
|
25
|
+
export interface VideoStreamOptions {
|
|
26
|
+
/**
|
|
27
|
+
* Max frames/sec — the input is variable-rate, so this is an upper bound, not a guarantee.
|
|
28
|
+
* Must be a finite number >= 1. Defaults to 60.
|
|
29
|
+
*/
|
|
30
|
+
fps?: number;
|
|
31
|
+
/** Target average bitrate, in bits/sec. Defaults to 4,000,000 (4 Mbps). */
|
|
32
|
+
bitrate?: number;
|
|
33
|
+
}
|
|
34
|
+
/** Mirrors coresim's `JpegStreamOptions` (minus `displayId`). */
|
|
35
|
+
export interface JpegStreamOptions {
|
|
36
|
+
/** Max frames/sec; must be a finite number >= 1. Defaults to 60. */
|
|
37
|
+
fps?: number;
|
|
38
|
+
/** JPEG quality as a percentage, 0 (smallest) to 100 (largest). Defaults to 80. */
|
|
39
|
+
quality?: number;
|
|
40
|
+
/** Frame scale as a percentage of the source, greater than 0 and at most 100. Defaults to 100. */
|
|
41
|
+
scale?: number;
|
|
42
|
+
}
|
|
43
|
+
/** Input-side options shared by both outputs (not part of coresim's, which has no RTP input). */
|
|
44
|
+
export interface InputOptions {
|
|
45
|
+
/**
|
|
46
|
+
* Clock rate in Hz of the RTP timestamps in the pushed `NalAccessUnit`s. Defaults to 24,000, which is what the
|
|
47
|
+
* device's screen stream uses (400 ticks per frame at 60 fps).
|
|
48
|
+
*/
|
|
49
|
+
videoClockRate?: number;
|
|
50
|
+
/**
|
|
51
|
+
* The visible part of the decoded picture, in pixels, taken from its top-left corner; the whole picture by
|
|
52
|
+
* default. The device pads its stream to a multiple of 16 with black (1632x2176 for a 1620x2160 display), so
|
|
53
|
+
* pass the display's size from CoreDevice's `getDisplayInfo()`. Both sides must be positive even integers.
|
|
54
|
+
*/
|
|
55
|
+
crop?: {
|
|
56
|
+
width: number;
|
|
57
|
+
height: number;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Clockwise degrees (0, 90, 180 or 270) that make the decoded picture upright, 0 by default. The device
|
|
61
|
+
* always streams the display's native orientation, so a landscape UI arrives turned. Change it while
|
|
62
|
+
* streaming with `Transcoder.setRotation()`.
|
|
63
|
+
*/
|
|
64
|
+
rotation?: Rotation;
|
|
65
|
+
}
|
|
66
|
+
/** Clockwise degrees that make a picture upright. */
|
|
67
|
+
export type Rotation = 0 | 90 | 180 | 270;
|
|
68
|
+
export interface H264Options extends VideoStreamOptions, InputOptions {
|
|
69
|
+
codec: 'h264';
|
|
70
|
+
/**
|
|
71
|
+
* Also transcode the device audio (AAC-ELD, fed through `pushAudio()` or the `audioSource` of
|
|
72
|
+
* `transcode()`) to ADTS-framed AAC-LC units interleaved into `units()`, like coresim. Defaults to false.
|
|
73
|
+
*/
|
|
74
|
+
audio?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* `AudioSpecificConfig` of the pushed audio. Defaults to the device's stream, which must be given
|
|
77
|
+
* its true 480-sample frame length (remotexpc's `AudioStreamCapture.format.audioSpecificConfig`).
|
|
78
|
+
*/
|
|
79
|
+
audioSpecificConfig?: Buffer;
|
|
80
|
+
}
|
|
81
|
+
export interface MjpegOptions extends JpegStreamOptions, InputOptions {
|
|
82
|
+
codec: 'mjpeg';
|
|
83
|
+
}
|
|
84
|
+
export type TranscoderOptions = H264Options | MjpegOptions;
|
|
85
|
+
/**
|
|
86
|
+
* One H.264 unit; same shape as coresim's `VideoAccessUnit` (video track only). Annex-B, 4-byte
|
|
87
|
+
* start codes; a keyframe carries SPS/PPS inline, so it is self-decodable alone.
|
|
88
|
+
*/
|
|
89
|
+
export interface VideoAccessUnit {
|
|
90
|
+
track: 'video' | 'audio';
|
|
91
|
+
data: Buffer;
|
|
92
|
+
/** Always true for audio: every ADTS unit decodes on its own. */
|
|
93
|
+
isKeyFrame: boolean;
|
|
94
|
+
/** Monotonically increasing per track, starting at 0. */
|
|
95
|
+
sequence: number;
|
|
96
|
+
/** Microseconds since the stream started, on one clock shared by both tracks. */
|
|
97
|
+
timestampMicros: number;
|
|
98
|
+
}
|
|
99
|
+
/** One standalone JPEG; same shape as coresim's `JpegFrame`. */
|
|
100
|
+
export interface JpegFrame {
|
|
101
|
+
data: Buffer;
|
|
102
|
+
sequence: number;
|
|
103
|
+
timestampMicros: number;
|
|
104
|
+
}
|
|
105
|
+
/** Raw unit from the native side, before the JS layer assigns `sequence`. */
|
|
106
|
+
export interface NativeUnit {
|
|
107
|
+
data: Buffer;
|
|
108
|
+
isKeyFrame: boolean;
|
|
109
|
+
timestampMicros: number;
|
|
110
|
+
/** Set on audio units. */
|
|
111
|
+
audio?: boolean;
|
|
112
|
+
}
|
|
113
|
+
export interface NativeConfig {
|
|
114
|
+
outputCodec: 'h264' | 'mjpeg';
|
|
115
|
+
fps: number;
|
|
116
|
+
bitrate: number;
|
|
117
|
+
quality: number;
|
|
118
|
+
scale: number;
|
|
119
|
+
audio: boolean;
|
|
120
|
+
audioSpecificConfig: Buffer;
|
|
121
|
+
audioBitratePerChannel: number;
|
|
122
|
+
/** 0 keeps the whole picture. */
|
|
123
|
+
cropWidth: number;
|
|
124
|
+
cropHeight: number;
|
|
125
|
+
rotation: Rotation;
|
|
126
|
+
}
|
|
127
|
+
export interface NativeTranscoderHandle {
|
|
128
|
+
/** Each chunk is one bare HEVC NAL unit (no start code). */
|
|
129
|
+
push(chunks: Buffer[], timestampMicros: number, isKeyFrame: boolean): void;
|
|
130
|
+
/** One AAC-ELD access unit (only with `audio`). */
|
|
131
|
+
pushAudio(data: Buffer, timestampMicros: number): void;
|
|
132
|
+
/** Forces the next H.264 output to be an IDR frame (used to resync after an overflow). */
|
|
133
|
+
requestKeyFrame(): void;
|
|
134
|
+
/** Changes the clockwise rotation that makes the picture upright. */
|
|
135
|
+
setRotation(degrees: Rotation): void;
|
|
136
|
+
/** Flushes pending frames through `onUnit`, releases resources, then resolves (no callbacks after). */
|
|
137
|
+
close(): Promise<void>;
|
|
138
|
+
}
|
|
139
|
+
export interface NativeModule {
|
|
140
|
+
createTranscoder(config: NativeConfig, onUnit: (unit: NativeUnit) => void, onError: (err: Error) => void): NativeTranscoderHandle;
|
|
141
|
+
/** Encoders/decoders compiled into this build, e.g. `['h264_videotoolbox', 'mjpeg']`. */
|
|
142
|
+
capabilities(): {
|
|
143
|
+
decoders: string[];
|
|
144
|
+
encoders: string[];
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"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"}
|
package/lib/src/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,67 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appium/media-proxy",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Cross-platform native media transcoder that unifies device screen streams (HEVC) into the common H.264 / MJPEG format",
|
|
5
|
+
"homepage": "https://appium.io",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/appium/appium-ios/issues"
|
|
8
|
+
},
|
|
9
|
+
"license": "Apache-2.0",
|
|
10
|
+
"author": "Appium Contributors",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/appium/appium-ios.git",
|
|
14
|
+
"directory": "packages/media-proxy"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"src",
|
|
18
|
+
"lib/src",
|
|
19
|
+
"prebuilds",
|
|
20
|
+
"scripts/install.mjs",
|
|
21
|
+
"binding.gyp",
|
|
22
|
+
"package.json",
|
|
23
|
+
"README.md",
|
|
24
|
+
"!.DS_Store",
|
|
25
|
+
"CHANGELOG.md",
|
|
26
|
+
"LICENSE",
|
|
27
|
+
"THIRD_PARTY_NOTICES.md"
|
|
28
|
+
],
|
|
29
|
+
"type": "module",
|
|
30
|
+
"main": "lib/src/index.js",
|
|
31
|
+
"types": "lib/src/index.d.ts",
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"clean": "rm -rf build node_modules lib",
|
|
37
|
+
"build": "tsc -b",
|
|
38
|
+
"build:addon": "node-gyp rebuild && node scripts/ci/bundle-libs.mjs --dest build/Release",
|
|
39
|
+
"build:ffmpeg": "bash scripts/ci/build-ffmpeg.sh",
|
|
40
|
+
"build:prebuilds": "node scripts/ci/build-prebuilds.mjs",
|
|
41
|
+
"lint:cpp": "npm run build:compile-commands && bash scripts/ci/lint-cpp.sh",
|
|
42
|
+
"format:cpp": "clang-format -i src/native/*.cc src/native/*.h",
|
|
43
|
+
"format:cpp:check": "clang-format --dry-run --Werror src/native/*.cc src/native/*.h",
|
|
44
|
+
"build:compile-commands": "node-gyp configure -- -f compile_commands_json",
|
|
45
|
+
"install": "node scripts/install.mjs",
|
|
46
|
+
"prepare": "npm run build",
|
|
47
|
+
"test": "npm run test:unit && npm run test:integration",
|
|
48
|
+
"test:unit": "node --enable-source-maps --test --test-force-exit --test-timeout=15000 \"lib/test/unit/**/*.spec.js\"",
|
|
49
|
+
"test:integration": "node --enable-source-maps --test --test-force-exit --test-concurrency=1 --test-timeout=120000 \"lib/test/integration/**/*.spec.js\""
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@appium/support": "^8.0.0-beta.7",
|
|
53
|
+
"node-addon-api": "^8.5.0",
|
|
54
|
+
"node-gyp-build": "^4.8.4"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@appium/tsconfig": "^2.0.0-beta.2",
|
|
58
|
+
"@types/node": "^26.6.5",
|
|
59
|
+
"prebuildify": "^6.0.1"
|
|
60
|
+
},
|
|
61
|
+
"engines": {
|
|
62
|
+
"node": "^22.22.2 || ^24.15.0 || >=26.0.0",
|
|
63
|
+
"npm": ">=10"
|
|
64
|
+
},
|
|
65
|
+
"gypfile": true,
|
|
66
|
+
"gitHead": "b9d54ac492505e661ec367ca948b43d3a7c87f64"
|
|
67
|
+
}
|
|
Binary file
|