Skip to content

Where is defined fetchFile? #864

Open
@lommez

Description

@lommez

I'm using version 12.15 and in my code here is what i'm doing:

In my _Layout.cshtml page i have add the scripts:

<script src="~/ffmpeg-core/umd/ffmpeg-core.min.js"></script>
<script src="~/ffmpeg/umd/ffmpeg.min.js"></script>

<script>
document.addEventListener('DOMContentLoaded', async () => {
    if (typeof FFmpegWASM?.FFmpeg !== "function") {
        console.log("FFmpeg not available");
        return;
    }

    try {
        const ffmpeg = new FFmpegWASM.FFmpeg();
        await ffmpeg.load({
            log: true,
            corePath: '~/ffmpeg-core/umd/ffmpeg-core.min.js'
        });
    }
    catch (e) {
        console.log(e);
    }
}
</script>

But i didnt find where fetchFile is defined.
Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions