ytmusic_api_unofficial
Version:
A simple API to get music from YouTube Music
21 lines • 803 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const decode_1 = require("../utils/decode");
class Player {
constructor(data, decode = false) {
this.url = () => (0, decode_1.getUrlDecode)(data);
this.urlDecoded = data.urlDecoded;
this.type = data.mimeType;
this.bitrate = data.bitrate;
this.averageBitrate = data.averageBitrate;
this.contentLength = Number(data.contentLength);
this.quality = data.quality;
this.audioRate = Number(data.audioSampleRate);
this.audioChannels = data.audioChannels;
this.DurationMs = Number(data.approxDurationMs);
this.dB = data.loudnessDb;
this.expireDate = data.expireDate;
}
}
exports.default = Player;
//# sourceMappingURL=Player.js.map