Skip to content

image "error" event does not work on OBS but it does work on regular chrome #83

@fabricioanciaes

Description

@fabricioanciaes

Tried to do a simple slideshow that I could use as a browser source on my stream. It would show every image within a folder, it would keep looping until it tries to load an image that does not exist, then goes back to the first one.

Chrome does show file not found error for local images:
image

I used an eventListener to look for when this happens:

selector.img.addEventListener("error", function () {
        console.log("error");
    });

And it works just as intended, it goes back to first image, no problems. Except when using BrowserSource. It goes to the last image but it won't fire the image "error" event.

Also, logging in with the remote debugger on OBS does not log any file not found
image
I've used both "load" and "error", but only "load" seems to work. Was this purposefully removed or is it unintended?

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