Files
konowebcodecs/packages/util/src/utils/errors.js
2022-09-22 13:06:44 +08:00

12 lines
382 B
JavaScript

const CREATE_FFMPEG_CORE_IS_NOT_DEFINED = (corePath) => (`
createFFmpegCore is not defined. ffmpeg.wasm is unable to find createFFmpegCore after loading ffmpeg-core.js from ${corePath}. Use another URL when calling createFFmpeg():
const ffmpeg = createFFmpeg({
corePath: 'http://localhost:3000/ffmpeg-core.js',
});
`);
module.exports = {
CREATE_FFMPEG_CORE_IS_NOT_DEFINED,
};