@basmilius/apple-encoding 0.7.1 → 0.8.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/chunk-0Lt9GpW0.mjs +1 -0
- package/dist/index.d.mts +231 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +9 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +10 -9
- package/dist/daap.d.ts +0 -95
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -1687
- package/dist/ntp.d.ts +0 -17
- package/dist/opack.d.ts +0 -23
- package/dist/plist.d.ts +0 -2
- package/dist/rtsp.d.ts +0 -16
- package/dist/tlv8.d.ts +0 -49
package/dist/daap.d.ts
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
export declare const ContentCode: {
|
|
2
|
-
readonly mlit: "dmap.listingitem";
|
|
3
|
-
readonly mlcl: "dmap.listing";
|
|
4
|
-
readonly msrv: "dmap.serverinforesponse";
|
|
5
|
-
readonly mcon: "dmap.container";
|
|
6
|
-
readonly miid: "dmap.itemid";
|
|
7
|
-
readonly minm: "dmap.itemname";
|
|
8
|
-
readonly mikd: "dmap.itemkind";
|
|
9
|
-
readonly mper: "dmap.persistentid";
|
|
10
|
-
readonly asal: "daap.songalbum";
|
|
11
|
-
readonly asar: "daap.songartist";
|
|
12
|
-
readonly asaa: "daap.songalbumartist";
|
|
13
|
-
readonly ascp: "daap.songcomposer";
|
|
14
|
-
readonly asgn: "daap.songgenre";
|
|
15
|
-
readonly astm: "daap.songtime";
|
|
16
|
-
readonly astn: "daap.songtracknumber";
|
|
17
|
-
readonly asdc: "daap.songdisccount";
|
|
18
|
-
readonly asdn: "daap.songdiscnumber";
|
|
19
|
-
readonly astc: "daap.songtrackcount";
|
|
20
|
-
readonly asyr: "daap.songyear";
|
|
21
|
-
readonly asbr: "daap.songbitrate";
|
|
22
|
-
readonly assr: "daap.songsamplerate";
|
|
23
|
-
readonly assz: "daap.songsize";
|
|
24
|
-
readonly caps: "daap.songplaystatus";
|
|
25
|
-
readonly cash: "daap.songshufflestate";
|
|
26
|
-
readonly carp: "daap.songrepeatstate";
|
|
27
|
-
readonly cavs: "daap.songvisiblestate";
|
|
28
|
-
readonly aePP: "com.apple.itunes.photo-properties";
|
|
29
|
-
};
|
|
30
|
-
export declare const TagType: {
|
|
31
|
-
readonly mlit: 12;
|
|
32
|
-
readonly mlcl: 12;
|
|
33
|
-
readonly mcon: 12;
|
|
34
|
-
readonly msrv: 12;
|
|
35
|
-
readonly miid: 5;
|
|
36
|
-
readonly minm: 9;
|
|
37
|
-
readonly mikd: 1;
|
|
38
|
-
readonly mper: 7;
|
|
39
|
-
readonly asal: 9;
|
|
40
|
-
readonly asar: 9;
|
|
41
|
-
readonly asaa: 9;
|
|
42
|
-
readonly ascp: 9;
|
|
43
|
-
readonly asgn: 9;
|
|
44
|
-
readonly astm: 5;
|
|
45
|
-
readonly astn: 3;
|
|
46
|
-
readonly asdc: 3;
|
|
47
|
-
readonly asdn: 3;
|
|
48
|
-
readonly astc: 3;
|
|
49
|
-
readonly asyr: 3;
|
|
50
|
-
readonly asbr: 3;
|
|
51
|
-
readonly assr: 5;
|
|
52
|
-
readonly assz: 5;
|
|
53
|
-
readonly caps: 1;
|
|
54
|
-
readonly cash: 1;
|
|
55
|
-
readonly carp: 1;
|
|
56
|
-
readonly cavs: 1;
|
|
57
|
-
readonly aePP: 9;
|
|
58
|
-
};
|
|
59
|
-
export declare function encodeTag(tag: string, value: Buffer | string | number | bigint): Buffer;
|
|
60
|
-
export declare function encodeContainer(tag: string, content: Buffer): Buffer;
|
|
61
|
-
export declare function encodePlaybackStatus(status: PlaybackStatus): Buffer;
|
|
62
|
-
export declare function encodeTagWithSize(tag: string, value: number, byteSize: 1 | 2 | 4 | 8): Buffer;
|
|
63
|
-
export declare function encodeTrackMetadata(metadata: TrackMetadata): Buffer;
|
|
64
|
-
export declare function decode(buffer: Buffer): DecodedTag[];
|
|
65
|
-
export declare function decodeTag(buffer: Buffer): [DecodedTag, Buffer] | null;
|
|
66
|
-
export declare function decodeToObject(buffer: Buffer): Record<string, unknown>;
|
|
67
|
-
export declare function decodeTrackMetadata(buffer: Buffer): TrackMetadata;
|
|
68
|
-
export type ContentCodeKey = keyof typeof ContentCode;
|
|
69
|
-
export type DecodedTag = {
|
|
70
|
-
readonly tag: string;
|
|
71
|
-
readonly length: number;
|
|
72
|
-
readonly value: Buffer;
|
|
73
|
-
};
|
|
74
|
-
export type PlaybackStatus = {
|
|
75
|
-
readonly playing?: boolean;
|
|
76
|
-
readonly shuffle?: boolean;
|
|
77
|
-
readonly repeat?: "off" | "one" | "all";
|
|
78
|
-
};
|
|
79
|
-
export type TrackMetadata = {
|
|
80
|
-
readonly title?: string;
|
|
81
|
-
readonly artist?: string;
|
|
82
|
-
readonly albumArtist?: string;
|
|
83
|
-
readonly album?: string;
|
|
84
|
-
readonly composer?: string;
|
|
85
|
-
readonly genre?: string;
|
|
86
|
-
readonly duration?: number;
|
|
87
|
-
readonly trackNumber?: number;
|
|
88
|
-
readonly trackCount?: number;
|
|
89
|
-
readonly discNumber?: number;
|
|
90
|
-
readonly discCount?: number;
|
|
91
|
-
readonly year?: number;
|
|
92
|
-
readonly bitrate?: number;
|
|
93
|
-
readonly sampleRate?: number;
|
|
94
|
-
readonly size?: number;
|
|
95
|
-
};
|