@corewire/airplay 0.0.0 → 1.0.0-next.1
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 +30 -1
- package/dist/chunk-w6R9maHv.mjs +18 -0
- package/dist/describe-CAEDGJLu.mjs +12457 -0
- package/dist/identifiers-CsXXbYkW.mjs +67 -0
- package/dist/index-BlcOBfSz.d.mts +87 -0
- package/dist/index-YqIv0vCR.d.mts +135 -0
- package/dist/index.d.mts +105 -0
- package/dist/index.mjs +3637 -0
- package/dist/mrp.d.mts +687 -0
- package/dist/mrp.mjs +2102 -0
- package/dist/raop.d.mts +344 -0
- package/dist/raop.mjs +1248 -0
- package/dist/rtsp-BWFaYW5H.mjs +374 -0
- package/dist/rtsp.d.mts +2 -0
- package/dist/rtsp.mjs +3 -0
- package/dist/session-oDF9A9as.d.mts +13915 -0
- package/package.json +72 -18
package/README.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
1
|
# @corewire/airplay
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
AirPlay 2 for Node.js: a session with pairing and encryption, remote control over MRP (`/mrp`), URL playback, audio streaming, and the timing servers. RAOP (AirPlay 1 audio) lives on `/raop` and the RTSP codec on `/rtsp`.
|
|
4
|
+
|
|
5
|
+
Part of [CoreWire](https://corewire.dev). To control a device without handling sessions yourself, use `@corewire/devices`.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm install @corewire/airplay
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Requires Node.js 18.17 or later (20.3 or later on the 20 line).
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { connect, discover, toTarget } from '@corewire/airplay';
|
|
19
|
+
import { MediaRemote } from '@corewire/airplay/mrp';
|
|
20
|
+
|
|
21
|
+
const [receiver] = await discover();
|
|
22
|
+
const session = await connect(toTarget(receiver));
|
|
23
|
+
const remote = await MediaRemote.open(session);
|
|
24
|
+
|
|
25
|
+
await remote.hid.select();
|
|
26
|
+
session.on('closed', reason => console.log('closed', reason));
|
|
27
|
+
await session.close();
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## License
|
|
31
|
+
|
|
32
|
+
MIT
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) {
|
|
6
|
+
__defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
if (!no_symbols) {
|
|
12
|
+
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
13
|
+
}
|
|
14
|
+
return target;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { __exportAll as t };
|