Skip to content

"InvalidStateError: Canvas has no frame" when rendering in Safari #62

@billnye2

Description

@billnye2

Hello,

First off really great library. I'm sure this took a load of time to make and it's super cool to render videos in the browser. I've run into an issue when running the render function in Safari 17.3.1 macOS 14.3.1.

The error is: export error InvalidStateError: Canvas has no frame and it appears to occur from a VideoFrame object.

Any idea what could be causing the issue? Does it only work in super up-to-date versions of Safari or macOS?

Thank you for your time.

EDIT: I believe it's this line of code where the error stems from

const videoFrame = new VideoFrame(renderer.canvas, {

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions