@basmilius/apple-airplay 0.10.1 → 0.11.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/dist/index.d.mts +763 -311
- package/dist/index.mjs +966 -366
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -128,6 +128,101 @@ declare class ControlStream extends RtspClient {
|
|
|
128
128
|
*/
|
|
129
129
|
setVolume(volume: number): Promise<Response>;
|
|
130
130
|
/**
|
|
131
|
+
* Sets the audio routing mode on the receiver.
|
|
132
|
+
*
|
|
133
|
+
* @param mode - The audio mode to set (e.g. 'default', 'moviePlayback', 'spoken').
|
|
134
|
+
* @returns The response.
|
|
135
|
+
*/
|
|
136
|
+
setAudioMode(mode: string): Promise<Response>;
|
|
137
|
+
/**
|
|
138
|
+
* Stops the current URL playback session.
|
|
139
|
+
*
|
|
140
|
+
* @returns The response.
|
|
141
|
+
*/
|
|
142
|
+
stop(): Promise<Response>;
|
|
143
|
+
/**
|
|
144
|
+
* Seeks to a specific position during URL playback.
|
|
145
|
+
*
|
|
146
|
+
* @param position - The position in seconds to seek to.
|
|
147
|
+
* @returns The response.
|
|
148
|
+
*/
|
|
149
|
+
scrub(position: number): Promise<Response>;
|
|
150
|
+
/**
|
|
151
|
+
* Sends an RTSP FLUSHBUFFERED request to flush buffered audio.
|
|
152
|
+
*
|
|
153
|
+
* More targeted than FLUSH — specifically for buffered audio sessions.
|
|
154
|
+
* Supports range-based flushing via flushFromSeq/TS and flushUntilSeq/TS headers.
|
|
155
|
+
*
|
|
156
|
+
* @param uri - RTSP resource URI (typically `/{sessionId}`).
|
|
157
|
+
* @param headers - Additional headers (e.g. flush range parameters).
|
|
158
|
+
* @returns The RTSP response.
|
|
159
|
+
*/
|
|
160
|
+
flushBuffered(uri: string, headers?: Record<string, string>): Promise<Response>;
|
|
161
|
+
/**
|
|
162
|
+
* Gets a property from the AirPlay receiver.
|
|
163
|
+
*
|
|
164
|
+
* Known property keys (from AirPlayReceiver framework):
|
|
165
|
+
*
|
|
166
|
+
* **Volume:**
|
|
167
|
+
* - `Volume` — current volume
|
|
168
|
+
* - `VolumeDB` — volume in decibels
|
|
169
|
+
* - `VolumeLinear` — linear volume (0.0-1.0)
|
|
170
|
+
* - `SoftwareVolume` — software volume level
|
|
171
|
+
* - `VolumeControlType` / `VolumeControlTypeEx` — volume control capabilities
|
|
172
|
+
* - `IsMuted` / `MuteForStream` — mute state
|
|
173
|
+
*
|
|
174
|
+
* **Playback:**
|
|
175
|
+
* - `ReceiverDeviceIsPlaying` — whether the device is currently playing
|
|
176
|
+
* - `IsPlayingBufferedAudio` — whether buffered audio is active
|
|
177
|
+
* - `DenyInterruptions` — interruption prevention state
|
|
178
|
+
*
|
|
179
|
+
* **Audio:**
|
|
180
|
+
* - `AudioFormat` — current audio format
|
|
181
|
+
* - `AudioLatencyMs` / `AudioLatencyMax` / `AudioLatencyMin` — latency info
|
|
182
|
+
* - `RedundantAudio` — redundancy status
|
|
183
|
+
* - `SpatialAudio` / `SpatialAudioActive` / `SpatialAudioAllowed` — spatial audio state
|
|
184
|
+
*
|
|
185
|
+
* **Device:**
|
|
186
|
+
* - `DeviceID` / `DeviceName` — device identity
|
|
187
|
+
* - `IdleTimeout` — idle timeout value
|
|
188
|
+
* - `SecurityMode` — security mode
|
|
189
|
+
* - `ReceiverMode` — current receiver mode
|
|
190
|
+
*
|
|
191
|
+
* **Display:**
|
|
192
|
+
* - `DisplayHDRMode` — HDR mode
|
|
193
|
+
* - `DisplaySize` / `DisplaySizeMax` — display dimensions
|
|
194
|
+
* - `DisplayUUID` — display identifier
|
|
195
|
+
*
|
|
196
|
+
* **Cluster/Multi-room:**
|
|
197
|
+
* - `ClusterUUID` / `ClusterType` / `ClusterSize` — cluster info
|
|
198
|
+
* - `IsClusterLeader` / `ClusterLeaderUUID` — cluster leadership
|
|
199
|
+
* - `TightSyncUUID` / `IsTightSyncGroupLeader` — tight sync state
|
|
200
|
+
* - `GroupContainsDiscoverableLeader` / `GroupContextID` — group info
|
|
201
|
+
*
|
|
202
|
+
* **Network:**
|
|
203
|
+
* - `UsePTPClock` — PTP clock usage
|
|
204
|
+
* - `NetworkClock` — network clock type
|
|
205
|
+
*
|
|
206
|
+
* **DACP-style (via setproperty? URL):**
|
|
207
|
+
* - `dmcp.device-volume` — DACP device volume
|
|
208
|
+
* - `dmcp.device-prevent-playback` — DACP prevent playback
|
|
209
|
+
*
|
|
210
|
+
* @param property - The property key to query.
|
|
211
|
+
* @returns The response (body contains the property value, typically as plist).
|
|
212
|
+
*/
|
|
213
|
+
getProperty(property: string): Promise<Response>;
|
|
214
|
+
/**
|
|
215
|
+
* Sets a property on the AirPlay receiver.
|
|
216
|
+
*
|
|
217
|
+
* See {@link getProperty} for the full list of known property keys.
|
|
218
|
+
* For set operations, the property string contains key=value pairs.
|
|
219
|
+
*
|
|
220
|
+
* @param property - The property key=value to set (e.g. `Volume=0.5`).
|
|
221
|
+
* @param body - Optional request body for complex property values (plist).
|
|
222
|
+
* @returns The response.
|
|
223
|
+
*/
|
|
224
|
+
setProperty(property: string, body?: Buffer | string | Record<string, unknown>): Promise<Response>;
|
|
225
|
+
/**
|
|
131
226
|
* Sends an RTSP TEARDOWN request to end a stream session.
|
|
132
227
|
*
|
|
133
228
|
* @param path - RTSP resource URI (typically `/{sessionId}`).
|
|
@@ -224,116 +319,6 @@ declare class Verify {
|
|
|
224
319
|
start(credentials: AccessoryCredentials): Promise<AccessoryKeys>;
|
|
225
320
|
}
|
|
226
321
|
//#endregion
|
|
227
|
-
//#region src/audioStream.d.ts
|
|
228
|
-
/**
|
|
229
|
-
* Mutable state tracked during an active audio stream.
|
|
230
|
-
*
|
|
231
|
-
* Created by {@link AudioStream.prepare} and updated with each sent packet.
|
|
232
|
-
* Used by both single-device streaming and multi-room multiplexing.
|
|
233
|
-
*/
|
|
234
|
-
type AudioStreamContext = {
|
|
235
|
-
/** Negotiated sample rate in Hz. */sampleRate: number; /** Number of audio channels. */
|
|
236
|
-
channels: number; /** Bytes per sample per channel. */
|
|
237
|
-
bytesPerChannel: number; /** Total bytes per frame (channels * bytesPerChannel). */
|
|
238
|
-
frameSize: number; /** Total bytes per packet (framesPerPacket * frameSize). */
|
|
239
|
-
packetSize: number; /** Current RTP sequence number (wraps at 0xFFFF). */
|
|
240
|
-
rtpSeq: number; /** Current RTP timestamp (cumulative frame count). */
|
|
241
|
-
rtpTime: number; /** Head timestamp for the current packet. */
|
|
242
|
-
headTs: number; /** Latency in frames for silence padding at stream end. */
|
|
243
|
-
latency: number; /** Number of padding (silence) frames sent so far. */
|
|
244
|
-
paddingSent: number; /** Total number of audio frames sent. */
|
|
245
|
-
totalFrames: number;
|
|
246
|
-
};
|
|
247
|
-
/**
|
|
248
|
-
* Real-time RTP audio streaming over UDP with ChaCha20-Poly1305 encryption.
|
|
249
|
-
*
|
|
250
|
-
* Handles the full audio streaming lifecycle:
|
|
251
|
-
* 1. {@link setup} - RTSP SETUP to negotiate format and get port assignments
|
|
252
|
-
* 2. {@link prepare} - Connect UDP socket, initialize RTP state, FLUSH, start RTCP sync
|
|
253
|
-
* 3. {@link sendFrameData} / {@link stream} - Send PCM frames as encrypted RTP packets
|
|
254
|
-
* 4. {@link finish} / TEARDOWN - Send silence padding and tear down the stream
|
|
255
|
-
*
|
|
256
|
-
* Features:
|
|
257
|
-
* - ChaCha20-Poly1305 audio encryption with per-packet nonces
|
|
258
|
-
* - RTCP sync packets for receiver clock synchronization
|
|
259
|
-
* - Packet retransmission backlog for handling receiver NACK requests
|
|
260
|
-
* - RFC 2198 audio redundancy support (configurable via REDUNDANCY_COUNT)
|
|
261
|
-
* - Wall-clock-based timing to maintain real-time audio pace
|
|
262
|
-
*/
|
|
263
|
-
declare class AudioStream {
|
|
264
|
-
#private;
|
|
265
|
-
/**
|
|
266
|
-
* @param protocol - The AirPlay protocol instance providing control stream and context.
|
|
267
|
-
*/
|
|
268
|
-
constructor(protocol: Protocol);
|
|
269
|
-
/**
|
|
270
|
-
* Performs RTSP SETUP to negotiate audio format and get port assignments.
|
|
271
|
-
*
|
|
272
|
-
* Generates a random shared encryption key and SSRC, creates a local UDP
|
|
273
|
-
* socket for RTCP control, then sends the SETUP request with format
|
|
274
|
-
* preferences (PCM 44100/24/stereo by default). On success, stores the
|
|
275
|
-
* assigned data and control ports and sends RECORD.
|
|
276
|
-
*
|
|
277
|
-
* @returns The assigned data and control port numbers.
|
|
278
|
-
* @throws SetupError if the SETUP request fails or returns no stream info.
|
|
279
|
-
*/
|
|
280
|
-
setup(): Promise<{
|
|
281
|
-
dataPort: number;
|
|
282
|
-
controlPort: number;
|
|
283
|
-
}>;
|
|
284
|
-
/**
|
|
285
|
-
* Prepare the audio stream for sending. Connects the UDP data socket,
|
|
286
|
-
* initializes stream context, sends FLUSH, and starts RTCP sync.
|
|
287
|
-
*/
|
|
288
|
-
prepare(remoteAddress: string): Promise<AudioStreamContext>;
|
|
289
|
-
/**
|
|
290
|
-
* Sends pre-read frame data as an RTP packet.
|
|
291
|
-
*
|
|
292
|
-
* Used by {@link AudioMultiplexer} for multi-room streaming where frames
|
|
293
|
-
* are read once from the source and sent to multiple streams.
|
|
294
|
-
*
|
|
295
|
-
* @param frames - Raw PCM frame data to send.
|
|
296
|
-
* @param firstPacket - Whether this is the first packet (sets RTP marker bit).
|
|
297
|
-
* @returns Number of frames sent.
|
|
298
|
-
* @throws SetupError if the stream has not been prepared.
|
|
299
|
-
*/
|
|
300
|
-
sendFrameData(frames: Buffer, firstPacket: boolean): Promise<number>;
|
|
301
|
-
/**
|
|
302
|
-
* Finishes the audio stream by sending silence padding and tearing down.
|
|
303
|
-
*
|
|
304
|
-
* Sends silence frames equal to the latency amount so the receiver has
|
|
305
|
-
* enough buffered audio for a clean ending, then stops sync and sends
|
|
306
|
-
* RTSP TEARDOWN.
|
|
307
|
-
*/
|
|
308
|
-
finish(): Promise<void>;
|
|
309
|
-
/**
|
|
310
|
-
* Streams audio from a source to the receiver.
|
|
311
|
-
*
|
|
312
|
-
* Convenience method that orchestrates the full streaming lifecycle:
|
|
313
|
-
* prepare, send packets with real-time pacing and catch-up logic,
|
|
314
|
-
* pad with silence, TEARDOWN, and close. Automatically compensates
|
|
315
|
-
* when falling behind schedule by sending extra packets.
|
|
316
|
-
*
|
|
317
|
-
* @param source - Audio source to read PCM frames from.
|
|
318
|
-
* @param remoteAddress - IP address of the AirPlay receiver for UDP connection.
|
|
319
|
-
*/
|
|
320
|
-
stream(source: AudioSource, remoteAddress: string): Promise<void>;
|
|
321
|
-
/**
|
|
322
|
-
* Retrieves a previously sent packet from the retransmission backlog.
|
|
323
|
-
*
|
|
324
|
-
* @param seqno - RTP sequence number to look up.
|
|
325
|
-
* @returns The complete RTP packet, or undefined if no longer in the backlog.
|
|
326
|
-
*/
|
|
327
|
-
getPacket(seqno: number): Buffer | undefined;
|
|
328
|
-
/**
|
|
329
|
-
* Closes the audio stream, releasing all UDP sockets and clearing the backlog.
|
|
330
|
-
*
|
|
331
|
-
* Stops sync packet transmission, closes control and data sockets, and
|
|
332
|
-
* clears the retransmission backlog. Safe to call multiple times.
|
|
333
|
-
*/
|
|
334
|
-
close(): void;
|
|
335
|
-
}
|
|
336
|
-
//#endregion
|
|
337
322
|
//#region ../../node_modules/.bun/@bufbuild+protobuf@2.11.0/node_modules/@bufbuild/protobuf/dist/esm/json-value.d.ts
|
|
338
323
|
/**
|
|
339
324
|
* Represents any possible JSON value:
|
|
@@ -3129,6 +3114,43 @@ type UnknownField = {
|
|
|
3129
3114
|
readonly data: Uint8Array;
|
|
3130
3115
|
};
|
|
3131
3116
|
//#endregion
|
|
3117
|
+
//#region src/baseStream.d.ts
|
|
3118
|
+
/**
|
|
3119
|
+
* Default events emitted by all AirPlay streams.
|
|
3120
|
+
*/
|
|
3121
|
+
type DefaultEventMap = {
|
|
3122
|
+
close: [];
|
|
3123
|
+
connect: [];
|
|
3124
|
+
error: [Error];
|
|
3125
|
+
timeout: [];
|
|
3126
|
+
};
|
|
3127
|
+
/**
|
|
3128
|
+
* Base class for AirPlay encrypted TCP streams (DataStream, EventStream).
|
|
3129
|
+
*
|
|
3130
|
+
* Extends {@link EncryptionAwareConnection} with AirPlay-specific ChaCha20
|
|
3131
|
+
* encryption that uses length-prefixed frames and a 12-byte nonce with a
|
|
3132
|
+
* 4-byte zero prefix followed by an 8-byte little-endian counter.
|
|
3133
|
+
*/
|
|
3134
|
+
declare class BaseStream<TEventMap extends EventMap = {}> extends EncryptionAwareConnection<DefaultEventMap & TEventMap> {
|
|
3135
|
+
/**
|
|
3136
|
+
* Decrypts incoming data using AirPlay's ChaCha20 frame format.
|
|
3137
|
+
*
|
|
3138
|
+
* @param data - Raw encrypted data from the TCP socket.
|
|
3139
|
+
* @returns Decrypted plaintext buffer, or `false` if the data is incomplete (partial frame).
|
|
3140
|
+
*/
|
|
3141
|
+
decrypt(data: Buffer): Buffer | false;
|
|
3142
|
+
/**
|
|
3143
|
+
* Encrypts outgoing data using AirPlay's ChaCha20 frame format.
|
|
3144
|
+
*
|
|
3145
|
+
* Splits data into 1024-byte frames, each prefixed with a 2-byte LE length
|
|
3146
|
+
* and suffixed with a 16-byte Poly1305 auth tag.
|
|
3147
|
+
*
|
|
3148
|
+
* @param data - Plaintext data to encrypt.
|
|
3149
|
+
* @returns Encrypted buffer ready for transmission.
|
|
3150
|
+
*/
|
|
3151
|
+
encrypt(data: Buffer): Buffer;
|
|
3152
|
+
}
|
|
3153
|
+
//#endregion
|
|
3132
3154
|
//#region src/proto/ProtocolMessage_pb.d.ts
|
|
3133
3155
|
/**
|
|
3134
3156
|
* Describes the file ProtocolMessage.proto.
|
|
@@ -3695,13 +3717,17 @@ declare enum ProtocolMessage_Type {
|
|
|
3695
3717
|
*/
|
|
3696
3718
|
VOLUME_CONTROL_CAPABILITIES_DID_CHANGE_MESSAGE = 64,
|
|
3697
3719
|
/**
|
|
3698
|
-
*
|
|
3720
|
+
* Apple: SyncOutputDevicesMessage
|
|
3721
|
+
*
|
|
3722
|
+
* @generated from enum value: SYNC_OUTPUT_DEVICES_MESSAGE = 65;
|
|
3699
3723
|
*/
|
|
3700
|
-
|
|
3724
|
+
SYNC_OUTPUT_DEVICES_MESSAGE = 65,
|
|
3701
3725
|
/**
|
|
3702
|
-
*
|
|
3726
|
+
* Apple: RemoveSyncedOutputDevicesMessage
|
|
3727
|
+
*
|
|
3728
|
+
* @generated from enum value: REMOVE_SYNCED_OUTPUT_DEVICES_MESSAGE = 66;
|
|
3703
3729
|
*/
|
|
3704
|
-
|
|
3730
|
+
REMOVE_SYNCED_OUTPUT_DEVICES_MESSAGE = 66,
|
|
3705
3731
|
/**
|
|
3706
3732
|
* @generated from enum value: REMOTE_TEXT_INPUT_MESSAGE = 67;
|
|
3707
3733
|
*/
|
|
@@ -3711,11 +3737,11 @@ declare enum ProtocolMessage_Type {
|
|
|
3711
3737
|
*/
|
|
3712
3738
|
GET_REMOTE_TEXT_INPUT_SESSION_MESSAGE = 68,
|
|
3713
3739
|
/**
|
|
3714
|
-
*
|
|
3740
|
+
* Apple: RemoveFromParentGroupMessage
|
|
3715
3741
|
*
|
|
3716
|
-
* @generated from enum value:
|
|
3742
|
+
* @generated from enum value: REMOVE_FROM_PARENT_GROUP_MESSAGE = 69;
|
|
3717
3743
|
*/
|
|
3718
|
-
|
|
3744
|
+
REMOVE_FROM_PARENT_GROUP_MESSAGE = 69,
|
|
3719
3745
|
/**
|
|
3720
3746
|
* @generated from enum value: PLAYBACK_SESSION_REQUEST_MESSAGE = 70;
|
|
3721
3747
|
*/
|
|
@@ -3749,17 +3775,27 @@ declare enum ProtocolMessage_Type {
|
|
|
3749
3775
|
*/
|
|
3750
3776
|
UPDATE_ACTIVE_SYSTEM_ENDPOINT_MESSAGE = 77,
|
|
3751
3777
|
/**
|
|
3778
|
+
* Apple: 0x4E
|
|
3779
|
+
*
|
|
3780
|
+
* @generated from enum value: PLAYBACK_SESSION_MIGRATE_POST_MESSAGE = 78;
|
|
3781
|
+
*/
|
|
3782
|
+
PLAYBACK_SESSION_MIGRATE_POST_MESSAGE = 78,
|
|
3783
|
+
/**
|
|
3752
3784
|
* @generated from enum value: SET_DISCOVERY_MODE_MESSAGE = 101;
|
|
3753
3785
|
*/
|
|
3754
3786
|
SET_DISCOVERY_MODE_MESSAGE = 101,
|
|
3755
3787
|
/**
|
|
3756
|
-
*
|
|
3788
|
+
* Apple: UpdateSyncedEndpointsMessage
|
|
3789
|
+
*
|
|
3790
|
+
* @generated from enum value: UPDATE_SYNCED_ENDPOINTS_MESSAGE = 102;
|
|
3757
3791
|
*/
|
|
3758
|
-
|
|
3792
|
+
UPDATE_SYNCED_ENDPOINTS_MESSAGE = 102,
|
|
3759
3793
|
/**
|
|
3760
|
-
*
|
|
3794
|
+
* Apple: RemoveSyncedEndpointsMessage
|
|
3795
|
+
*
|
|
3796
|
+
* @generated from enum value: REMOVE_SYNCED_ENDPOINTS_MESSAGE = 103;
|
|
3761
3797
|
*/
|
|
3762
|
-
|
|
3798
|
+
REMOVE_SYNCED_ENDPOINTS_MESSAGE = 103,
|
|
3763
3799
|
/**
|
|
3764
3800
|
* @generated from enum value: PLAYER_CLIENT_PROPERTIES_MESSAGE = 104;
|
|
3765
3801
|
*/
|
|
@@ -3777,93 +3813,117 @@ declare enum ProtocolMessage_Type {
|
|
|
3777
3813
|
*/
|
|
3778
3814
|
AUDIO_FADE_RESPONSE_MESSAGE = 107,
|
|
3779
3815
|
/**
|
|
3780
|
-
*
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
/**
|
|
3784
|
-
* @generated from enum value: SET_CONVERSATION_DETECTION_ENABLED_MESSAGE = 109;
|
|
3785
|
-
*/
|
|
3786
|
-
SET_CONVERSATION_DETECTION_ENABLED_MESSAGE = 109,
|
|
3787
|
-
/**
|
|
3788
|
-
* @generated from enum value: PLAYER_CLIENT_PARTICIPANTS_UPDATE_MESSAGE = 110;
|
|
3816
|
+
* Apple: DiscoveryUpdateEndpointsMessage — NIEUW
|
|
3817
|
+
*
|
|
3818
|
+
* @generated from enum value: DISCOVERY_UPDATE_ENDPOINTS_MESSAGE = 108;
|
|
3789
3819
|
*/
|
|
3790
|
-
|
|
3820
|
+
DISCOVERY_UPDATE_ENDPOINTS_MESSAGE = 108,
|
|
3791
3821
|
/**
|
|
3792
|
-
*
|
|
3822
|
+
* Apple: DiscoveryUpdateOutputDevicesMessage — NIEUW
|
|
3823
|
+
*
|
|
3824
|
+
* @generated from enum value: DISCOVERY_UPDATE_OUTPUT_DEVICES_MESSAGE = 109;
|
|
3793
3825
|
*/
|
|
3794
|
-
|
|
3826
|
+
DISCOVERY_UPDATE_OUTPUT_DEVICES_MESSAGE = 109,
|
|
3795
3827
|
/**
|
|
3796
|
-
*
|
|
3828
|
+
* Apple: SetListeningModeMessage — NIEUW
|
|
3829
|
+
*
|
|
3830
|
+
* @generated from enum value: SET_LISTENING_MODE_MESSAGE = 110;
|
|
3797
3831
|
*/
|
|
3798
|
-
|
|
3832
|
+
SET_LISTENING_MODE_MESSAGE = 110,
|
|
3799
3833
|
/**
|
|
3800
|
-
* @generated from enum value:
|
|
3834
|
+
* @generated from enum value: CONFIGURE_CONNECTION_MESSAGE = 120;
|
|
3801
3835
|
*/
|
|
3802
|
-
|
|
3836
|
+
CONFIGURE_CONNECTION_MESSAGE = 120,
|
|
3803
3837
|
/**
|
|
3804
|
-
*
|
|
3838
|
+
* Apple: 0x79
|
|
3839
|
+
*
|
|
3840
|
+
* @generated from enum value: CREATE_HOSTED_ENDPOINT_REQUEST_MESSAGE = 121;
|
|
3805
3841
|
*/
|
|
3806
|
-
CREATE_HOSTED_ENDPOINT_REQUEST_MESSAGE =
|
|
3842
|
+
CREATE_HOSTED_ENDPOINT_REQUEST_MESSAGE = 121,
|
|
3807
3843
|
/**
|
|
3808
|
-
*
|
|
3844
|
+
* Apple: 0x7A
|
|
3845
|
+
*
|
|
3846
|
+
* @generated from enum value: CREATE_HOSTED_ENDPOINT_RESPONSE_MESSAGE = 122;
|
|
3809
3847
|
*/
|
|
3810
|
-
CREATE_HOSTED_ENDPOINT_RESPONSE_MESSAGE =
|
|
3848
|
+
CREATE_HOSTED_ENDPOINT_RESPONSE_MESSAGE = 122,
|
|
3811
3849
|
/**
|
|
3812
|
-
*
|
|
3850
|
+
* Apple: AdjustVolumeMessage — NIEUW
|
|
3851
|
+
*
|
|
3852
|
+
* @generated from enum value: ADJUST_VOLUME_MESSAGE = 125;
|
|
3813
3853
|
*/
|
|
3814
|
-
|
|
3854
|
+
ADJUST_VOLUME_MESSAGE = 125,
|
|
3815
3855
|
/**
|
|
3816
|
-
* @generated from enum value:
|
|
3856
|
+
* @generated from enum value: GET_VOLUME_MUTED_MESSAGE = 126;
|
|
3817
3857
|
*/
|
|
3818
|
-
|
|
3858
|
+
GET_VOLUME_MUTED_MESSAGE = 126,
|
|
3819
3859
|
/**
|
|
3820
|
-
* @generated from enum value:
|
|
3860
|
+
* @generated from enum value: GET_VOLUME_MUTED_RESULT_MESSAGE = 127;
|
|
3821
3861
|
*/
|
|
3822
|
-
|
|
3862
|
+
GET_VOLUME_MUTED_RESULT_MESSAGE = 127,
|
|
3823
3863
|
/**
|
|
3824
|
-
*
|
|
3864
|
+
* Apple: MuteVolumeMessage
|
|
3865
|
+
*
|
|
3866
|
+
* @generated from enum value: SET_VOLUME_MUTED_MESSAGE = 128;
|
|
3825
3867
|
*/
|
|
3826
|
-
|
|
3868
|
+
SET_VOLUME_MUTED_MESSAGE = 128,
|
|
3827
3869
|
/**
|
|
3828
|
-
* @generated from enum value:
|
|
3870
|
+
* @generated from enum value: VOLUME_MUTED_DID_CHANGE_MESSAGE = 129;
|
|
3829
3871
|
*/
|
|
3830
|
-
|
|
3872
|
+
VOLUME_MUTED_DID_CHANGE_MESSAGE = 129,
|
|
3831
3873
|
/**
|
|
3832
|
-
*
|
|
3874
|
+
* Apple: 0x82
|
|
3875
|
+
*
|
|
3876
|
+
* @generated from enum value: SET_CONVERSATION_DETECTION_ENABLED_MESSAGE = 130;
|
|
3833
3877
|
*/
|
|
3834
|
-
|
|
3878
|
+
SET_CONVERSATION_DETECTION_ENABLED_MESSAGE = 130,
|
|
3835
3879
|
/**
|
|
3836
|
-
*
|
|
3880
|
+
* Apple: 0x83
|
|
3881
|
+
*
|
|
3882
|
+
* @generated from enum value: PLAYER_CLIENT_PARTICIPANTS_UPDATE_MESSAGE = 131;
|
|
3837
3883
|
*/
|
|
3838
|
-
|
|
3884
|
+
PLAYER_CLIENT_PARTICIPANTS_UPDATE_MESSAGE = 131,
|
|
3839
3885
|
/**
|
|
3840
|
-
*
|
|
3886
|
+
* Apple: 0x84
|
|
3887
|
+
*
|
|
3888
|
+
* @generated from enum value: REQUEST_GROUP_SESSION_MESSAGE = 132;
|
|
3841
3889
|
*/
|
|
3842
|
-
|
|
3890
|
+
REQUEST_GROUP_SESSION_MESSAGE = 132,
|
|
3843
3891
|
/**
|
|
3844
|
-
*
|
|
3892
|
+
* Apple: ConfigureConnectionServiceMessage — NIEUW
|
|
3893
|
+
*
|
|
3894
|
+
* @generated from enum value: CONFIGURE_CONNECTION_SERVICE_MESSAGE = 133;
|
|
3845
3895
|
*/
|
|
3846
|
-
|
|
3896
|
+
CONFIGURE_CONNECTION_SERVICE_MESSAGE = 133,
|
|
3847
3897
|
/**
|
|
3848
|
-
*
|
|
3898
|
+
* Apple: 0x86
|
|
3899
|
+
*
|
|
3900
|
+
* @generated from enum value: CREATE_APPLICATION_CONNECTION_MESSAGE = 134;
|
|
3849
3901
|
*/
|
|
3850
|
-
|
|
3902
|
+
CREATE_APPLICATION_CONNECTION_MESSAGE = 134,
|
|
3851
3903
|
/**
|
|
3852
|
-
*
|
|
3904
|
+
* Apple: 0x87 — NIEUW
|
|
3905
|
+
*
|
|
3906
|
+
* @generated from enum value: APPLICATION_CONNECTION_PROTOCOL_MESSAGE = 135;
|
|
3853
3907
|
*/
|
|
3854
|
-
|
|
3908
|
+
APPLICATION_CONNECTION_PROTOCOL_MESSAGE = 135,
|
|
3855
3909
|
/**
|
|
3856
|
-
*
|
|
3910
|
+
* Apple: 0x88 — NIEUW
|
|
3911
|
+
*
|
|
3912
|
+
* @generated from enum value: INVALIDATE_APPLICATION_CONNECTION_MESSAGE = 136;
|
|
3857
3913
|
*/
|
|
3858
|
-
|
|
3914
|
+
INVALIDATE_APPLICATION_CONNECTION_MESSAGE = 136,
|
|
3859
3915
|
/**
|
|
3860
|
-
*
|
|
3916
|
+
* Apple: 0x89
|
|
3917
|
+
*
|
|
3918
|
+
* @generated from enum value: MICROPHONE_CONNECTION_REQUEST_MESSAGE = 137;
|
|
3861
3919
|
*/
|
|
3862
|
-
|
|
3920
|
+
MICROPHONE_CONNECTION_REQUEST_MESSAGE = 137,
|
|
3863
3921
|
/**
|
|
3864
|
-
*
|
|
3922
|
+
* Apple: 0x8A
|
|
3923
|
+
*
|
|
3924
|
+
* @generated from enum value: MICROPHONE_CONNECTION_RESPONSE_MESSAGE = 138;
|
|
3865
3925
|
*/
|
|
3866
|
-
|
|
3926
|
+
MICROPHONE_CONNECTION_RESPONSE_MESSAGE = 138
|
|
3867
3927
|
}
|
|
3868
3928
|
/**
|
|
3869
3929
|
* Describes the enum ProtocolMessage.Type.
|
|
@@ -4941,8 +5001,10 @@ type DeviceInfoMessage = Message<"DeviceInfoMessage"> & {
|
|
|
4941
5001
|
*/
|
|
4942
5002
|
lastKnownClusterType: number;
|
|
4943
5003
|
/**
|
|
4944
|
-
* repeated
|
|
4945
|
-
|
|
5004
|
+
* @generated from field: repeated DeviceInfoMessage allClusteredDevices = 48;
|
|
5005
|
+
*/
|
|
5006
|
+
allClusteredDevices: DeviceInfoMessage[];
|
|
5007
|
+
/**
|
|
4946
5008
|
* @generated from field: optional bool supportsOutputContextSync = 49;
|
|
4947
5009
|
*/
|
|
4948
5010
|
supportsOutputContextSync: boolean;
|
|
@@ -5108,9 +5170,9 @@ type NowPlayingClient = Message<"NowPlayingClient"> & {
|
|
|
5108
5170
|
*/
|
|
5109
5171
|
displayName: string;
|
|
5110
5172
|
/**
|
|
5111
|
-
* @generated from field: repeated string
|
|
5173
|
+
* @generated from field: repeated string extendedBundleIdentifierHierarchys = 8;
|
|
5112
5174
|
*/
|
|
5113
|
-
|
|
5175
|
+
extendedBundleIdentifierHierarchys: string[];
|
|
5114
5176
|
/**
|
|
5115
5177
|
* @generated from field: optional string iconURL = 9;
|
|
5116
5178
|
*/
|
|
@@ -5144,10 +5206,6 @@ type NowPlayingPlayer = Message<"NowPlayingPlayer"> & {
|
|
|
5144
5206
|
*/
|
|
5145
5207
|
displayName: string;
|
|
5146
5208
|
/**
|
|
5147
|
-
* @generated from field: optional bool isDefaultPlayer = 3;
|
|
5148
|
-
*/
|
|
5149
|
-
isDefaultPlayer: boolean;
|
|
5150
|
-
/**
|
|
5151
5209
|
* @generated from field: optional int32 audioSessionType = 4;
|
|
5152
5210
|
*/
|
|
5153
5211
|
audioSessionType: number;
|
|
@@ -5736,10 +5794,6 @@ type CommandInfo = Message<"CommandInfo"> & {
|
|
|
5736
5794
|
*/
|
|
5737
5795
|
supportedInsertionPositions: number[];
|
|
5738
5796
|
/**
|
|
5739
|
-
* @generated from field: optional bool supportsSharedQueue = 20;
|
|
5740
|
-
*/
|
|
5741
|
-
supportsSharedQueue: boolean;
|
|
5742
|
-
/**
|
|
5743
5797
|
* @generated from field: optional int32 upNextItemCount = 21;
|
|
5744
5798
|
*/
|
|
5745
5799
|
upNextItemCount: number;
|
|
@@ -5764,9 +5818,9 @@ type CommandInfo = Message<"CommandInfo"> & {
|
|
|
5764
5818
|
*/
|
|
5765
5819
|
currentQueueEndAction: QueueEndAction_Enum;
|
|
5766
5820
|
/**
|
|
5767
|
-
* @generated from field: repeated QueueEndAction.Enum
|
|
5821
|
+
* @generated from field: repeated QueueEndAction.Enum supportedQueueEndActions = 27;
|
|
5768
5822
|
*/
|
|
5769
|
-
|
|
5823
|
+
supportedQueueEndActions: QueueEndAction_Enum[];
|
|
5770
5824
|
/**
|
|
5771
5825
|
* @generated from field: optional DisableReason.Enum disableReason = 28;
|
|
5772
5826
|
*/
|
|
@@ -5804,10 +5858,6 @@ type CommandInfo = Message<"CommandInfo"> & {
|
|
|
5804
5858
|
*/
|
|
5805
5859
|
sleepTimerTime: bigint;
|
|
5806
5860
|
/**
|
|
5807
|
-
* @generated from field: optional uint32 sleepTimerStopMode = 37;
|
|
5808
|
-
*/
|
|
5809
|
-
sleepTimerStopMode: number;
|
|
5810
|
-
/**
|
|
5811
5861
|
* @generated from field: optional double sleepTimerFireDate = 38;
|
|
5812
5862
|
*/
|
|
5813
5863
|
sleepTimerFireDate: number;
|
|
@@ -5816,10 +5866,6 @@ type CommandInfo = Message<"CommandInfo"> & {
|
|
|
5816
5866
|
*/
|
|
5817
5867
|
dialogOptions: Uint8Array;
|
|
5818
5868
|
/**
|
|
5819
|
-
* @generated from field: optional string lastSectionContentItemID = 40;
|
|
5820
|
-
*/
|
|
5821
|
-
lastSectionContentItemID: string;
|
|
5822
|
-
/**
|
|
5823
5869
|
* @generated from field: optional bool supportsReferencePosition = 41;
|
|
5824
5870
|
*/
|
|
5825
5871
|
supportsReferencePosition: boolean;
|
|
@@ -6317,9 +6363,9 @@ declare const file_CommandOptions: GenFile;
|
|
|
6317
6363
|
*/
|
|
6318
6364
|
type CommandOptions = Message<"CommandOptions"> & {
|
|
6319
6365
|
/**
|
|
6320
|
-
* @generated from field: optional string
|
|
6366
|
+
* @generated from field: optional string sourceID = 2;
|
|
6321
6367
|
*/
|
|
6322
|
-
|
|
6368
|
+
sourceID: string;
|
|
6323
6369
|
/**
|
|
6324
6370
|
* @generated from field: optional string mediaType = 3;
|
|
6325
6371
|
*/
|
|
@@ -6660,6 +6706,10 @@ type CommandOptions = Message<"CommandOptions"> & {
|
|
|
6660
6706
|
* @generated from field: optional bool enhanceDialogueActive = 92;
|
|
6661
6707
|
*/
|
|
6662
6708
|
enhanceDialogueActive: boolean;
|
|
6709
|
+
/**
|
|
6710
|
+
* @generated from field: optional double userActionTimestamp = 95;
|
|
6711
|
+
*/
|
|
6712
|
+
userActionTimestamp: number;
|
|
6663
6713
|
};
|
|
6664
6714
|
/**
|
|
6665
6715
|
* Describes the message CommandOptions.
|
|
@@ -7379,13 +7429,13 @@ type ContentItemMetadata = Message<"ContentItemMetadata"> & {
|
|
|
7379
7429
|
*/
|
|
7380
7430
|
serviceIdentifier: string;
|
|
7381
7431
|
/**
|
|
7382
|
-
* @generated from field: optional int32
|
|
7432
|
+
* @generated from field: optional int32 artworkDataWidthDeprecated = 77;
|
|
7383
7433
|
*/
|
|
7384
|
-
|
|
7434
|
+
artworkDataWidthDeprecated: number;
|
|
7385
7435
|
/**
|
|
7386
|
-
* @generated from field: optional int32
|
|
7436
|
+
* @generated from field: optional int32 artworkDataHeightDeprecated = 78;
|
|
7387
7437
|
*/
|
|
7388
|
-
|
|
7438
|
+
artworkDataHeightDeprecated: number;
|
|
7389
7439
|
/**
|
|
7390
7440
|
* @generated from field: optional bytes currentPlaybackDateData = 79;
|
|
7391
7441
|
*/
|
|
@@ -7526,6 +7576,10 @@ type ContentItemMetadata = Message<"ContentItemMetadata"> & {
|
|
|
7526
7576
|
* @generated from field: optional bytes transitionInfoData = 113;
|
|
7527
7577
|
*/
|
|
7528
7578
|
transitionInfoData: Uint8Array;
|
|
7579
|
+
/**
|
|
7580
|
+
* @generated from field: repeated bytes entityPaths = 114;
|
|
7581
|
+
*/
|
|
7582
|
+
entityPaths: Uint8Array[];
|
|
7529
7583
|
};
|
|
7530
7584
|
/**
|
|
7531
7585
|
* Describes the message ContentItemMetadata.
|
|
@@ -7955,27 +8009,181 @@ declare const CryptoPairingMessageSchema: GenMessage<CryptoPairingMessage>;
|
|
|
7955
8009
|
*/
|
|
7956
8010
|
declare const cryptoPairingMessage: GenExtension$1<ProtocolMessage, CryptoPairingMessage>;
|
|
7957
8011
|
//#endregion
|
|
7958
|
-
//#region src/proto/
|
|
8012
|
+
//#region src/proto/DelegationServiceMessage_pb.d.ts
|
|
7959
8013
|
/**
|
|
7960
|
-
* Describes the file
|
|
8014
|
+
* Describes the file DelegationServiceMessage.proto.
|
|
7961
8015
|
*/
|
|
7962
|
-
declare const
|
|
8016
|
+
declare const file_DelegationServiceMessage: GenFile;
|
|
7963
8017
|
/**
|
|
7964
|
-
* @generated from message
|
|
8018
|
+
* @generated from message DelegationServiceMessage
|
|
7965
8019
|
*/
|
|
7966
|
-
type
|
|
8020
|
+
type DelegationServiceMessage = Message<"DelegationServiceMessage"> & {
|
|
7967
8021
|
/**
|
|
7968
|
-
* @generated from field: optional
|
|
8022
|
+
* @generated from field: optional StartDelegationRequest startDelegationRequest = 1;
|
|
7969
8023
|
*/
|
|
7970
|
-
|
|
8024
|
+
startDelegationRequest?: StartDelegationRequest;
|
|
7971
8025
|
/**
|
|
7972
|
-
* @generated from field: optional
|
|
8026
|
+
* @generated from field: optional StartDelegationResponse startDelegationResponse = 2;
|
|
7973
8027
|
*/
|
|
7974
|
-
|
|
8028
|
+
startDelegationResponse?: StartDelegationResponse;
|
|
7975
8029
|
/**
|
|
7976
|
-
* @generated from field: optional
|
|
8030
|
+
* @generated from field: optional FinishDelegationRequest finishDelegationRequest = 3;
|
|
7977
8031
|
*/
|
|
7978
|
-
|
|
8032
|
+
finishDelegationRequest?: FinishDelegationRequest;
|
|
8033
|
+
/**
|
|
8034
|
+
* @generated from field: optional FinishDelegationResponse finishDelegationResponse = 4;
|
|
8035
|
+
*/
|
|
8036
|
+
finishDelegationResponse?: FinishDelegationResponse;
|
|
8037
|
+
};
|
|
8038
|
+
/**
|
|
8039
|
+
* Describes the message DelegationServiceMessage.
|
|
8040
|
+
* Use `create(DelegationServiceMessageSchema)` to create a new message.
|
|
8041
|
+
*/
|
|
8042
|
+
declare const DelegationServiceMessageSchema: GenMessage<DelegationServiceMessage>;
|
|
8043
|
+
/**
|
|
8044
|
+
* @generated from message StartDelegationRequest
|
|
8045
|
+
*/
|
|
8046
|
+
type StartDelegationRequest = Message<"StartDelegationRequest"> & {
|
|
8047
|
+
/**
|
|
8048
|
+
* @generated from field: optional uint32 serviceID = 1;
|
|
8049
|
+
*/
|
|
8050
|
+
serviceID: number;
|
|
8051
|
+
/**
|
|
8052
|
+
* @generated from field: optional string delegationUUID = 2;
|
|
8053
|
+
*/
|
|
8054
|
+
delegationUUID: string;
|
|
8055
|
+
};
|
|
8056
|
+
/**
|
|
8057
|
+
* Describes the message StartDelegationRequest.
|
|
8058
|
+
* Use `create(StartDelegationRequestSchema)` to create a new message.
|
|
8059
|
+
*/
|
|
8060
|
+
declare const StartDelegationRequestSchema: GenMessage<StartDelegationRequest>;
|
|
8061
|
+
/**
|
|
8062
|
+
* @generated from message StartDelegationResponse
|
|
8063
|
+
*/
|
|
8064
|
+
type StartDelegationResponse = Message<"StartDelegationResponse"> & {
|
|
8065
|
+
/**
|
|
8066
|
+
* @generated from field: optional uint32 serviceID = 1;
|
|
8067
|
+
*/
|
|
8068
|
+
serviceID: number;
|
|
8069
|
+
/**
|
|
8070
|
+
* @generated from field: optional bytes responseData = 2;
|
|
8071
|
+
*/
|
|
8072
|
+
responseData: Uint8Array;
|
|
8073
|
+
};
|
|
8074
|
+
/**
|
|
8075
|
+
* Describes the message StartDelegationResponse.
|
|
8076
|
+
* Use `create(StartDelegationResponseSchema)` to create a new message.
|
|
8077
|
+
*/
|
|
8078
|
+
declare const StartDelegationResponseSchema: GenMessage<StartDelegationResponse>;
|
|
8079
|
+
/**
|
|
8080
|
+
* @generated from message FinishDelegationRequest
|
|
8081
|
+
*/
|
|
8082
|
+
type FinishDelegationRequest = Message<"FinishDelegationRequest"> & {
|
|
8083
|
+
/**
|
|
8084
|
+
* @generated from field: optional uint32 serviceID = 1;
|
|
8085
|
+
*/
|
|
8086
|
+
serviceID: number;
|
|
8087
|
+
/**
|
|
8088
|
+
* @generated from field: optional bytes requestData = 2;
|
|
8089
|
+
*/
|
|
8090
|
+
requestData: Uint8Array;
|
|
8091
|
+
};
|
|
8092
|
+
/**
|
|
8093
|
+
* Describes the message FinishDelegationRequest.
|
|
8094
|
+
* Use `create(FinishDelegationRequestSchema)` to create a new message.
|
|
8095
|
+
*/
|
|
8096
|
+
declare const FinishDelegationRequestSchema: GenMessage<FinishDelegationRequest>;
|
|
8097
|
+
/**
|
|
8098
|
+
* @generated from message FinishDelegationResponse
|
|
8099
|
+
*/
|
|
8100
|
+
type FinishDelegationResponse = Message<"FinishDelegationResponse"> & {
|
|
8101
|
+
/**
|
|
8102
|
+
* @generated from field: optional uint32 serviceID = 1;
|
|
8103
|
+
*/
|
|
8104
|
+
serviceID: number;
|
|
8105
|
+
/**
|
|
8106
|
+
* @generated from field: optional bool success = 2;
|
|
8107
|
+
*/
|
|
8108
|
+
success: boolean;
|
|
8109
|
+
};
|
|
8110
|
+
/**
|
|
8111
|
+
* Describes the message FinishDelegationResponse.
|
|
8112
|
+
* Use `create(FinishDelegationResponseSchema)` to create a new message.
|
|
8113
|
+
*/
|
|
8114
|
+
declare const FinishDelegationResponseSchema: GenMessage<FinishDelegationResponse>;
|
|
8115
|
+
/**
|
|
8116
|
+
* @generated from message PlayerInfoContextToken
|
|
8117
|
+
*/
|
|
8118
|
+
type PlayerInfoContextToken = Message<"PlayerInfoContextToken"> & {
|
|
8119
|
+
/**
|
|
8120
|
+
* @generated from field: optional string tokenData = 1;
|
|
8121
|
+
*/
|
|
8122
|
+
tokenData: string;
|
|
8123
|
+
};
|
|
8124
|
+
/**
|
|
8125
|
+
* Describes the message PlayerInfoContextToken.
|
|
8126
|
+
* Use `create(PlayerInfoContextTokenSchema)` to create a new message.
|
|
8127
|
+
*/
|
|
8128
|
+
declare const PlayerInfoContextTokenSchema: GenMessage<PlayerInfoContextToken>;
|
|
8129
|
+
/**
|
|
8130
|
+
* @generated from message PlayerDelegateInfoToken
|
|
8131
|
+
*/
|
|
8132
|
+
type PlayerDelegateInfoToken = Message<"PlayerDelegateInfoToken"> & {
|
|
8133
|
+
/**
|
|
8134
|
+
* @generated from field: optional string tokenData = 1;
|
|
8135
|
+
*/
|
|
8136
|
+
tokenData: string;
|
|
8137
|
+
/**
|
|
8138
|
+
* @generated from field: optional uint32 serviceID = 2;
|
|
8139
|
+
*/
|
|
8140
|
+
serviceID: number;
|
|
8141
|
+
};
|
|
8142
|
+
/**
|
|
8143
|
+
* Describes the message PlayerDelegateInfoToken.
|
|
8144
|
+
* Use `create(PlayerDelegateInfoTokenSchema)` to create a new message.
|
|
8145
|
+
*/
|
|
8146
|
+
declare const PlayerDelegateInfoTokenSchema: GenMessage<PlayerDelegateInfoToken>;
|
|
8147
|
+
/**
|
|
8148
|
+
* @generated from message PlayerInfoContextRequestToken
|
|
8149
|
+
*/
|
|
8150
|
+
type PlayerInfoContextRequestToken = Message<"PlayerInfoContextRequestToken"> & {
|
|
8151
|
+
/**
|
|
8152
|
+
* @generated from field: optional string tokenData = 1;
|
|
8153
|
+
*/
|
|
8154
|
+
tokenData: string;
|
|
8155
|
+
/**
|
|
8156
|
+
* @generated from field: optional uint32 serviceID = 2;
|
|
8157
|
+
*/
|
|
8158
|
+
serviceID: number;
|
|
8159
|
+
};
|
|
8160
|
+
/**
|
|
8161
|
+
* Describes the message PlayerInfoContextRequestToken.
|
|
8162
|
+
* Use `create(PlayerInfoContextRequestTokenSchema)` to create a new message.
|
|
8163
|
+
*/
|
|
8164
|
+
declare const PlayerInfoContextRequestTokenSchema: GenMessage<PlayerInfoContextRequestToken>;
|
|
8165
|
+
//#endregion
|
|
8166
|
+
//#region src/proto/Destination_pb.d.ts
|
|
8167
|
+
/**
|
|
8168
|
+
* Describes the file Destination.proto.
|
|
8169
|
+
*/
|
|
8170
|
+
declare const file_Destination: GenFile;
|
|
8171
|
+
/**
|
|
8172
|
+
* @generated from message Destination
|
|
8173
|
+
*/
|
|
8174
|
+
type Destination = Message<"Destination"> & {
|
|
8175
|
+
/**
|
|
8176
|
+
* @generated from field: optional PlayerPath playerPath = 1;
|
|
8177
|
+
*/
|
|
8178
|
+
playerPath?: PlayerPath;
|
|
8179
|
+
/**
|
|
8180
|
+
* @generated from field: optional string outputContextUID = 2;
|
|
8181
|
+
*/
|
|
8182
|
+
outputContextUID: string;
|
|
8183
|
+
/**
|
|
8184
|
+
* @generated from field: optional string outputDeviceUID = 3;
|
|
8185
|
+
*/
|
|
8186
|
+
outputDeviceUID: string;
|
|
7979
8187
|
/**
|
|
7980
8188
|
* @generated from field: optional string endpoint = 4;
|
|
7981
8189
|
*/
|
|
@@ -9579,33 +9787,33 @@ declare const ModifyOutputContextRequestType_EnumSchema: GenEnum<ModifyOutputCon
|
|
|
9579
9787
|
*/
|
|
9580
9788
|
type ModifyOutputContextRequestMessage = Message<"ModifyOutputContextRequestMessage"> & {
|
|
9581
9789
|
/**
|
|
9582
|
-
* @generated from field: optional ModifyOutputContextRequestType.Enum
|
|
9790
|
+
* @generated from field: optional ModifyOutputContextRequestType.Enum outputContextType = 1;
|
|
9583
9791
|
*/
|
|
9584
|
-
|
|
9792
|
+
outputContextType: ModifyOutputContextRequestType_Enum;
|
|
9585
9793
|
/**
|
|
9586
|
-
* @generated from field: repeated string
|
|
9794
|
+
* @generated from field: repeated string addingOutputDeviceUIDs = 2;
|
|
9587
9795
|
*/
|
|
9588
|
-
|
|
9796
|
+
addingOutputDeviceUIDs: string[];
|
|
9589
9797
|
/**
|
|
9590
|
-
* @generated from field: repeated string
|
|
9798
|
+
* @generated from field: repeated string removingOutputDeviceUIDs = 3;
|
|
9591
9799
|
*/
|
|
9592
|
-
|
|
9800
|
+
removingOutputDeviceUIDs: string[];
|
|
9593
9801
|
/**
|
|
9594
|
-
* @generated from field: repeated string
|
|
9802
|
+
* @generated from field: repeated string settingOutputDeviceUIDs = 4;
|
|
9595
9803
|
*/
|
|
9596
|
-
|
|
9804
|
+
settingOutputDeviceUIDs: string[];
|
|
9597
9805
|
/**
|
|
9598
|
-
* @generated from field: repeated string
|
|
9806
|
+
* @generated from field: repeated string clusterAwareAddingOutputDeviceUIDs = 5;
|
|
9599
9807
|
*/
|
|
9600
|
-
|
|
9808
|
+
clusterAwareAddingOutputDeviceUIDs: string[];
|
|
9601
9809
|
/**
|
|
9602
|
-
* @generated from field: repeated string
|
|
9810
|
+
* @generated from field: repeated string clusterAwareRemovingOutputDeviceUIDs = 6;
|
|
9603
9811
|
*/
|
|
9604
|
-
|
|
9812
|
+
clusterAwareRemovingOutputDeviceUIDs: string[];
|
|
9605
9813
|
/**
|
|
9606
|
-
* @generated from field: repeated string
|
|
9814
|
+
* @generated from field: repeated string clusterAwareSettingOutputDeviceUIDs = 7;
|
|
9607
9815
|
*/
|
|
9608
|
-
|
|
9816
|
+
clusterAwareSettingOutputDeviceUIDs: string[];
|
|
9609
9817
|
};
|
|
9610
9818
|
/**
|
|
9611
9819
|
* Describes the message ModifyOutputContextRequestMessage.
|
|
@@ -9938,9 +10146,9 @@ type PlaybackQueue = Message<"PlaybackQueue"> & {
|
|
|
9938
10146
|
*/
|
|
9939
10147
|
context?: PlaybackQueueContext;
|
|
9940
10148
|
/**
|
|
9941
|
-
* @generated from field: optional string
|
|
10149
|
+
* @generated from field: optional string requestID = 4;
|
|
9942
10150
|
*/
|
|
9943
|
-
|
|
10151
|
+
requestID: string;
|
|
9944
10152
|
/**
|
|
9945
10153
|
* @generated from field: optional PlayerPath resolvedPlayerPath = 5;
|
|
9946
10154
|
*/
|
|
@@ -13474,44 +13682,7 @@ declare const WakeDeviceMessageSchema: GenMessage<WakeDeviceMessage>;
|
|
|
13474
13682
|
*/
|
|
13475
13683
|
declare const wakeDeviceMessage: GenExtension$1<ProtocolMessage, WakeDeviceMessage>;
|
|
13476
13684
|
declare namespace index_d_exports {
|
|
13477
|
-
export { AVAirPlaySecuritySettings, AVAirPlaySecuritySettingsSchema, AVEndpointDescriptor, AVEndpointDescriptorSchema, AVOutputDeviceDescriptor, AVOutputDeviceDescriptorSchema, AVOutputDeviceSourceInfo, AVOutputDeviceSourceInfoSchema, AVRouteQuery, AVRouteQuerySchema, ActionType, ActionTypeSchema, ActionType_Enum, ActionType_EnumSchema, ActiveFormatJustification, ActiveFormatJustificationSchema, ActiveFormatJustification_Enum, ActiveFormatJustification_EnumSchema, AdjustVolumeMessage, AdjustVolumeMessageSchema, AdjustVolumeMessage_Adjustment, AdjustVolumeMessage_AdjustmentSchema, AirPlayLeaderInfo, AirPlayLeaderInfoSchema, AlbumTraits, AlbumTraitsSchema, AlbumTraits_Enum, AlbumTraits_EnumSchema, AnimatedArtwork, AnimatedArtworkSchema, ApplicationConnectionContext, ApplicationConnectionContextSchema, ApplicationConnectionMessage, ApplicationConnectionMessageHeader, ApplicationConnectionMessageHeaderSchema, ApplicationConnectionMessageSchema, ApplicationConnectionProtocolMessage, ApplicationConnectionProtocolMessageSchema, ApplicationConnectionRequestInfo, ApplicationConnectionRequestInfoSchema, AudioBuffer, AudioBufferSchema, AudioDataBlock, AudioDataBlockSchema, AudioFadeMessage, AudioFadeMessageSchema, AudioFadeResponseMessage, AudioFadeResponseMessageSchema, AudioFormat, AudioFormatSchema, AudioFormatSettings, AudioFormatSettingsSchema, AudioRoute, AudioRouteSchema, AudioRouteType, AudioRouteTypeSchema, AudioRouteType_Enum, AudioRouteType_EnumSchema, AudioStreamPacketDescription, AudioStreamPacketDescriptionSchema, AudioTier, AudioTierSchema, AudioTier_Enum, AudioTier_EnumSchema, AudioTime, AudioTimeSchema, AutocapitalizationType, AutocapitalizationTypeSchema, AutocapitalizationType_Enum, AutocapitalizationType_EnumSchema, ChangeType, ChangeTypeSchema, ChangeType_Enum, ChangeType_EnumSchema, ClientUpdatesConfigMessage, ClientUpdatesConfigMessageSchema, ClusterType, ClusterTypeSchema, ClusterType_Enum, ClusterType_EnumSchema, Color, ColorSchema, Command, CommandInfo, CommandInfoSchema, CommandOptions, CommandOptionsSchema, CommandSchema, ConfigureConnectionMessage, ConfigureConnectionMessageSchema, ContentItem, ContentItemMetadata, ContentItemMetadataSchema, ContentItemMetadata_MediaSubType, ContentItemMetadata_MediaSubTypeSchema, ContentItemMetadata_MediaType, ContentItemMetadata_MediaTypeSchema, ContentItemSchema, CreateApplicationConnectionMessage, CreateApplicationConnectionMessageSchema, CreateHostedEndpointRequest, CreateHostedEndpointRequestSchema, CreateHostedEndpointResponse, CreateHostedEndpointResponseSchema, CryptoPairingMessage, CryptoPairingMessageSchema, DataArtwork, DataArtworkSchema, Destination, DestinationSchema, DeviceClass, DeviceClassSchema, DeviceClass_Enum, DeviceClass_EnumSchema, DeviceInfoMessage, DeviceInfoMessageSchema, DeviceSubType, DeviceSubTypeSchema, DeviceSubType_Enum, DeviceSubType_EnumSchema, DeviceType, DeviceTypeSchema, DeviceType_Enum, DeviceType_EnumSchema, Diagnostic, DiagnosticSchema, Dictionary, DictionarySchema, DisableReason, DisableReasonSchema, DisableReason_Enum, DisableReason_EnumSchema, DiscoverySessionConfiguration, DiscoverySessionConfigurationSchema, EndpointOptions, EndpointOptionsSchema, EndpointOptions_Enum, EndpointOptions_EnumSchema, Error$1 as Error, ErrorCode, ErrorCodeSchema, ErrorCode_Enum, ErrorCode_EnumSchema, ErrorSchema, FormatTier, FormatTierSchema, FormatTier_Enum, FormatTier_EnumSchema, GameControllerAcceleration, GameControllerAccelerationSchema, GameControllerButtons, GameControllerButtonsSchema, GameControllerDigitizer, GameControllerDigitizerSchema, GameControllerMessage, GameControllerMessageSchema, GameControllerMotion, GameControllerMotionSchema, GameControllerProperties, GameControllerPropertiesMessage, GameControllerPropertiesMessageSchema, GameControllerPropertiesSchema, GenericMessage, GenericMessageSchema, GetKeyboardSessionMessage, GetKeyboardSessionMessageSchema, GetRemoteTextInputSessionMessage, GetRemoteTextInputSessionMessageSchema, GetStateMessage, GetStateMessageSchema, GetVolumeControlCapabilitiesMessage, GetVolumeControlCapabilitiesMessageSchema, GetVolumeControlCapabilitiesResultMessage, GetVolumeControlCapabilitiesResultMessageSchema, GetVolumeMessage, GetVolumeMessageSchema, GetVolumeMutedMessage, GetVolumeMutedMessageSchema, GetVolumeMutedResultMessage, GetVolumeMutedResultMessageSchema, GetVolumeResultMessage, GetVolumeResultMessageSchema, GroupSessionErrorReplyMessage, GroupSessionErrorReplyMessageSchema, GroupSessionFastSyncMessage, GroupSessionFastSyncMessageSchema, GroupSessionIdentityShareMessage, GroupSessionIdentityShareMessageSchema, GroupSessionIdentityShareReplyMessage, GroupSessionIdentityShareReplyMessageSchema, GroupSessionInfo, GroupSessionInfoSchema, GroupSessionJoinRequest, GroupSessionJoinRequestSchema, GroupSessionJoinResponse, GroupSessionJoinResponseMessage, GroupSessionJoinResponseMessageSchema, GroupSessionJoinResponseSchema, GroupSessionLeaderDiscoveryMessage, GroupSessionLeaderDiscoveryMessageSchema, GroupSessionMemberSyncMessage, GroupSessionMemberSyncMessageSchema, GroupSessionParticipant, GroupSessionParticipantSchema, GroupSessionRemoveRequest, GroupSessionRemoveRequestSchema, GroupSessionRouteType, GroupSessionRouteTypeSchema, GroupSessionRouteType_Enum, GroupSessionRouteType_EnumSchema, GroupSessionToken, GroupSessionTokenSchema, GroupTopologyModificationRequest, GroupTopologyModificationRequestSchema, GroupTopologyModificationRequest_Type, GroupTopologyModificationRequest_TypeSchema, HandlerReturnStatus, HandlerReturnStatusSchema, HandlerReturnStatus_Enum, HandlerReturnStatus_EnumSchema, KeyValuePair, KeyValuePairSchema, KeyboardMessage, KeyboardMessageSchema, KeyboardState, KeyboardStateSchema, KeyboardState_Enum, KeyboardState_EnumSchema, KeyboardType, KeyboardTypeSchema, KeyboardType_Enum, KeyboardType_EnumSchema, LanguageOption, LanguageOptionGroup, LanguageOptionGroupSchema, LanguageOptionSchema, LyricsEvent, LyricsEventSchema, LyricsItem, LyricsItemSchema, LyricsToken, LyricsTokenSchema, MicrophoneConnectionRequestMessage, MicrophoneConnectionRequestMessageSchema, MicrophoneConnectionResponseMessage, MicrophoneConnectionResponseMessageSchema, ModifyOutputContextRequestMessage, ModifyOutputContextRequestMessageSchema, ModifyOutputContextRequestType, ModifyOutputContextRequestTypeSchema, ModifyOutputContextRequestType_Enum, ModifyOutputContextRequestType_EnumSchema, MusicHandoffEvent, MusicHandoffEventSchema, MusicHandoffEvent_Type, MusicHandoffEvent_TypeSchema, MusicHandoffSession, MusicHandoffSessionSchema, NotificationMessage, NotificationMessageSchema, NowPlayingAudioFormatContentInfo, NowPlayingAudioFormatContentInfoSchema, NowPlayingClient, NowPlayingClientSchema, NowPlayingInfo, NowPlayingInfoSchema, NowPlayingPlayer, NowPlayingPlayerSchema, Origin, OriginClientPropertiesMessage, OriginClientPropertiesMessageSchema, OriginSchema, Origin_Type, Origin_TypeSchema, PlaybackQueue, PlaybackQueueCapabilities, PlaybackQueueCapabilitiesSchema, PlaybackQueueContext, PlaybackQueueContextSchema, PlaybackQueueParticipant, PlaybackQueueParticipantSchema, PlaybackQueueRequestMessage, PlaybackQueueRequestMessageSchema, PlaybackQueueSchema, PlaybackQueueType, PlaybackQueueTypeSchema, PlaybackQueueType_Enum, PlaybackQueueType_EnumSchema, PlaybackSession, PlaybackSessionMigrateBeginMessage, PlaybackSessionMigrateBeginMessageSchema, PlaybackSessionMigrateEndMessage, PlaybackSessionMigrateEndMessageSchema, PlaybackSessionMigratePostMessage, PlaybackSessionMigratePostMessageSchema, PlaybackSessionMigrateRequest, PlaybackSessionMigrateRequestEvent, PlaybackSessionMigrateRequestEventRole, PlaybackSessionMigrateRequestEventRoleSchema, PlaybackSessionMigrateRequestEventRole_Enum, PlaybackSessionMigrateRequestEventRole_EnumSchema, PlaybackSessionMigrateRequestEventSchema, PlaybackSessionMigrateRequestMessage, PlaybackSessionMigrateRequestMessageSchema, PlaybackSessionMigrateRequestSchema, PlaybackSessionMigrateResponseMessage, PlaybackSessionMigrateResponseMessageSchema, PlaybackSessionRequest, PlaybackSessionRequestMessage, PlaybackSessionRequestMessageSchema, PlaybackSessionRequestSchema, PlaybackSessionResponseMessage, PlaybackSessionResponseMessageSchema, PlaybackSessionSchema, PlaybackState, PlaybackStateSchema, PlaybackState_Enum, PlaybackState_EnumSchema, PlayerClientParticipantsUpdateMessage, PlayerClientParticipantsUpdateMessageSchema, PlayerClientPropertiesMessage, PlayerClientPropertiesMessageSchema, PlayerOptions, PlayerOptionsSchema, PlayerOptions_Enum, PlayerOptions_EnumSchema, PlayerPath, PlayerPathSchema, PlaylistTraits, PlaylistTraitsSchema, PlaylistTraits_Enum, PlaylistTraits_EnumSchema, PreferredEncoding, PreferredEncodingSchema, PreferredEncoding_Enum, PreferredEncoding_EnumSchema, PreloadedPlaybackSessionInfo, PreloadedPlaybackSessionInfoSchema, PresentRouteAuthorizationStatusMessage, PresentRouteAuthorizationStatusMessageSchema, PromptForRouteAuthorizationMessage, PromptForRouteAuthorizationMessageSchema, PromptForRouteAuthorizationResponseMessage, PromptForRouteAuthorizationResponseMessageSchema, ProtocolMessage, ProtocolMessageSchema, ProtocolMessage_Type, ProtocolMessage_TypeSchema, QueueEndAction, QueueEndActionSchema, QueueEndAction_Enum, QueueEndAction_EnumSchema, ReceivedCommand, ReceivedCommandAppOptions, ReceivedCommandAppOptionsSchema, ReceivedCommandSchema, RecipeType, RecipeTypeSchema, RecipeType_Enum, RecipeType_EnumSchema, RegisterForGameControllerEventsMessage, RegisterForGameControllerEventsMessageSchema, RegisterForGameControllerEventsMessage_InputModeFlags, RegisterForGameControllerEventsMessage_InputModeFlagsSchema, RegisterGameControllerMessage, RegisterGameControllerMessageSchema, RegisterGameControllerResponseMessage, RegisterGameControllerResponseMessageSchema, RegisterHIDDeviceMessage, RegisterHIDDeviceMessageSchema, RegisterHIDDeviceResultMessage, RegisterHIDDeviceResultMessageSchema, RegisterVoiceInputDeviceMessage, RegisterVoiceInputDeviceMessageSchema, RegisterVoiceInputDeviceResponseMessage, RegisterVoiceInputDeviceResponseMessageSchema, RemoteArtwork, RemoteArtworkSchema, RemoteTextInputMessage, RemoteTextInputMessageSchema, RemoveClientMessage, RemoveClientMessageSchema, RemoveEndpointsMessage, RemoveEndpointsMessageSchema, RemoveOutputDevicesMessage, RemoveOutputDevicesMessageSchema, RemovePlayerMessage, RemovePlayerMessageSchema, RepeatMode, RepeatModeSchema, RepeatMode_Enum, RepeatMode_EnumSchema, ReplaceIntent, ReplaceIntentSchema, ReplaceIntent_Enum, ReplaceIntent_EnumSchema, RequestDetails, RequestDetailsSchema, RequestGroupSessionMessage, RequestGroupSessionMessageSchema, ReturnKeyType, ReturnKeyTypeSchema, ReturnKeyType_Enum, ReturnKeyType_EnumSchema, SendButtonEventMessage, SendButtonEventMessageSchema, SendCommandMessage, SendCommandMessageSchema, SendCommandResult, SendCommandResultMessage, SendCommandResultMessageSchema, SendCommandResultSchema, SendCommandResultStatus, SendCommandResultStatusSchema, SendCommandResultType, SendCommandResultTypeSchema, SendCommandResultType_Enum, SendCommandResultType_EnumSchema, SendCommandStatusCode, SendCommandStatusCodeSchema, SendCommandStatusCode_Enum, SendCommandStatusCode_EnumSchema, SendError, SendErrorSchema, SendError_Enum, SendError_EnumSchema, SendHIDEventMessage, SendHIDEventMessageSchema, SendHIDReportMessage, SendHIDReportMessageSchema, SendLyricsEventMessage, SendLyricsEventMessageSchema, SendPackedVirtualTouchEventMessage, SendPackedVirtualTouchEventMessageSchema, SendPackedVirtualTouchEventMessage_Phase, SendPackedVirtualTouchEventMessage_PhaseSchema, SendVirtualTouchEventMessage, SendVirtualTouchEventMessageSchema, SendVoiceInputMessage, SendVoiceInputMessageSchema, SetArtworkMessage, SetArtworkMessageSchema, SetConnectionStateMessage, SetConnectionStateMessageSchema, SetConnectionStateMessage_ConnectionState, SetConnectionStateMessage_ConnectionStateSchema, SetConversationDetectionEnabledMessage, SetConversationDetectionEnabledMessageSchema, SetDefaultSupportedCommandsMessage, SetDefaultSupportedCommandsMessageSchema, SetDiscoveryModeMessage, SetDiscoveryModeMessageSchema, SetHiliteModeMessage, SetHiliteModeMessageSchema, SetListeningModeMessage, SetListeningModeMessageSchema, SetNowPlayingClientMessage, SetNowPlayingClientMessageSchema, SetNowPlayingPlayerMessage, SetNowPlayingPlayerMessageSchema, SetReadyStateMessage, SetReadyStateMessageSchema, SetRecordingStateMessage, SetRecordingStateMessageSchema, SetRecordingStateMessage_RecordingState, SetRecordingStateMessage_RecordingStateSchema, SetStateMessage, SetStateMessageSchema, SetVolumeMessage, SetVolumeMessageSchema, SetVolumeMutedMessage, SetVolumeMutedMessageSchema, ShuffleMode, ShuffleModeSchema, ShuffleMode_Enum, ShuffleMode_EnumSchema, SongTraits, SongTraitsSchema, SongTraits_Enum, SongTraits_EnumSchema, SupportedCommands, SupportedCommandsSchema, SystemPlaybackCustomData, SystemPlaybackCustomDataSchema, SystemPlaybackGenericTracklistQueue, SystemPlaybackGenericTracklistQueueSchema, SystemPlaybackQueue, SystemPlaybackQueueSchema, TextEditingAttributes, TextEditingAttributesSchema, TextInputMessage, TextInputMessageSchema, TextInputTraits, TextInputTraitsSchema, TransactionKey, TransactionKeySchema, TransactionMessage, TransactionMessageSchema, TransactionPacket, TransactionPacketSchema, TransactionPackets, TransactionPacketsSchema, TranscriptAlignment, TranscriptAlignmentSchema, UnregisterGameControllerMessage, UnregisterGameControllerMessageSchema, UpdateActiveSystemEndpointMessage, UpdateActiveSystemEndpointMessageSchema, UpdateActiveSystemEndpointRequest, UpdateActiveSystemEndpointRequestSchema, UpdateClientMessage, UpdateClientMessageSchema, UpdateContentItemArtworkMessage, UpdateContentItemArtworkMessageSchema, UpdateContentItemMessage, UpdateContentItemMessageSchema, UpdateEndPointsMessage, UpdateEndPointsMessageSchema, UpdateOutputDeviceMessage, UpdateOutputDeviceMessageSchema, UpdatePlayerMessage, UpdatePlayerMessageSchema, UserIdentity, UserIdentitySchema, UserIdentity_Type, UserIdentity_TypeSchema, Value, ValueSchema, VideoThumbnail, VideoThumbnailRequest, VideoThumbnailRequestSchema, VideoThumbnailSchema, VirtualTouchDeviceDescriptor, VirtualTouchDeviceDescriptorSchema, VirtualTouchEvent, VirtualTouchEventSchema, VirtualTouchPhase, VirtualTouchPhaseSchema, VirtualTouchPhase_Enum, VirtualTouchPhase_EnumSchema, VoiceInputDeviceDescriptor, VoiceInputDeviceDescriptorSchema, VolumeCapabilities, VolumeCapabilitiesSchema, VolumeCapabilities_Enum, VolumeCapabilities_EnumSchema, VolumeControlAvailabilityMessage, VolumeControlAvailabilityMessageSchema, VolumeControlCapabilitiesDidChangeMessage, VolumeControlCapabilitiesDidChangeMessageSchema, VolumeDidChangeMessage, VolumeDidChangeMessageSchema, VolumeMutedDidChangeMessage, VolumeMutedDidChangeMessageSchema, WakeDeviceMessage, WakeDeviceMessageSchema, adjustVolumeMessage, audioFadeMessage, audioFadeResponseMessage, clientUpdatesConfigMessage, configureConnectionMessage, createApplicationConnectionMessage, createHostedEndpointRequest, createHostedEndpointResponse, cryptoPairingMessage, deviceInfoMessage, file_AVAirPlaySecuritySettings, file_AVRouteQuery, file_AdjustVolumeMessage, file_AirPlayLeaderInfo, file_ApplicationConnection, file_ApplicationConnectionProtocolMessage, file_Artwork, file_AudioFadeMessage, file_AudioFadeResponseMessage, file_AudioFormatSettingsMessage, file_ClientUpdatesConfigMessage, file_Color, file_CommandInfo, file_CommandOptions, file_Common, file_ConfigureConnectionMessage, file_ContentItem, file_ContentItemMetadata, file_CreateApplicationConnectionMessage, file_CreateHostedEndpointRequestMessage, file_CreateHostedEndpointResponseMessage, file_CryptoPairingMessage, file_Destination, file_DeviceInfoMessage, file_Diagnostic, file_Dictionary, file_DiscoverySessionConfiguration, file_Error, file_GameControllerButtons, file_GameControllerDigitizer, file_GameControllerMessage, file_GameControllerMotion, file_GameControllerPropertiesMessage, file_GenericMessage, file_GetKeyboardSessionMessage, file_GetRemoteTextInputSessionMessage, file_GetStateMessage, file_GetVolumeControlCapabilitiesMessage, file_GetVolumeControlCapabilitiesResultMessage, file_GetVolumeMessage, file_GetVolumeMutedMessage, file_GetVolumeMutedResultMessage, file_GetVolumeResultMessage, file_GroupSession, file_GroupSessionErrorReplyMessage, file_GroupSessionFastSyncMessage, file_GroupSessionIdentityShareMessage, file_GroupSessionIdentityShareReplyMessage, file_GroupSessionJoinResponseMessage, file_GroupSessionLeaderDiscoveryMessage, file_GroupSessionMemberSyncMessage, file_KeyboardMessage, file_LanguageOption, file_LyricsEvent, file_LyricsItem, file_MicrophoneConnectionRequestMessage, file_MicrophoneConnectionResponseMessage, file_ModifyOutputContextRequestMessage, file_MusicHandoff, file_NotificationMessage, file_NowPlayingAudioFormatContentInfo, file_NowPlayingClient, file_NowPlayingInfo, file_NowPlayingPlayer, file_Origin, file_OriginClientPropertiesMessage, file_PlaybackQueue, file_PlaybackQueueCapabilities, file_PlaybackQueueContext, file_PlaybackQueueParticipant, file_PlaybackQueueRequestMessage, file_PlaybackSession, file_PlaybackSessionMigrateBeginMessage, file_PlaybackSessionMigrateEndMessage, file_PlaybackSessionMigratePostMessage, file_PlaybackSessionMigrateRequest, file_PlaybackSessionMigrateRequestEvent, file_PlaybackSessionMigrateRequestMessage, file_PlaybackSessionMigrateResponseMessage, file_PlaybackSessionRequest, file_PlaybackSessionRequestMessage, file_PlaybackSessionResponseMessage, file_PlayerClientParticipantsUpdateMessage, file_PlayerClientPropertiesMessage, file_PlayerPath, file_PresentRouteAuthorizationStatusMessage, file_PromptForRouteAuthorizationMessage, file_PromptForRouteAuthorizationResponseMessage, file_ProtocolMessage, file_ReceivedCommand, file_RegisterForGameControllerEventsMessage, file_RegisterGameControllerMessage, file_RegisterGameControllerResponseMessage, file_RegisterHIDDeviceMessage, file_RegisterHIDDeviceResultMessage, file_RegisterVoiceInputDeviceMessage, file_RegisterVoiceInputDeviceResponseMessage, file_RemoteTextInputMessage, file_RemoveClientMessage, file_RemoveEndpointsMessage, file_RemoveOutputDevicesMessage, file_RemovePlayerMessage, file_RequestDetails, file_RequestGroupSessionMessage, file_SendButtonEventMessage, file_SendCommandMessage, file_SendCommandResultMessage, file_SendHIDEventMessage, file_SendHIDReportMessage, file_SendLyricsEventMessage, file_SendPackedVirtualTouchEventMessage, file_SendVirtualTouchEventMessage, file_SendVoiceInputMessage, file_SetArtworkMessage, file_SetConnectionStateMessage, file_SetConversationDetectionEnabledMessage, file_SetDefaultSupportedCommandsMessage, file_SetDiscoveryModeMessage, file_SetHiliteModeMessage, file_SetListeningModeMessage, file_SetNowPlayingClientMessage, file_SetNowPlayingPlayerMessage, file_SetReadyStateMessage, file_SetRecordingStateMessage, file_SetStateMessage, file_SetVolumeMessage, file_SetVolumeMutedMessage, file_SupportedCommands, file_SystemPlaybackQueue, file_TextInputMessage, file_TransactionKey, file_TransactionMessage, file_TransactionPacket, file_TransactionPackets, file_Transcript, file_UnregisterGameControllerMessage, file_UpdateActiveSystemEndpointMessage, file_UpdateActiveSystemEndpointRequest, file_UpdateClientMessage, file_UpdateContentItemArtworkMessage, file_UpdateContentItemMessage, file_UpdateEndPointsMessage, file_UpdateOutputDeviceMessage, file_UpdatePlayerPath, file_UserIdentity, file_VideoThumbnail, file_VirtualTouchDeviceDescriptorMessage, file_VoiceInputDeviceDescriptorMessage, file_VolumeControlAvailabilityMessage, file_VolumeControlCapabilitiesDidChangeMessage, file_VolumeDidChangeMessage, file_VolumeMutedDidChangeMessage, file_WakeDeviceMessage, gameControllerMessage, gameControllerPropertiesMessage, genericMessage, getKeyboardSessionMessage, getRemoteTextInputSessionMessage, getStateMessage, getVolumeControlCapabilitiesMessage, getVolumeControlCapabilitiesResultMessage, getVolumeMessage, getVolumeMutedMessage, getVolumeMutedResultMessage, getVolumeResultMessage, groupSessionErrorReplyMessage, groupSessionFastSyncMessage, groupSessionIdentityShareMessage, groupSessionIdentityShareReplyMessage, groupSessionJoinResponseMessage, groupSessionLeaderDiscoveryMessage, groupSessionMemberSyncMessage, keyboardMessage, microphoneConnectionRequestMessage, microphoneConnectionResponseMessage, modifyOutputContextRequestMessage, notificationMessage, originClientPropertiesMessage, playbackQueueRequestMessage, playbackSessionMigrateBeginMessage, playbackSessionMigrateEndMessage, playbackSessionMigratePostMessage, playbackSessionMigrateRequestMessage, playbackSessionMigrateResponseMessage, playbackSessionRequestMessage, playbackSessionResponseMessage, playerClientParticipantsUpdateMessage, playerClientPropertiesMessage, presentRouteAuthorizationStatusMessage, promptForRouteAuthorizationMessage, promptForRouteAuthorizationResponseMessage, readyStateMessage, registerForGameControllerEventsMessage, registerGameControllerMessage, registerGameControllerResponseMessage, registerHIDDeviceMessage, registerHIDDeviceResultMessage, registerVoiceInputDeviceMessage, registerVoiceInputDeviceResponseMessage, remoteTextInputMessage, removeClientMessage, removeEndpointsMessage, removeOutputDevicesMessage, removePlayerMessage, requestGroupSessionMessage, sendButtonEventMessage, sendCommandMessage, sendCommandResultMessage, sendHIDEventMessage, sendHIDReportMessage, sendLyricsEventMessage, sendPackedVirtualTouchEventMessage, sendVirtualTouchEventMessage, sendVoiceInputMessage, setArtworkMessage, setConnectionStateMessage, setConversationDetectionEnabledMessage, setDefaultSupportedCommandsMessage, setDiscoveryModeMessage, setHiliteModeMessage, setListeningModeMessage, setNowPlayingClientMessage, setNowPlayingPlayerMessage, setRecordingStateMessage, setStateMessage, setVolumeMessage, setVolumeMutedMessage, textInputMessage, transactionMessage, unregisterGameControllerMessage, updateActiveSystemEndpointMessage, updateClientMessage, updateContentItemArtworkMessage, updateContentItemMessage, updateEndPointsMessage, updateOutputDeviceMessage, updatePlayerMessage, volumeControlAvailabilityMessage, volumeControlCapabilitiesDidChangeMessage, volumeDidChangeMessage, volumeMutedDidChangeMessage, wakeDeviceMessage };
|
|
13478
|
-
}
|
|
13479
|
-
//#endregion
|
|
13480
|
-
//#region src/baseStream.d.ts
|
|
13481
|
-
/**
|
|
13482
|
-
* Default events emitted by all AirPlay streams.
|
|
13483
|
-
*/
|
|
13484
|
-
type DefaultEventMap = {
|
|
13485
|
-
close: [];
|
|
13486
|
-
connect: [];
|
|
13487
|
-
error: [Error];
|
|
13488
|
-
timeout: [];
|
|
13489
|
-
};
|
|
13490
|
-
/**
|
|
13491
|
-
* Base class for AirPlay encrypted TCP streams (DataStream, EventStream).
|
|
13492
|
-
*
|
|
13493
|
-
* Extends {@link EncryptionAwareConnection} with AirPlay-specific ChaCha20
|
|
13494
|
-
* encryption that uses length-prefixed frames and a 12-byte nonce with a
|
|
13495
|
-
* 4-byte zero prefix followed by an 8-byte little-endian counter.
|
|
13496
|
-
*/
|
|
13497
|
-
declare class BaseStream<TEventMap extends EventMap = {}> extends EncryptionAwareConnection<DefaultEventMap & TEventMap> {
|
|
13498
|
-
/**
|
|
13499
|
-
* Decrypts incoming data using AirPlay's ChaCha20 frame format.
|
|
13500
|
-
*
|
|
13501
|
-
* @param data - Raw encrypted data from the TCP socket.
|
|
13502
|
-
* @returns Decrypted plaintext buffer, or `false` if the data is incomplete (partial frame).
|
|
13503
|
-
*/
|
|
13504
|
-
decrypt(data: Buffer): Buffer | false;
|
|
13505
|
-
/**
|
|
13506
|
-
* Encrypts outgoing data using AirPlay's ChaCha20 frame format.
|
|
13507
|
-
*
|
|
13508
|
-
* Splits data into 1024-byte frames, each prefixed with a 2-byte LE length
|
|
13509
|
-
* and suffixed with a 16-byte Poly1305 auth tag.
|
|
13510
|
-
*
|
|
13511
|
-
* @param data - Plaintext data to encrypt.
|
|
13512
|
-
* @returns Encrypted buffer ready for transmission.
|
|
13513
|
-
*/
|
|
13514
|
-
encrypt(data: Buffer): Buffer;
|
|
13685
|
+
export { AVAirPlaySecuritySettings, AVAirPlaySecuritySettingsSchema, AVEndpointDescriptor, AVEndpointDescriptorSchema, AVOutputDeviceDescriptor, AVOutputDeviceDescriptorSchema, AVOutputDeviceSourceInfo, AVOutputDeviceSourceInfoSchema, AVRouteQuery, AVRouteQuerySchema, ActionType, ActionTypeSchema, ActionType_Enum, ActionType_EnumSchema, ActiveFormatJustification, ActiveFormatJustificationSchema, ActiveFormatJustification_Enum, ActiveFormatJustification_EnumSchema, AdjustVolumeMessage, AdjustVolumeMessageSchema, AdjustVolumeMessage_Adjustment, AdjustVolumeMessage_AdjustmentSchema, AirPlayLeaderInfo, AirPlayLeaderInfoSchema, AlbumTraits, AlbumTraitsSchema, AlbumTraits_Enum, AlbumTraits_EnumSchema, AnimatedArtwork, AnimatedArtworkSchema, ApplicationConnectionContext, ApplicationConnectionContextSchema, ApplicationConnectionMessage, ApplicationConnectionMessageHeader, ApplicationConnectionMessageHeaderSchema, ApplicationConnectionMessageSchema, ApplicationConnectionProtocolMessage, ApplicationConnectionProtocolMessageSchema, ApplicationConnectionRequestInfo, ApplicationConnectionRequestInfoSchema, AudioBuffer, AudioBufferSchema, AudioDataBlock, AudioDataBlockSchema, AudioFadeMessage, AudioFadeMessageSchema, AudioFadeResponseMessage, AudioFadeResponseMessageSchema, AudioFormat, AudioFormatSchema, AudioFormatSettings, AudioFormatSettingsSchema, AudioRoute, AudioRouteSchema, AudioRouteType, AudioRouteTypeSchema, AudioRouteType_Enum, AudioRouteType_EnumSchema, AudioStreamPacketDescription, AudioStreamPacketDescriptionSchema, AudioTier, AudioTierSchema, AudioTier_Enum, AudioTier_EnumSchema, AudioTime, AudioTimeSchema, AutocapitalizationType, AutocapitalizationTypeSchema, AutocapitalizationType_Enum, AutocapitalizationType_EnumSchema, ChangeType, ChangeTypeSchema, ChangeType_Enum, ChangeType_EnumSchema, ClientUpdatesConfigMessage, ClientUpdatesConfigMessageSchema, ClusterType, ClusterTypeSchema, ClusterType_Enum, ClusterType_EnumSchema, Color, ColorSchema, Command, CommandInfo, CommandInfoSchema, CommandOptions, CommandOptionsSchema, CommandSchema, ConfigureConnectionMessage, ConfigureConnectionMessageSchema, ContentItem, ContentItemMetadata, ContentItemMetadataSchema, ContentItemMetadata_MediaSubType, ContentItemMetadata_MediaSubTypeSchema, ContentItemMetadata_MediaType, ContentItemMetadata_MediaTypeSchema, ContentItemSchema, CreateApplicationConnectionMessage, CreateApplicationConnectionMessageSchema, CreateHostedEndpointRequest, CreateHostedEndpointRequestSchema, CreateHostedEndpointResponse, CreateHostedEndpointResponseSchema, CryptoPairingMessage, CryptoPairingMessageSchema, DataArtwork, DataArtworkSchema, DelegationServiceMessage, DelegationServiceMessageSchema, Destination, DestinationSchema, DeviceClass, DeviceClassSchema, DeviceClass_Enum, DeviceClass_EnumSchema, DeviceInfoMessage, DeviceInfoMessageSchema, DeviceSubType, DeviceSubTypeSchema, DeviceSubType_Enum, DeviceSubType_EnumSchema, DeviceType, DeviceTypeSchema, DeviceType_Enum, DeviceType_EnumSchema, Diagnostic, DiagnosticSchema, Dictionary, DictionarySchema, DisableReason, DisableReasonSchema, DisableReason_Enum, DisableReason_EnumSchema, DiscoverySessionConfiguration, DiscoverySessionConfigurationSchema, EndpointOptions, EndpointOptionsSchema, EndpointOptions_Enum, EndpointOptions_EnumSchema, Error$1 as Error, ErrorCode, ErrorCodeSchema, ErrorCode_Enum, ErrorCode_EnumSchema, ErrorSchema, FinishDelegationRequest, FinishDelegationRequestSchema, FinishDelegationResponse, FinishDelegationResponseSchema, FormatTier, FormatTierSchema, FormatTier_Enum, FormatTier_EnumSchema, GameControllerAcceleration, GameControllerAccelerationSchema, GameControllerButtons, GameControllerButtonsSchema, GameControllerDigitizer, GameControllerDigitizerSchema, GameControllerMessage, GameControllerMessageSchema, GameControllerMotion, GameControllerMotionSchema, GameControllerProperties, GameControllerPropertiesMessage, GameControllerPropertiesMessageSchema, GameControllerPropertiesSchema, GenericMessage, GenericMessageSchema, GetKeyboardSessionMessage, GetKeyboardSessionMessageSchema, GetRemoteTextInputSessionMessage, GetRemoteTextInputSessionMessageSchema, GetStateMessage, GetStateMessageSchema, GetVolumeControlCapabilitiesMessage, GetVolumeControlCapabilitiesMessageSchema, GetVolumeControlCapabilitiesResultMessage, GetVolumeControlCapabilitiesResultMessageSchema, GetVolumeMessage, GetVolumeMessageSchema, GetVolumeMutedMessage, GetVolumeMutedMessageSchema, GetVolumeMutedResultMessage, GetVolumeMutedResultMessageSchema, GetVolumeResultMessage, GetVolumeResultMessageSchema, GroupSessionErrorReplyMessage, GroupSessionErrorReplyMessageSchema, GroupSessionFastSyncMessage, GroupSessionFastSyncMessageSchema, GroupSessionIdentityShareMessage, GroupSessionIdentityShareMessageSchema, GroupSessionIdentityShareReplyMessage, GroupSessionIdentityShareReplyMessageSchema, GroupSessionInfo, GroupSessionInfoSchema, GroupSessionJoinRequest, GroupSessionJoinRequestSchema, GroupSessionJoinResponse, GroupSessionJoinResponseMessage, GroupSessionJoinResponseMessageSchema, GroupSessionJoinResponseSchema, GroupSessionLeaderDiscoveryMessage, GroupSessionLeaderDiscoveryMessageSchema, GroupSessionMemberSyncMessage, GroupSessionMemberSyncMessageSchema, GroupSessionParticipant, GroupSessionParticipantSchema, GroupSessionRemoveRequest, GroupSessionRemoveRequestSchema, GroupSessionRouteType, GroupSessionRouteTypeSchema, GroupSessionRouteType_Enum, GroupSessionRouteType_EnumSchema, GroupSessionToken, GroupSessionTokenSchema, GroupTopologyModificationRequest, GroupTopologyModificationRequestSchema, GroupTopologyModificationRequest_Type, GroupTopologyModificationRequest_TypeSchema, HandlerReturnStatus, HandlerReturnStatusSchema, HandlerReturnStatus_Enum, HandlerReturnStatus_EnumSchema, KeyValuePair, KeyValuePairSchema, KeyboardMessage, KeyboardMessageSchema, KeyboardState, KeyboardStateSchema, KeyboardState_Enum, KeyboardState_EnumSchema, KeyboardType, KeyboardTypeSchema, KeyboardType_Enum, KeyboardType_EnumSchema, LanguageOption, LanguageOptionGroup, LanguageOptionGroupSchema, LanguageOptionSchema, LyricsEvent, LyricsEventSchema, LyricsItem, LyricsItemSchema, LyricsToken, LyricsTokenSchema, MicrophoneConnectionRequestMessage, MicrophoneConnectionRequestMessageSchema, MicrophoneConnectionResponseMessage, MicrophoneConnectionResponseMessageSchema, ModifyOutputContextRequestMessage, ModifyOutputContextRequestMessageSchema, ModifyOutputContextRequestType, ModifyOutputContextRequestTypeSchema, ModifyOutputContextRequestType_Enum, ModifyOutputContextRequestType_EnumSchema, MusicHandoffEvent, MusicHandoffEventSchema, MusicHandoffEvent_Type, MusicHandoffEvent_TypeSchema, MusicHandoffSession, MusicHandoffSessionSchema, NotificationMessage, NotificationMessageSchema, NowPlayingAudioFormatContentInfo, NowPlayingAudioFormatContentInfoSchema, NowPlayingClient, NowPlayingClientSchema, NowPlayingInfo, NowPlayingInfoSchema, NowPlayingPlayer, NowPlayingPlayerSchema, Origin, OriginClientPropertiesMessage, OriginClientPropertiesMessageSchema, OriginSchema, Origin_Type, Origin_TypeSchema, PlaybackQueue, PlaybackQueueCapabilities, PlaybackQueueCapabilitiesSchema, PlaybackQueueContext, PlaybackQueueContextSchema, PlaybackQueueParticipant, PlaybackQueueParticipantSchema, PlaybackQueueRequestMessage, PlaybackQueueRequestMessageSchema, PlaybackQueueSchema, PlaybackQueueType, PlaybackQueueTypeSchema, PlaybackQueueType_Enum, PlaybackQueueType_EnumSchema, PlaybackSession, PlaybackSessionMigrateBeginMessage, PlaybackSessionMigrateBeginMessageSchema, PlaybackSessionMigrateEndMessage, PlaybackSessionMigrateEndMessageSchema, PlaybackSessionMigratePostMessage, PlaybackSessionMigratePostMessageSchema, PlaybackSessionMigrateRequest, PlaybackSessionMigrateRequestEvent, PlaybackSessionMigrateRequestEventRole, PlaybackSessionMigrateRequestEventRoleSchema, PlaybackSessionMigrateRequestEventRole_Enum, PlaybackSessionMigrateRequestEventRole_EnumSchema, PlaybackSessionMigrateRequestEventSchema, PlaybackSessionMigrateRequestMessage, PlaybackSessionMigrateRequestMessageSchema, PlaybackSessionMigrateRequestSchema, PlaybackSessionMigrateResponseMessage, PlaybackSessionMigrateResponseMessageSchema, PlaybackSessionRequest, PlaybackSessionRequestMessage, PlaybackSessionRequestMessageSchema, PlaybackSessionRequestSchema, PlaybackSessionResponseMessage, PlaybackSessionResponseMessageSchema, PlaybackSessionSchema, PlaybackState, PlaybackStateSchema, PlaybackState_Enum, PlaybackState_EnumSchema, PlayerClientParticipantsUpdateMessage, PlayerClientParticipantsUpdateMessageSchema, PlayerClientPropertiesMessage, PlayerClientPropertiesMessageSchema, PlayerDelegateInfoToken, PlayerDelegateInfoTokenSchema, PlayerInfoContextRequestToken, PlayerInfoContextRequestTokenSchema, PlayerInfoContextToken, PlayerInfoContextTokenSchema, PlayerOptions, PlayerOptionsSchema, PlayerOptions_Enum, PlayerOptions_EnumSchema, PlayerPath, PlayerPathSchema, PlaylistTraits, PlaylistTraitsSchema, PlaylistTraits_Enum, PlaylistTraits_EnumSchema, PreferredEncoding, PreferredEncodingSchema, PreferredEncoding_Enum, PreferredEncoding_EnumSchema, PreloadedPlaybackSessionInfo, PreloadedPlaybackSessionInfoSchema, PresentRouteAuthorizationStatusMessage, PresentRouteAuthorizationStatusMessageSchema, PromptForRouteAuthorizationMessage, PromptForRouteAuthorizationMessageSchema, PromptForRouteAuthorizationResponseMessage, PromptForRouteAuthorizationResponseMessageSchema, ProtocolMessage, ProtocolMessageSchema, ProtocolMessage_Type, ProtocolMessage_TypeSchema, QueueEndAction, QueueEndActionSchema, QueueEndAction_Enum, QueueEndAction_EnumSchema, ReceivedCommand, ReceivedCommandAppOptions, ReceivedCommandAppOptionsSchema, ReceivedCommandSchema, RecipeType, RecipeTypeSchema, RecipeType_Enum, RecipeType_EnumSchema, RegisterForGameControllerEventsMessage, RegisterForGameControllerEventsMessageSchema, RegisterForGameControllerEventsMessage_InputModeFlags, RegisterForGameControllerEventsMessage_InputModeFlagsSchema, RegisterGameControllerMessage, RegisterGameControllerMessageSchema, RegisterGameControllerResponseMessage, RegisterGameControllerResponseMessageSchema, RegisterHIDDeviceMessage, RegisterHIDDeviceMessageSchema, RegisterHIDDeviceResultMessage, RegisterHIDDeviceResultMessageSchema, RegisterVoiceInputDeviceMessage, RegisterVoiceInputDeviceMessageSchema, RegisterVoiceInputDeviceResponseMessage, RegisterVoiceInputDeviceResponseMessageSchema, RemoteArtwork, RemoteArtworkSchema, RemoteTextInputMessage, RemoteTextInputMessageSchema, RemoveClientMessage, RemoveClientMessageSchema, RemoveEndpointsMessage, RemoveEndpointsMessageSchema, RemoveOutputDevicesMessage, RemoveOutputDevicesMessageSchema, RemovePlayerMessage, RemovePlayerMessageSchema, RepeatMode, RepeatModeSchema, RepeatMode_Enum, RepeatMode_EnumSchema, ReplaceIntent, ReplaceIntentSchema, ReplaceIntent_Enum, ReplaceIntent_EnumSchema, RequestDetails, RequestDetailsSchema, RequestGroupSessionMessage, RequestGroupSessionMessageSchema, ReturnKeyType, ReturnKeyTypeSchema, ReturnKeyType_Enum, ReturnKeyType_EnumSchema, SendButtonEventMessage, SendButtonEventMessageSchema, SendCommandMessage, SendCommandMessageSchema, SendCommandResult, SendCommandResultMessage, SendCommandResultMessageSchema, SendCommandResultSchema, SendCommandResultStatus, SendCommandResultStatusSchema, SendCommandResultType, SendCommandResultTypeSchema, SendCommandResultType_Enum, SendCommandResultType_EnumSchema, SendCommandStatusCode, SendCommandStatusCodeSchema, SendCommandStatusCode_Enum, SendCommandStatusCode_EnumSchema, SendError, SendErrorSchema, SendError_Enum, SendError_EnumSchema, SendHIDEventMessage, SendHIDEventMessageSchema, SendHIDReportMessage, SendHIDReportMessageSchema, SendLyricsEventMessage, SendLyricsEventMessageSchema, SendPackedVirtualTouchEventMessage, SendPackedVirtualTouchEventMessageSchema, SendPackedVirtualTouchEventMessage_Phase, SendPackedVirtualTouchEventMessage_PhaseSchema, SendVirtualTouchEventMessage, SendVirtualTouchEventMessageSchema, SendVoiceInputMessage, SendVoiceInputMessageSchema, SetArtworkMessage, SetArtworkMessageSchema, SetConnectionStateMessage, SetConnectionStateMessageSchema, SetConnectionStateMessage_ConnectionState, SetConnectionStateMessage_ConnectionStateSchema, SetConversationDetectionEnabledMessage, SetConversationDetectionEnabledMessageSchema, SetDefaultSupportedCommandsMessage, SetDefaultSupportedCommandsMessageSchema, SetDiscoveryModeMessage, SetDiscoveryModeMessageSchema, SetHiliteModeMessage, SetHiliteModeMessageSchema, SetListeningModeMessage, SetListeningModeMessageSchema, SetNowPlayingClientMessage, SetNowPlayingClientMessageSchema, SetNowPlayingPlayerMessage, SetNowPlayingPlayerMessageSchema, SetReadyStateMessage, SetReadyStateMessageSchema, SetRecordingStateMessage, SetRecordingStateMessageSchema, SetRecordingStateMessage_RecordingState, SetRecordingStateMessage_RecordingStateSchema, SetStateMessage, SetStateMessageSchema, SetVolumeMessage, SetVolumeMessageSchema, SetVolumeMutedMessage, SetVolumeMutedMessageSchema, ShuffleMode, ShuffleModeSchema, ShuffleMode_Enum, ShuffleMode_EnumSchema, SongTraits, SongTraitsSchema, SongTraits_Enum, SongTraits_EnumSchema, StartDelegationRequest, StartDelegationRequestSchema, StartDelegationResponse, StartDelegationResponseSchema, SupportedCommands, SupportedCommandsSchema, SystemPlaybackCustomData, SystemPlaybackCustomDataSchema, SystemPlaybackGenericTracklistQueue, SystemPlaybackGenericTracklistQueueSchema, SystemPlaybackQueue, SystemPlaybackQueueSchema, TextEditingAttributes, TextEditingAttributesSchema, TextInputMessage, TextInputMessageSchema, TextInputTraits, TextInputTraitsSchema, TransactionKey, TransactionKeySchema, TransactionMessage, TransactionMessageSchema, TransactionPacket, TransactionPacketSchema, TransactionPackets, TransactionPacketsSchema, TranscriptAlignment, TranscriptAlignmentSchema, UnregisterGameControllerMessage, UnregisterGameControllerMessageSchema, UpdateActiveSystemEndpointMessage, UpdateActiveSystemEndpointMessageSchema, UpdateActiveSystemEndpointRequest, UpdateActiveSystemEndpointRequestSchema, UpdateClientMessage, UpdateClientMessageSchema, UpdateContentItemArtworkMessage, UpdateContentItemArtworkMessageSchema, UpdateContentItemMessage, UpdateContentItemMessageSchema, UpdateEndPointsMessage, UpdateEndPointsMessageSchema, UpdateOutputDeviceMessage, UpdateOutputDeviceMessageSchema, UpdatePlayerMessage, UpdatePlayerMessageSchema, UserIdentity, UserIdentitySchema, UserIdentity_Type, UserIdentity_TypeSchema, Value, ValueSchema, VideoThumbnail, VideoThumbnailRequest, VideoThumbnailRequestSchema, VideoThumbnailSchema, VirtualTouchDeviceDescriptor, VirtualTouchDeviceDescriptorSchema, VirtualTouchEvent, VirtualTouchEventSchema, VirtualTouchPhase, VirtualTouchPhaseSchema, VirtualTouchPhase_Enum, VirtualTouchPhase_EnumSchema, VoiceInputDeviceDescriptor, VoiceInputDeviceDescriptorSchema, VolumeCapabilities, VolumeCapabilitiesSchema, VolumeCapabilities_Enum, VolumeCapabilities_EnumSchema, VolumeControlAvailabilityMessage, VolumeControlAvailabilityMessageSchema, VolumeControlCapabilitiesDidChangeMessage, VolumeControlCapabilitiesDidChangeMessageSchema, VolumeDidChangeMessage, VolumeDidChangeMessageSchema, VolumeMutedDidChangeMessage, VolumeMutedDidChangeMessageSchema, WakeDeviceMessage, WakeDeviceMessageSchema, adjustVolumeMessage, audioFadeMessage, audioFadeResponseMessage, clientUpdatesConfigMessage, configureConnectionMessage, createApplicationConnectionMessage, createHostedEndpointRequest, createHostedEndpointResponse, cryptoPairingMessage, deviceInfoMessage, file_AVAirPlaySecuritySettings, file_AVRouteQuery, file_AdjustVolumeMessage, file_AirPlayLeaderInfo, file_ApplicationConnection, file_ApplicationConnectionProtocolMessage, file_Artwork, file_AudioFadeMessage, file_AudioFadeResponseMessage, file_AudioFormatSettingsMessage, file_ClientUpdatesConfigMessage, file_Color, file_CommandInfo, file_CommandOptions, file_Common, file_ConfigureConnectionMessage, file_ContentItem, file_ContentItemMetadata, file_CreateApplicationConnectionMessage, file_CreateHostedEndpointRequestMessage, file_CreateHostedEndpointResponseMessage, file_CryptoPairingMessage, file_DelegationServiceMessage, file_Destination, file_DeviceInfoMessage, file_Diagnostic, file_Dictionary, file_DiscoverySessionConfiguration, file_Error, file_GameControllerButtons, file_GameControllerDigitizer, file_GameControllerMessage, file_GameControllerMotion, file_GameControllerPropertiesMessage, file_GenericMessage, file_GetKeyboardSessionMessage, file_GetRemoteTextInputSessionMessage, file_GetStateMessage, file_GetVolumeControlCapabilitiesMessage, file_GetVolumeControlCapabilitiesResultMessage, file_GetVolumeMessage, file_GetVolumeMutedMessage, file_GetVolumeMutedResultMessage, file_GetVolumeResultMessage, file_GroupSession, file_GroupSessionErrorReplyMessage, file_GroupSessionFastSyncMessage, file_GroupSessionIdentityShareMessage, file_GroupSessionIdentityShareReplyMessage, file_GroupSessionJoinResponseMessage, file_GroupSessionLeaderDiscoveryMessage, file_GroupSessionMemberSyncMessage, file_KeyboardMessage, file_LanguageOption, file_LyricsEvent, file_LyricsItem, file_MicrophoneConnectionRequestMessage, file_MicrophoneConnectionResponseMessage, file_ModifyOutputContextRequestMessage, file_MusicHandoff, file_NotificationMessage, file_NowPlayingAudioFormatContentInfo, file_NowPlayingClient, file_NowPlayingInfo, file_NowPlayingPlayer, file_Origin, file_OriginClientPropertiesMessage, file_PlaybackQueue, file_PlaybackQueueCapabilities, file_PlaybackQueueContext, file_PlaybackQueueParticipant, file_PlaybackQueueRequestMessage, file_PlaybackSession, file_PlaybackSessionMigrateBeginMessage, file_PlaybackSessionMigrateEndMessage, file_PlaybackSessionMigratePostMessage, file_PlaybackSessionMigrateRequest, file_PlaybackSessionMigrateRequestEvent, file_PlaybackSessionMigrateRequestMessage, file_PlaybackSessionMigrateResponseMessage, file_PlaybackSessionRequest, file_PlaybackSessionRequestMessage, file_PlaybackSessionResponseMessage, file_PlayerClientParticipantsUpdateMessage, file_PlayerClientPropertiesMessage, file_PlayerPath, file_PresentRouteAuthorizationStatusMessage, file_PromptForRouteAuthorizationMessage, file_PromptForRouteAuthorizationResponseMessage, file_ProtocolMessage, file_ReceivedCommand, file_RegisterForGameControllerEventsMessage, file_RegisterGameControllerMessage, file_RegisterGameControllerResponseMessage, file_RegisterHIDDeviceMessage, file_RegisterHIDDeviceResultMessage, file_RegisterVoiceInputDeviceMessage, file_RegisterVoiceInputDeviceResponseMessage, file_RemoteTextInputMessage, file_RemoveClientMessage, file_RemoveEndpointsMessage, file_RemoveOutputDevicesMessage, file_RemovePlayerMessage, file_RequestDetails, file_RequestGroupSessionMessage, file_SendButtonEventMessage, file_SendCommandMessage, file_SendCommandResultMessage, file_SendHIDEventMessage, file_SendHIDReportMessage, file_SendLyricsEventMessage, file_SendPackedVirtualTouchEventMessage, file_SendVirtualTouchEventMessage, file_SendVoiceInputMessage, file_SetArtworkMessage, file_SetConnectionStateMessage, file_SetConversationDetectionEnabledMessage, file_SetDefaultSupportedCommandsMessage, file_SetDiscoveryModeMessage, file_SetHiliteModeMessage, file_SetListeningModeMessage, file_SetNowPlayingClientMessage, file_SetNowPlayingPlayerMessage, file_SetReadyStateMessage, file_SetRecordingStateMessage, file_SetStateMessage, file_SetVolumeMessage, file_SetVolumeMutedMessage, file_SupportedCommands, file_SystemPlaybackQueue, file_TextInputMessage, file_TransactionKey, file_TransactionMessage, file_TransactionPacket, file_TransactionPackets, file_Transcript, file_UnregisterGameControllerMessage, file_UpdateActiveSystemEndpointMessage, file_UpdateActiveSystemEndpointRequest, file_UpdateClientMessage, file_UpdateContentItemArtworkMessage, file_UpdateContentItemMessage, file_UpdateEndPointsMessage, file_UpdateOutputDeviceMessage, file_UpdatePlayerPath, file_UserIdentity, file_VideoThumbnail, file_VirtualTouchDeviceDescriptorMessage, file_VoiceInputDeviceDescriptorMessage, file_VolumeControlAvailabilityMessage, file_VolumeControlCapabilitiesDidChangeMessage, file_VolumeDidChangeMessage, file_VolumeMutedDidChangeMessage, file_WakeDeviceMessage, gameControllerMessage, gameControllerPropertiesMessage, genericMessage, getKeyboardSessionMessage, getRemoteTextInputSessionMessage, getStateMessage, getVolumeControlCapabilitiesMessage, getVolumeControlCapabilitiesResultMessage, getVolumeMessage, getVolumeMutedMessage, getVolumeMutedResultMessage, getVolumeResultMessage, groupSessionErrorReplyMessage, groupSessionFastSyncMessage, groupSessionIdentityShareMessage, groupSessionIdentityShareReplyMessage, groupSessionJoinResponseMessage, groupSessionLeaderDiscoveryMessage, groupSessionMemberSyncMessage, keyboardMessage, microphoneConnectionRequestMessage, microphoneConnectionResponseMessage, modifyOutputContextRequestMessage, notificationMessage, originClientPropertiesMessage, playbackQueueRequestMessage, playbackSessionMigrateBeginMessage, playbackSessionMigrateEndMessage, playbackSessionMigratePostMessage, playbackSessionMigrateRequestMessage, playbackSessionMigrateResponseMessage, playbackSessionRequestMessage, playbackSessionResponseMessage, playerClientParticipantsUpdateMessage, playerClientPropertiesMessage, presentRouteAuthorizationStatusMessage, promptForRouteAuthorizationMessage, promptForRouteAuthorizationResponseMessage, readyStateMessage, registerForGameControllerEventsMessage, registerGameControllerMessage, registerGameControllerResponseMessage, registerHIDDeviceMessage, registerHIDDeviceResultMessage, registerVoiceInputDeviceMessage, registerVoiceInputDeviceResponseMessage, remoteTextInputMessage, removeClientMessage, removeEndpointsMessage, removeOutputDevicesMessage, removePlayerMessage, requestGroupSessionMessage, sendButtonEventMessage, sendCommandMessage, sendCommandResultMessage, sendHIDEventMessage, sendHIDReportMessage, sendLyricsEventMessage, sendPackedVirtualTouchEventMessage, sendVirtualTouchEventMessage, sendVoiceInputMessage, setArtworkMessage, setConnectionStateMessage, setConversationDetectionEnabledMessage, setDefaultSupportedCommandsMessage, setDiscoveryModeMessage, setHiliteModeMessage, setListeningModeMessage, setNowPlayingClientMessage, setNowPlayingPlayerMessage, setRecordingStateMessage, setStateMessage, setVolumeMessage, setVolumeMutedMessage, textInputMessage, transactionMessage, unregisterGameControllerMessage, updateActiveSystemEndpointMessage, updateClientMessage, updateContentItemArtworkMessage, updateContentItemMessage, updateEndPointsMessage, updateOutputDeviceMessage, updatePlayerMessage, volumeControlAvailabilityMessage, volumeControlCapabilitiesDidChangeMessage, volumeDidChangeMessage, volumeMutedDidChangeMessage, wakeDeviceMessage };
|
|
13515
13686
|
}
|
|
13516
13687
|
//#endregion
|
|
13517
13688
|
//#region src/dataStream.d.ts
|
|
@@ -13544,10 +13715,51 @@ type EventMap$1 = {
|
|
|
13544
13715
|
readonly updateContentItemArtwork: [UpdateContentItemArtworkMessage];
|
|
13545
13716
|
readonly updatePlayer: [UpdatePlayerMessage];
|
|
13546
13717
|
readonly updateOutputDevice: [UpdateOutputDeviceMessage];
|
|
13718
|
+
readonly playerClientParticipantsUpdate: [PlayerClientParticipantsUpdateMessage];
|
|
13547
13719
|
readonly volumeControlAvailability: [VolumeControlAvailabilityMessage];
|
|
13548
13720
|
readonly volumeControlCapabilitiesDidChange: [VolumeControlCapabilitiesDidChangeMessage];
|
|
13549
13721
|
readonly volumeDidChange: [VolumeDidChangeMessage];
|
|
13550
13722
|
readonly volumeMutedDidChange: [VolumeMutedDidChangeMessage];
|
|
13723
|
+
readonly audioFade: [AudioFadeMessage];
|
|
13724
|
+
readonly audioFadeResponse: [AudioFadeResponseMessage];
|
|
13725
|
+
readonly adjustVolume: [AdjustVolumeMessage];
|
|
13726
|
+
readonly getVolumeResult: [GetVolumeResultMessage];
|
|
13727
|
+
readonly getVolumeMutedResult: [GetVolumeMutedResultMessage];
|
|
13728
|
+
readonly notification: [NotificationMessage];
|
|
13729
|
+
readonly setConnectionState: [SetConnectionStateMessage];
|
|
13730
|
+
readonly setDiscoveryMode: [SetDiscoveryModeMessage];
|
|
13731
|
+
readonly setListeningMode: [SetListeningModeMessage];
|
|
13732
|
+
readonly transaction: [TransactionMessage];
|
|
13733
|
+
readonly updateActiveSystemEndpoint: [UpdateActiveSystemEndpointMessage];
|
|
13734
|
+
readonly updateEndpoints: [UpdateEndPointsMessage];
|
|
13735
|
+
readonly removeEndpoints: [RemoveEndpointsMessage];
|
|
13736
|
+
readonly removeOutputDevices: [RemoveOutputDevicesMessage];
|
|
13737
|
+
readonly wakeDevice: [WakeDeviceMessage];
|
|
13738
|
+
readonly genericMessage: [GenericMessage];
|
|
13739
|
+
readonly playbackSessionRequest: [PlaybackSessionRequestMessage];
|
|
13740
|
+
readonly playbackSessionResponse: [PlaybackSessionResponseMessage];
|
|
13741
|
+
readonly playbackSessionMigrateRequest: [PlaybackSessionMigrateRequestMessage];
|
|
13742
|
+
readonly playbackSessionMigrateResponse: [PlaybackSessionMigrateResponseMessage];
|
|
13743
|
+
readonly playbackSessionMigrateBegin: [PlaybackSessionMigrateBeginMessage];
|
|
13744
|
+
readonly playbackSessionMigrateEnd: [PlaybackSessionMigrateEndMessage];
|
|
13745
|
+
readonly playbackSessionMigratePost: [PlaybackSessionMigratePostMessage];
|
|
13746
|
+
readonly createHostedEndpointRequest: [CreateHostedEndpointRequest];
|
|
13747
|
+
readonly createHostedEndpointResponse: [CreateHostedEndpointResponse];
|
|
13748
|
+
readonly promptForRouteAuthorization: [PromptForRouteAuthorizationMessage];
|
|
13749
|
+
readonly promptForRouteAuthorizationResponse: [PromptForRouteAuthorizationResponseMessage];
|
|
13750
|
+
readonly presentRouteAuthorizationStatus: [PresentRouteAuthorizationStatusMessage];
|
|
13751
|
+
readonly requestGroupSession: [RequestGroupSessionMessage];
|
|
13752
|
+
readonly microphoneConnectionRequest: [MicrophoneConnectionRequestMessage];
|
|
13753
|
+
readonly microphoneConnectionResponse: [MicrophoneConnectionResponseMessage];
|
|
13754
|
+
readonly createApplicationConnection: [CreateApplicationConnectionMessage];
|
|
13755
|
+
readonly setHiliteMode: [SetHiliteModeMessage];
|
|
13756
|
+
readonly textInput: [TextInputMessage];
|
|
13757
|
+
readonly remoteTextInput: [RemoteTextInputMessage];
|
|
13758
|
+
readonly cryptoPairing: [CryptoPairingMessage];
|
|
13759
|
+
readonly gameController: [GameControllerMessage];
|
|
13760
|
+
readonly gameControllerProperties: [GameControllerPropertiesMessage];
|
|
13761
|
+
readonly registerGameController: [RegisterGameControllerMessage];
|
|
13762
|
+
readonly registerGameControllerResponse: [RegisterGameControllerResponseMessage];
|
|
13551
13763
|
};
|
|
13552
13764
|
/**
|
|
13553
13765
|
* Protobuf-based MRP (Media Remote Protocol) data stream for AirPlay.
|
|
@@ -13643,6 +13855,15 @@ declare class DataStream extends BaseStream<EventMap$1> {
|
|
|
13643
13855
|
//#endregion
|
|
13644
13856
|
//#region src/eventStream.d.ts
|
|
13645
13857
|
/**
|
|
13858
|
+
* Event map for commands received from the Apple TV via the event stream.
|
|
13859
|
+
*/
|
|
13860
|
+
type EventStreamEventMap = {
|
|
13861
|
+
/** Generic command received via POST /command. */command: [data: Record<string, unknown>]; /** Apple TV requests audio ducking (e.g. Siri activation). */
|
|
13862
|
+
duckAudio: [data: Record<string, unknown>]; /** Apple TV requests audio unducking. */
|
|
13863
|
+
unduckAudio: [data: Record<string, unknown>]; /** The Apple TV has ended the session. */
|
|
13864
|
+
sessionDied: [];
|
|
13865
|
+
};
|
|
13866
|
+
/**
|
|
13646
13867
|
* Reverse HTTP event stream from the Apple TV.
|
|
13647
13868
|
*
|
|
13648
13869
|
* Unlike the other streams where we send requests, the event stream is a TCP
|
|
@@ -13653,9 +13874,9 @@ declare class DataStream extends BaseStream<EventMap$1> {
|
|
|
13653
13874
|
* The stream is encrypted with ChaCha20-Poly1305 after setup. Note that the
|
|
13654
13875
|
* HKDF info strings are swapped compared to what you might expect: the key
|
|
13655
13876
|
* derived from 'Events-Write-Encryption-Key' becomes our read key, because
|
|
13656
|
-
* these names are from the Apple TV's perspective
|
|
13877
|
+
* these names are from the Apple TV's perspective.
|
|
13657
13878
|
*/
|
|
13658
|
-
declare class EventStream extends BaseStream {
|
|
13879
|
+
declare class EventStream extends BaseStream<EventStreamEventMap> {
|
|
13659
13880
|
#private;
|
|
13660
13881
|
/**
|
|
13661
13882
|
* @param context - Shared context with logger and device identity.
|
|
@@ -13753,6 +13974,12 @@ declare class Protocol {
|
|
|
13753
13974
|
get dataStream(): DataStream | undefined;
|
|
13754
13975
|
/** The mDNS discovery result that identified this receiver. */
|
|
13755
13976
|
get discoveryResult(): DiscoveryResult;
|
|
13977
|
+
/**
|
|
13978
|
+
* The receiver's dedicated keep-alive port, or undefined if not provided.
|
|
13979
|
+
* Returned by the receiver in the SETUP response. Can be used for a
|
|
13980
|
+
* separate low-power keep-alive TCP connection.
|
|
13981
|
+
*/
|
|
13982
|
+
get keepAlivePort(): number | undefined;
|
|
13756
13983
|
/** The active audio stream, or undefined if not streaming audio. */
|
|
13757
13984
|
get audioStream(): AudioStream | undefined;
|
|
13758
13985
|
/** The reverse HTTP event stream from the receiver, or undefined if not yet set up. */
|
|
@@ -13813,8 +14040,13 @@ declare class Protocol {
|
|
|
13813
14040
|
*
|
|
13814
14041
|
* The feedback loop keeps the AirPlay session alive. Uses a 1.9s timeout
|
|
13815
14042
|
* (slightly less than the 2s interval) to avoid overlapping requests.
|
|
14043
|
+
*
|
|
14044
|
+
* Optionally includes session stats in the body (Apple's `keepAliveSendStatsAsBody`
|
|
14045
|
+
* pattern), which gives the receiver better information about connection quality.
|
|
14046
|
+
*
|
|
14047
|
+
* @param stats - Optional stats to include in the feedback body (plist-serializable).
|
|
13816
14048
|
*/
|
|
13817
|
-
feedback(): Promise<void>;
|
|
14049
|
+
feedback(stats?: Record<string, unknown>): Promise<void>;
|
|
13818
14050
|
/**
|
|
13819
14051
|
* Sets the playback volume on the receiver.
|
|
13820
14052
|
*
|
|
@@ -13822,6 +14054,21 @@ declare class Protocol {
|
|
|
13822
14054
|
*/
|
|
13823
14055
|
setVolume(volume: number): Promise<void>;
|
|
13824
14056
|
/**
|
|
14057
|
+
* Gets a property value from the AirPlay receiver.
|
|
14058
|
+
*
|
|
14059
|
+
* @param property - The property key to query (e.g. 'dmcp.device-volume').
|
|
14060
|
+
* @returns The RTSP response (body contains the value, typically plist-encoded).
|
|
14061
|
+
*/
|
|
14062
|
+
getProperty(property: string): Promise<Response>;
|
|
14063
|
+
/**
|
|
14064
|
+
* Sets a property value on the AirPlay receiver.
|
|
14065
|
+
*
|
|
14066
|
+
* @param property - The property key=value string (e.g. 'dmcp.device-volume=0.5').
|
|
14067
|
+
* @param body - Optional body for complex property values.
|
|
14068
|
+
* @returns The RTSP response.
|
|
14069
|
+
*/
|
|
14070
|
+
setProperty(property: string, body?: Buffer | string | Record<string, unknown>): Promise<Response>;
|
|
14071
|
+
/**
|
|
13825
14072
|
* Sets up and connects the MRP data stream for protobuf-based remote control.
|
|
13826
14073
|
*
|
|
13827
14074
|
* Sends an RTSP SETUP request for a type 130 (MRP) stream with a dedicated
|
|
@@ -13918,6 +14165,136 @@ declare class Protocol {
|
|
|
13918
14165
|
useTimingServer(timingServer: TimingServer): void;
|
|
13919
14166
|
}
|
|
13920
14167
|
//#endregion
|
|
14168
|
+
//#region src/audioStream.d.ts
|
|
14169
|
+
/**
|
|
14170
|
+
* Options for configuring an AudioStream instance.
|
|
14171
|
+
*/
|
|
14172
|
+
type AudioStreamOptions = {
|
|
14173
|
+
/** Number of previous frames to include as RFC 2198 redundancy (0 = disabled, default: 2). */readonly redundancyCount?: number;
|
|
14174
|
+
};
|
|
14175
|
+
/**
|
|
14176
|
+
* Statistics for an active audio stream, used for feedback and adaptive redundancy.
|
|
14177
|
+
*/
|
|
14178
|
+
type AudioStreamStats = {
|
|
14179
|
+
readonly packetsSent: number;
|
|
14180
|
+
readonly retransmitRequests: number;
|
|
14181
|
+
readonly retransmitsFulfilled: number;
|
|
14182
|
+
readonly retransmitsFailed: number;
|
|
14183
|
+
readonly packetLossRate: number;
|
|
14184
|
+
readonly totalBytesSent: number;
|
|
14185
|
+
};
|
|
14186
|
+
/**
|
|
14187
|
+
* Mutable state tracked during an active audio stream.
|
|
14188
|
+
*
|
|
14189
|
+
* Created by {@link AudioStream.prepare} and updated with each sent packet.
|
|
14190
|
+
* Used by both single-device streaming and multi-room multiplexing.
|
|
14191
|
+
*/
|
|
14192
|
+
type AudioStreamContext = {
|
|
14193
|
+
/** Negotiated sample rate in Hz. */sampleRate: number; /** Number of audio channels. */
|
|
14194
|
+
channels: number; /** Bytes per sample per channel. */
|
|
14195
|
+
bytesPerChannel: number; /** Total bytes per frame (channels * bytesPerChannel). */
|
|
14196
|
+
frameSize: number; /** Total bytes per packet (framesPerPacket * frameSize). */
|
|
14197
|
+
packetSize: number; /** Current RTP sequence number (wraps at 0xFFFF). */
|
|
14198
|
+
rtpSeq: number; /** Current RTP timestamp (cumulative frame count). */
|
|
14199
|
+
rtpTime: number; /** Head timestamp for the current packet. */
|
|
14200
|
+
headTs: number; /** Latency in frames for silence padding at stream end. */
|
|
14201
|
+
latency: number; /** Number of padding (silence) frames sent so far. */
|
|
14202
|
+
paddingSent: number; /** Total number of audio frames sent. */
|
|
14203
|
+
totalFrames: number;
|
|
14204
|
+
};
|
|
14205
|
+
/**
|
|
14206
|
+
* Real-time RTP audio streaming over UDP with ChaCha20-Poly1305 encryption.
|
|
14207
|
+
*
|
|
14208
|
+
* Handles the full audio streaming lifecycle:
|
|
14209
|
+
* 1. {@link setup} - RTSP SETUP to negotiate format and get port assignments
|
|
14210
|
+
* 2. {@link prepare} - Connect UDP socket, initialize RTP state, FLUSH, start RTCP sync
|
|
14211
|
+
* 3. {@link sendFrameData} / {@link stream} - Send PCM frames as encrypted RTP packets
|
|
14212
|
+
* 4. {@link finish} / TEARDOWN - Send silence padding and tear down the stream
|
|
14213
|
+
*
|
|
14214
|
+
* Features:
|
|
14215
|
+
* - ChaCha20-Poly1305 audio encryption with per-packet nonces
|
|
14216
|
+
* - RTCP sync packets for receiver clock synchronization
|
|
14217
|
+
* - Packet retransmission backlog for handling receiver NACK requests
|
|
14218
|
+
* - RFC 2198 audio redundancy support (configurable via AudioStreamOptions)
|
|
14219
|
+
* - Wall-clock-based timing to maintain real-time audio pace
|
|
14220
|
+
*/
|
|
14221
|
+
declare class AudioStream {
|
|
14222
|
+
#private;
|
|
14223
|
+
/** Current streaming statistics for feedback and adaptive redundancy. */
|
|
14224
|
+
get stats(): AudioStreamStats;
|
|
14225
|
+
/**
|
|
14226
|
+
* @param protocol - The AirPlay protocol instance providing control stream and context.
|
|
14227
|
+
* @param options - Optional configuration for redundancy and other settings.
|
|
14228
|
+
*/
|
|
14229
|
+
constructor(protocol: Protocol, options?: AudioStreamOptions);
|
|
14230
|
+
/**
|
|
14231
|
+
* Performs RTSP SETUP to negotiate audio format and get port assignments.
|
|
14232
|
+
*
|
|
14233
|
+
* Generates a random shared encryption key and SSRC, creates a local UDP
|
|
14234
|
+
* socket for RTCP control, then sends the SETUP request with format
|
|
14235
|
+
* preferences (PCM 44100/24/stereo by default). On success, stores the
|
|
14236
|
+
* assigned data and control ports and sends RECORD.
|
|
14237
|
+
*
|
|
14238
|
+
* @returns The assigned data and control port numbers.
|
|
14239
|
+
* @throws SetupError if the SETUP request fails or returns no stream info.
|
|
14240
|
+
*/
|
|
14241
|
+
setup(): Promise<{
|
|
14242
|
+
dataPort: number;
|
|
14243
|
+
controlPort: number;
|
|
14244
|
+
}>;
|
|
14245
|
+
/**
|
|
14246
|
+
* Prepare the audio stream for sending. Connects the UDP data socket,
|
|
14247
|
+
* initializes stream context, sends FLUSH, and starts RTCP sync.
|
|
14248
|
+
*/
|
|
14249
|
+
prepare(remoteAddress: string): Promise<AudioStreamContext>;
|
|
14250
|
+
/**
|
|
14251
|
+
* Sends pre-read frame data as an RTP packet.
|
|
14252
|
+
*
|
|
14253
|
+
* Used by {@link AudioMultiplexer} for multi-room streaming where frames
|
|
14254
|
+
* are read once from the source and sent to multiple streams.
|
|
14255
|
+
*
|
|
14256
|
+
* @param frames - Raw PCM frame data to send.
|
|
14257
|
+
* @param firstPacket - Whether this is the first packet (sets RTP marker bit).
|
|
14258
|
+
* @returns Number of frames sent.
|
|
14259
|
+
* @throws SetupError if the stream has not been prepared.
|
|
14260
|
+
*/
|
|
14261
|
+
sendFrameData(frames: Buffer, firstPacket: boolean): Promise<number>;
|
|
14262
|
+
/**
|
|
14263
|
+
* Finishes the audio stream by sending silence padding and tearing down.
|
|
14264
|
+
*
|
|
14265
|
+
* Sends silence frames equal to the latency amount so the receiver has
|
|
14266
|
+
* enough buffered audio for a clean ending, then stops sync and sends
|
|
14267
|
+
* RTSP TEARDOWN.
|
|
14268
|
+
*/
|
|
14269
|
+
finish(): Promise<void>;
|
|
14270
|
+
/**
|
|
14271
|
+
* Streams audio from a source to the receiver.
|
|
14272
|
+
*
|
|
14273
|
+
* Convenience method that orchestrates the full streaming lifecycle:
|
|
14274
|
+
* prepare, send packets with real-time pacing and catch-up logic,
|
|
14275
|
+
* pad with silence, TEARDOWN, and close. Automatically compensates
|
|
14276
|
+
* when falling behind schedule by sending extra packets.
|
|
14277
|
+
*
|
|
14278
|
+
* @param source - Audio source to read PCM frames from.
|
|
14279
|
+
* @param remoteAddress - IP address of the AirPlay receiver for UDP connection.
|
|
14280
|
+
*/
|
|
14281
|
+
stream(source: AudioSource, remoteAddress: string): Promise<void>;
|
|
14282
|
+
/**
|
|
14283
|
+
* Retrieves a previously sent packet from the retransmission backlog.
|
|
14284
|
+
*
|
|
14285
|
+
* @param seqno - RTP sequence number to look up.
|
|
14286
|
+
* @returns The complete RTP packet, or undefined if no longer in the backlog.
|
|
14287
|
+
*/
|
|
14288
|
+
getPacket(seqno: number): Buffer | undefined;
|
|
14289
|
+
/**
|
|
14290
|
+
* Closes the audio stream, releasing all UDP sockets and clearing the backlog.
|
|
14291
|
+
*
|
|
14292
|
+
* Stops sync packet transmission, closes control and data sockets, and
|
|
14293
|
+
* clears the retransmission backlog. Safe to call multiple times.
|
|
14294
|
+
*/
|
|
14295
|
+
close(): void;
|
|
14296
|
+
}
|
|
14297
|
+
//#endregion
|
|
13921
14298
|
//#region src/audioMultiplexer.d.ts
|
|
13922
14299
|
/**
|
|
13923
14300
|
* Streams audio from a single source to multiple AirPlay devices simultaneously.
|
|
@@ -13929,7 +14306,8 @@ declare class Protocol {
|
|
|
13929
14306
|
*
|
|
13930
14307
|
* Timing is maintained by comparing wall-clock elapsed time against the expected
|
|
13931
14308
|
* time based on the number of frames sent. When falling behind, extra packets
|
|
13932
|
-
* are sent to catch up
|
|
14309
|
+
* are sent to catch up. Timing logic is shared with {@link AudioStream} via
|
|
14310
|
+
* {@link streamWithTiming}.
|
|
13933
14311
|
*/
|
|
13934
14312
|
declare class AudioMultiplexer {
|
|
13935
14313
|
#private;
|
|
@@ -13943,8 +14321,9 @@ declare class AudioMultiplexer {
|
|
|
13943
14321
|
* Creates a new {@link AudioStream} for the device's protocol instance.
|
|
13944
14322
|
*
|
|
13945
14323
|
* @param protocol - The AirPlay protocol instance for the target device.
|
|
14324
|
+
* @param options - Optional audio stream configuration (e.g. redundancy count).
|
|
13946
14325
|
*/
|
|
13947
|
-
addTarget(protocol: Protocol): void;
|
|
14326
|
+
addTarget(protocol: Protocol, options?: AudioStreamOptions): void;
|
|
13948
14327
|
/**
|
|
13949
14328
|
* Removes all targets and closes their audio streams.
|
|
13950
14329
|
*/
|
|
@@ -13954,7 +14333,7 @@ declare class AudioMultiplexer {
|
|
|
13954
14333
|
*
|
|
13955
14334
|
* Orchestrates the full lifecycle: setup all streams, prepare (connect UDP,
|
|
13956
14335
|
* FLUSH, start sync), stream audio packets with timing compensation, and
|
|
13957
|
-
* finish (padding
|
|
14336
|
+
* finish (padding and TEARDOWN). On error, all streams are closed.
|
|
13958
14337
|
*
|
|
13959
14338
|
* @param source - Audio source to read PCM frames from.
|
|
13960
14339
|
* @throws Re-throws any error after cleaning up all streams.
|
|
@@ -13962,50 +14341,61 @@ declare class AudioMultiplexer {
|
|
|
13962
14341
|
stream(source: AudioSource): Promise<void>;
|
|
13963
14342
|
}
|
|
13964
14343
|
//#endregion
|
|
13965
|
-
//#region src/
|
|
13966
|
-
/**
|
|
13967
|
-
* AirPlay feature flags as a 64-bit bitmask.
|
|
13968
|
-
*
|
|
13969
|
-
* Each flag represents a capability advertised by AirPlay senders or receivers
|
|
13970
|
-
* in the `features`/`featuresEx` fields of SETUP and /info responses. The lower
|
|
13971
|
-
* 32 bits map to `features`, the upper 32 bits to `featuresEx`.
|
|
13972
|
-
*
|
|
13973
|
-
* Sources: pyatv, Apple framework disassembly (AirPlayReceiver sysInfo_createFeaturesInternal),
|
|
13974
|
-
* https://emanuelecozzi.net/docs/airplay2/features/
|
|
13975
|
-
*/
|
|
13976
|
-
declare const AirPlayFeature: Record<string, bigint>;
|
|
13977
|
-
/**
|
|
13978
|
-
* Feature bitmask advertised when connecting for remote control sessions.
|
|
13979
|
-
*
|
|
13980
|
-
* Includes media control, system pairing, encryption, volume, and
|
|
13981
|
-
* hangdog remote control capabilities.
|
|
13982
|
-
*/
|
|
13983
|
-
declare const SENDER_FEATURES_REMOTE_CONTROL: bigint;
|
|
13984
|
-
/**
|
|
13985
|
-
* Feature bitmask advertised when connecting for audio streaming sessions.
|
|
13986
|
-
*
|
|
13987
|
-
* Extends the remote control features with buffered audio, audio stream
|
|
13988
|
-
* connection setup, metadata control, format negotiation, and PTP
|
|
13989
|
-
* synchronization support.
|
|
13990
|
-
*/
|
|
13991
|
-
declare const SENDER_FEATURES_AUDIO: bigint;
|
|
13992
|
-
/**
|
|
13993
|
-
* Checks whether a feature bitmask contains a specific feature flag.
|
|
13994
|
-
*
|
|
13995
|
-
* @param features - The combined feature bitmask to test.
|
|
13996
|
-
* @param feature - The individual feature flag to check for.
|
|
13997
|
-
* @returns `true` if the feature is present.
|
|
13998
|
-
*/
|
|
13999
|
-
declare const hasFeature: (features: bigint, feature: bigint) => boolean;
|
|
14344
|
+
//#region src/latencyManager.d.ts
|
|
14000
14345
|
/**
|
|
14001
|
-
*
|
|
14346
|
+
* Manages dynamic latency for an audio stream.
|
|
14002
14347
|
*
|
|
14003
|
-
*
|
|
14004
|
-
*
|
|
14005
|
-
|
|
14006
|
-
|
|
14348
|
+
* Usage:
|
|
14349
|
+
* 1. Create with `new LatencyManager(sampleRate)`
|
|
14350
|
+
* 2. Call `getLatency()` to get the current latency in samples
|
|
14351
|
+
* 3. Call `reportSuccess()` after each successful packet
|
|
14352
|
+
* 4. Call `reportGlitch()` when a glitch is detected (packet loss, NACK, late arrival)
|
|
14353
|
+
* 5. The manager automatically adjusts the latency tier
|
|
14354
|
+
*/
|
|
14355
|
+
declare class LatencyManager {
|
|
14356
|
+
#private;
|
|
14357
|
+
/**
|
|
14358
|
+
* Creates a new LatencyManager.
|
|
14359
|
+
*
|
|
14360
|
+
* @param sampleRate - The audio sample rate in Hz (e.g. 44100, 48000).
|
|
14361
|
+
* @param initialTierIndex - Starting tier index (defaults to 0, lowest latency).
|
|
14362
|
+
*/
|
|
14363
|
+
constructor(sampleRate: number, initialTierIndex?: number);
|
|
14364
|
+
/** Current latency tier index (0 = lowest latency, 3 = highest). */
|
|
14365
|
+
get tierIndex(): number;
|
|
14366
|
+
/** Current latency in samples. */
|
|
14367
|
+
get latency(): number;
|
|
14368
|
+
/** Current latency in milliseconds. */
|
|
14369
|
+
get latencyMs(): number;
|
|
14370
|
+
/** Whether the manager is at the maximum latency tier. */
|
|
14371
|
+
get isMaxTier(): boolean;
|
|
14372
|
+
/** Whether the manager is at the minimum latency tier. */
|
|
14373
|
+
get isMinTier(): boolean;
|
|
14374
|
+
/**
|
|
14375
|
+
* Returns the current latency in samples.
|
|
14376
|
+
* Alias for the `latency` getter for use in streaming loops.
|
|
14377
|
+
*/
|
|
14378
|
+
getLatency(): number;
|
|
14379
|
+
/**
|
|
14380
|
+
* Reports a successfully sent and acknowledged packet.
|
|
14381
|
+
* After enough consecutive successes, drops to a lower latency tier.
|
|
14382
|
+
*/
|
|
14383
|
+
reportSuccess(): void;
|
|
14384
|
+
/**
|
|
14385
|
+
* Reports a glitch (packet loss, retransmission request, late arrival).
|
|
14386
|
+
* If enough glitches occur within the time window, increases the latency tier.
|
|
14387
|
+
*/
|
|
14388
|
+
reportGlitch(): void;
|
|
14389
|
+
/**
|
|
14390
|
+
* Returns the recommended RFC 2198 redundancy level based on the current latency tier.
|
|
14391
|
+
* Higher latency tiers (more glitches) recommend more redundancy.
|
|
14392
|
+
*/
|
|
14393
|
+
get recommendedRedundancy(): number;
|
|
14394
|
+
/** Resets the manager to the initial (lowest) latency tier. */
|
|
14395
|
+
reset(): void;
|
|
14396
|
+
}
|
|
14007
14397
|
declare namespace dataStreamMessages_d_exports {
|
|
14008
|
-
export { clientUpdatesConfig, configureConnection, deviceInfo, getExtension, getKeyboardSession, getState, getVolume, getVolumeMuted, modifyOutputContext, notification, playbackQueueRequest, protocol, sendButtonEvent, sendCommand, sendCommandWithPlaybackPosition, sendCommandWithPlaybackRate, sendCommandWithRepeatMode, sendCommandWithShuffleMode, sendCommandWithSkipInterval, sendHIDEvent, sendVirtualTouchEvent, setConnectionState, setConversationDetectionEnabled, setReadyState, setVolume, setVolumeMuted, textInput, wakeDevice };
|
|
14398
|
+
export { adjustVolume, audioFade, clientUpdatesConfig, configureConnection, deviceInfo, getExtension, getKeyboardSession, getState, getVolume, getVolumeMuted, modifyOutputContext, notification, playbackQueueRequest, playbackSessionMigrateBegin, playbackSessionMigrateEnd, protocol, requestGroupSession, sendButtonEvent, sendCommand, sendCommandWithPlaybackPosition, sendCommandWithPlaybackRate, sendCommandWithRepeatMode, sendCommandWithShuffleMode, sendCommandWithSkipInterval, sendCommandWithSleepTimer, sendHIDEvent, sendVirtualTouchEvent, setConnectionState, setConversationDetectionEnabled, setDiscoveryMode, setListeningMode, setReadyState, setVolume, setVolumeMuted, textInput, wakeDevice };
|
|
14009
14399
|
}
|
|
14010
14400
|
/**
|
|
14011
14401
|
* Creates a base ProtocolMessage with a given type and error code.
|
|
@@ -14033,7 +14423,7 @@ declare function protocol(type: ProtocolMessage_Type, errorCode?: ErrorCode_Enum
|
|
|
14033
14423
|
* @param systemEndpointUpdates - Subscribe to system endpoint changes.
|
|
14034
14424
|
* @returns Tuple of [ProtocolMessage, extension descriptor] for sending via DataStream.
|
|
14035
14425
|
*/
|
|
14036
|
-
declare function clientUpdatesConfig(artworkUpdates?: boolean, nowPlayingUpdates?: boolean, volumeUpdates?: boolean, keyboardUpdates?: boolean, outputDeviceUpdates?: boolean, systemEndpointUpdates?: boolean): [ProtocolMessage, DescExtension];
|
|
14426
|
+
declare function clientUpdatesConfig(artworkUpdates?: boolean, nowPlayingUpdates?: boolean, volumeUpdates?: boolean, keyboardUpdates?: boolean, outputDeviceUpdates?: boolean, systemEndpointUpdates?: boolean, subscribedPlayerPaths?: PlayerPath[]): [ProtocolMessage, DescExtension];
|
|
14037
14427
|
/**
|
|
14038
14428
|
* Builds a CONFIGURE_CONNECTION message to set the group ID for this connection.
|
|
14039
14429
|
*
|
|
@@ -14179,6 +14569,14 @@ declare function sendCommandWithRepeatMode(command: Command, repeatMode: RepeatM
|
|
|
14179
14569
|
*/
|
|
14180
14570
|
declare function sendCommand(command: Command, options?: CommandOptions): [ProtocolMessage, DescExtension];
|
|
14181
14571
|
/**
|
|
14572
|
+
* Builds a SEND_COMMAND message with sleep timer options.
|
|
14573
|
+
*
|
|
14574
|
+
* @param seconds - Timer duration in seconds. Use 0 to cancel.
|
|
14575
|
+
* @param stopMode - Stop mode: 0 = stop, 1 = pause, 2 = end of track, 3 = end of queue.
|
|
14576
|
+
* @returns Tuple of [ProtocolMessage, extension descriptor] for sending via DataStream.
|
|
14577
|
+
*/
|
|
14578
|
+
declare function sendCommandWithSleepTimer(seconds: number, stopMode?: number): [ProtocolMessage, DescExtension];
|
|
14579
|
+
/**
|
|
14182
14580
|
* Builds a SEND_VIRTUAL_TOUCH_EVENT message for touchpad simulation.
|
|
14183
14581
|
*
|
|
14184
14582
|
* Simulates touch input on a virtual trackpad, used for gesture-based
|
|
@@ -14244,6 +14642,60 @@ declare function setVolumeMuted(outputDeviceUID: string, isMuted: boolean): [Pro
|
|
|
14244
14642
|
*/
|
|
14245
14643
|
declare function setConversationDetectionEnabled(enabled: boolean, outputDeviceUID: string): [ProtocolMessage, DescExtension];
|
|
14246
14644
|
/**
|
|
14645
|
+
* Builds an ADJUST_VOLUME message for relative volume changes.
|
|
14646
|
+
*
|
|
14647
|
+
* Uses the dedicated AdjustVolumeMessage (extension field 97) for incremental
|
|
14648
|
+
* volume adjustments without needing to know the current volume level.
|
|
14649
|
+
*
|
|
14650
|
+
* @param adjustment - The volume adjustment type (e.g. IncrementSmall, DecrementSmall).
|
|
14651
|
+
* @param outputDeviceUID - UID of the target output device.
|
|
14652
|
+
* @returns Tuple of [ProtocolMessage, extension descriptor] for sending via DataStream.
|
|
14653
|
+
*/
|
|
14654
|
+
declare function adjustVolume(adjustment: AdjustVolumeMessage_Adjustment, outputDeviceUID: string): [ProtocolMessage, DescExtension];
|
|
14655
|
+
/**
|
|
14656
|
+
* Builds an AUDIO_FADE message to trigger a cross-fade between audio sources.
|
|
14657
|
+
*
|
|
14658
|
+
* @param fadeType - The type of audio fade to perform.
|
|
14659
|
+
* @param playerPath - Optional player path to target a specific player.
|
|
14660
|
+
* @returns Tuple of [ProtocolMessage, extension descriptor] for sending via DataStream.
|
|
14661
|
+
*/
|
|
14662
|
+
declare function audioFade(fadeType: number, playerPath?: PlayerPath): [ProtocolMessage, DescExtension];
|
|
14663
|
+
/**
|
|
14664
|
+
* Builds a SET_LISTENING_MODE message to change the audio listening mode on a HomePod.
|
|
14665
|
+
*
|
|
14666
|
+
* @param listeningMode - The listening mode string (e.g. 'Default', 'Vivid', 'LateNight').
|
|
14667
|
+
* @param outputDeviceUID - The output device UID to target.
|
|
14668
|
+
* @returns Tuple of [ProtocolMessage, extension descriptor] for sending via DataStream.
|
|
14669
|
+
*/
|
|
14670
|
+
declare function setListeningMode(listeningMode: string, outputDeviceUID: string): [ProtocolMessage, DescExtension];
|
|
14671
|
+
/**
|
|
14672
|
+
* Builds a SET_DISCOVERY_MODE message to enable or disable device discovery.
|
|
14673
|
+
*
|
|
14674
|
+
* @param mode - The discovery mode to set.
|
|
14675
|
+
* @returns Tuple of [ProtocolMessage, extension descriptor] for sending via DataStream.
|
|
14676
|
+
*/
|
|
14677
|
+
declare function setDiscoveryMode(mode: number): [ProtocolMessage, DescExtension];
|
|
14678
|
+
/**
|
|
14679
|
+
* Builds a REQUEST_GROUP_SESSION message to initiate a SharePlay/group listening session.
|
|
14680
|
+
*
|
|
14681
|
+
* @returns Tuple of [ProtocolMessage, extension descriptor] for sending via DataStream.
|
|
14682
|
+
*/
|
|
14683
|
+
declare function requestGroupSession(): [ProtocolMessage, DescExtension];
|
|
14684
|
+
/**
|
|
14685
|
+
* Builds a PLAYBACK_SESSION_MIGRATE_BEGIN message to start migrating playback to another device.
|
|
14686
|
+
*
|
|
14687
|
+
* @param playerPath - The player path of the session to migrate.
|
|
14688
|
+
* @returns Tuple of [ProtocolMessage, extension descriptor] for sending via DataStream.
|
|
14689
|
+
*/
|
|
14690
|
+
declare function playbackSessionMigrateBegin(playerPath?: PlayerPath): [ProtocolMessage, DescExtension];
|
|
14691
|
+
/**
|
|
14692
|
+
* Builds a PLAYBACK_SESSION_MIGRATE_END message to complete a playback migration.
|
|
14693
|
+
*
|
|
14694
|
+
* @param playerPath - The player path of the migrated session.
|
|
14695
|
+
* @returns Tuple of [ProtocolMessage, extension descriptor] for sending via DataStream.
|
|
14696
|
+
*/
|
|
14697
|
+
declare function playbackSessionMigrateEnd(playerPath?: PlayerPath): [ProtocolMessage, DescExtension];
|
|
14698
|
+
/**
|
|
14247
14699
|
* Builds a WAKE_DEVICE message to wake a sleeping Apple TV or HomePod.
|
|
14248
14700
|
*
|
|
14249
14701
|
* @returns Tuple of [ProtocolMessage, extension descriptor] for sending via DataStream.
|
|
@@ -14261,4 +14713,4 @@ declare function wakeDevice(): [ProtocolMessage, DescExtension];
|
|
|
14261
14713
|
*/
|
|
14262
14714
|
declare function getExtension<Desc extends DescExtension>(message: Extendee<Desc>, extension: Desc): ExtensionValueShape<Desc>;
|
|
14263
14715
|
//#endregion
|
|
14264
|
-
export {
|
|
14716
|
+
export { AudioMultiplexer, AudioStream, type AudioStreamOptions, type AudioStreamStats, ControlStream, DataStream, dataStreamMessages_d_exports as DataStreamMessage, EventStream, type EventStreamEventMap, LatencyManager, Pairing, type PlaybackInfo, index_d_exports as Proto, Protocol, Verify };
|