Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

208
Views
Webcodecs VideoDecoder undefined

I tried to use webodecs in my react project. But it doesn't seem to work.

Here is my debug code:

import logo from './logo.svg';
import './App.css';
// import Editor from './components/pages/editor/editor';
import { useEffect } from 'react';

function App() {
  useEffect(() => {
    console.log(window.VideoDecoder);
  });

  return (
    <div></div>
    // <Editor/>
  );
}

export default App;

Then I opened http://localhost:port/, I got ƒ VideoDecoder() { [native code] } in console. But if I opened http://ip:port/, I would get undefined in console.

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

The VideoDecoder interface is only available in secure contexts

[Exposed=(Window,DedicatedWorker), SecureContext]

You must serve your page from such a secure context, i.e from https:// here.

about 4 years ago · Santiago Gelvez Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!