@basmilius/apple-airplay 0.0.85 → 0.0.86
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/dist/dataStreamMessages.d.ts +1 -0
- package/dist/index.js +4 -0
- package/package.json +3 -3
|
@@ -4,6 +4,7 @@ export declare function protocol(type: Proto.ProtocolMessage_Type, errorCode?: P
|
|
|
4
4
|
export declare function clientUpdatesConfig(artworkUpdates?: boolean, nowPlayingUpdates?: boolean, volumeUpdates?: boolean, keyboardUpdates?: boolean, outputDeviceUpdates?: boolean): Proto.ProtocolMessage;
|
|
5
5
|
export declare function configureConnection(groupId: string): Proto.ProtocolMessage;
|
|
6
6
|
export declare function deviceInfo(pairingId: Buffer): Proto.ProtocolMessage;
|
|
7
|
+
export declare function getState(): Proto.ProtocolMessage;
|
|
7
8
|
export declare function getVolume(outputDeviceUID: string): Proto.ProtocolMessage;
|
|
8
9
|
export declare function playbackQueueRequest(location: number, length: number, includeMetadata?: boolean, includeLanguageOptions?: boolean): Proto.ProtocolMessage;
|
|
9
10
|
export declare function sendButtonEvent(usagePage: number, usage: number, buttonDown: boolean): Proto.ProtocolMessage;
|
package/dist/index.js
CHANGED
|
@@ -21,6 +21,7 @@ __export(exports_dataStreamMessages, {
|
|
|
21
21
|
protocol: () => protocol,
|
|
22
22
|
playbackQueueRequest: () => playbackQueueRequest,
|
|
23
23
|
getVolume: () => getVolume,
|
|
24
|
+
getState: () => getState,
|
|
24
25
|
getExtension: () => getExtension,
|
|
25
26
|
deviceInfo: () => deviceInfo,
|
|
26
27
|
configureConnection: () => configureConnection,
|
|
@@ -1427,6 +1428,9 @@ function deviceInfo(pairingId) {
|
|
|
1427
1428
|
setExtension(protocolMessage, deviceInfoMessage, message);
|
|
1428
1429
|
return protocolMessage;
|
|
1429
1430
|
}
|
|
1431
|
+
function getState() {
|
|
1432
|
+
return protocol(3 /* GET_STATE_MESSAGE */);
|
|
1433
|
+
}
|
|
1430
1434
|
function getVolume(outputDeviceUID) {
|
|
1431
1435
|
const protocolMessage = protocol(49 /* GET_VOLUME_MESSAGE */);
|
|
1432
1436
|
const message = create(GetVolumeMessageSchema, {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basmilius/apple-airplay",
|
|
3
3
|
"description": "Implementation of Apple's AirPlay2 in Node.js.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.86",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@basmilius/apple-common": "0.0.
|
|
45
|
-
"@basmilius/apple-encoding": "0.0.
|
|
44
|
+
"@basmilius/apple-common": "0.0.86",
|
|
45
|
+
"@basmilius/apple-encoding": "0.0.86",
|
|
46
46
|
"@bufbuild/protobuf": "^2.10.2"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|