ytmusic_api_unofficial
Version:
A simple API to get music from YouTube Music
52 lines • 1.11 kB
TypeScript
export default class Player {
/**
* The url of the player content
*/
url: () => Promise<string>;
/**
* The url of the player content decoded
*/
urlDecoded: string;
/**
* The type of the content (audio/mp4, audio/webm, ...)
*/
type: string;
/**
* The bitrate of the player content
*/
bitrate: number;
/**
* The average bitrate of the music
*/
averageBitrate: number;
/**
* The content length of the music
*/
contentLength: number;
/**
* The quality of the music
*/
quality: string;
/**
* The audio rate of the music (44100, 48000, ...)
*/
audioRate: number;
/**
* The audio channels of the music (1='mono', 2='stereo', ...)
*/
audioChannels: number;
/**
* The duration of the music in milliseconds
*/
DurationMs: number;
/**
* The dB of the music
*/
dB: number;
/**
* The expire date of the url
*/
expireDate: Date;
constructor(data: any, decode?: boolean);
}
//# sourceMappingURL=Player.d.ts.map