This commit is contained in:
skdhg committed 2023-07-19 20:22:06 +05:45
1 parent 64224cb2ae
commit b48814e7d2
10 files changed
+577 -236

No files matched your search

+6
View File
@@ -16,6 +16,8 @@ export interface ProbeResult {
nFrames: number
/** The approximate duration of this media in seconds */
duration: number
/** The metadata object */
metadata: Array<MetadataField>
}
export const enum CodecType {
UNKNOWN = 0,
@@ -85,4 +87,8 @@ export const enum CodecType {
ALAC = 8195,
TTA = 8196
}
export interface MetadataField {
name: string
value: string
}
export function probe(data: Buffer): ProbeResult