"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getHLS = exports.getAllFiles = exports.getAllPrivacies = void 0;
function getAllPrivacies() {
    return [1, 4, 3, 2];
}
exports.getAllPrivacies = getAllPrivacies;
function getAllFiles(video) {
    const files = video.files;
    const hls = getHLS(video);
    if (hls)
        return files.concat(hls.files);
    return files;
}
exports.getAllFiles = getAllFiles;
function getHLS(video) {
    return video.streamingPlaylists.find(p => p.type === 1);
}
exports.getHLS = getHLS;
//# sourceMappingURL=common.js.map