jscodec / jsvpx

Full Javascript implementation of libvpx vp8 decoder.
MIT License
25 stars 6 forks source link

ogv.js integration class doesn't work in Worker mode #4

Closed bvibber closed 7 years ago

bvibber commented 7 years ago

The ogv.js integration sets the global state for the class on the 'window' variable which fails if ogv.js is loading the module into a background Worker. Should check if running in worker and use the appropriate global instead.