w3c / webcodecs

WebCodecs is a flexible web API for encoding and decoding audio and video.
https://w3c.github.io/webcodecs/
Other
1k stars 137 forks source link

VideoDecoder is not defined #514

Closed badcode06 closed 2 years ago

badcode06 commented 2 years ago

Hi all. I have just cloned the repo and then created a local server. when I try to run the mp4-decode sample I got the following error:

Uncaught ReferenceError: VideoDecoder is not defined
    at demux_decode_worker.js:27:17

so what might be the problem?

dalecurtis commented 2 years ago

Are you serving the page from a secure context or from localhost? What browser version are you using?

badcode06 commented 2 years ago

using https solved the problem. thanks.