flagpole
Version:
Simple and fast DOM integration, headless or headful browser, and REST API testing framework.
22 lines • 716 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.fetchWithFfprobe = void 0;
const httpresponse_1 = require("../httpresponse");
const media_probe_1 = require("media-probe");
const fetchWithFfprobe = (request, opts) => {
return new Promise((resolve, reject) => {
if (!request.uri) {
return reject("No uri");
}
try {
media_probe_1.ffprobe(request.uri, opts).then((data) => {
resolve(httpresponse_1.HttpResponse.fromJsonData(request, data));
});
}
catch (err) {
reject(err);
}
});
};
exports.fetchWithFfprobe = fetchWithFfprobe;
//# sourceMappingURL=ffprobe.js.map