zhw2590582/FlvPlayer

Source code for decoder.worker

talltyler opened this issue · 6 comments

Is the source for the decoder.worker files available?

Of course!

Please post a link when you do. I would love to see how this works.

Sorry, I don't understand what you need. Do you need the source code of decoder.worker?
It comes from tinyh264

Thank you for this information about this being based on tinyh264, that is good to know I didn't see information about this in any of the documentation. But how are you compiling this project? Can you include the build scrips or commands that you are using?

I just compiled the wasm file to base64 for convenience. Actually you don't need to do this.
h264bsd and tinyh264 both provide examples for reference.

const wasm = fs.readFileSync(__dirname + '/tinyh264.wasm', 'base64');
const dataUrl = 'data:application/octet-stream;base64,' + wasm;

Thank you all of this has helped, I think we can close this issue.