Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.webm video merge failed #100

Open
llk2yq opened this issue Aug 16, 2023 · 0 comments
Open

.webm video merge failed #100

llk2yq opened this issue Aug 16, 2023 · 0 comments

Comments

@llk2yq
Copy link

llk2yq commented Aug 16, 2023

let _audio = document.querySelector("#my-audio"); // ../assets/audio.mp3
let _video = document.querySelector("#my-video"); // https://my-host.com/video-name.webm
merger.addMediaElement("_audio", _audio, {});
merger.addMediaElement("_video", _video, {
    mute: true,
});
merger.start();
let outputElement = document.querySelector<HTMLVideoElement>("#output");
outputElement.srcObject = merger.result;
outputElement.autoplay = true;

The code above doesnt work, the result video was always loading.

When I changed the video path to https://my-host.com/another.mp4, it merged normally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant