Closed milkv closed 4 years ago
Hey, thank you for the interest in the lib, yes DecoderAsWorker is unfinished. I really didn't have much time to spend on this lib, so PRs are welcome. Basically the same interface must be exposed as the nonworker:
constructor, decode
and call onPictureDecoded
, example implementation found:
https://github.com/mbebenita/Broadway/blob/master/Player/Player.js#L140
Additionally this should be exposed as an option in the player, because when resources are limited single window without worker can perform better.|
I will try to look into it soon
Hey, thank you for the interest in the lib, yes DecoderAsWorker is unfinished. I really didn't have much time to spend on this lib, so PRs are welcome. Basically the same interface must be exposed as the nonworker: constructor,
decode
and callonPictureDecoded
, example implementation found: https://github.com/mbebenita/Broadway/blob/master/Player/Player.js#L140Additionally this should be exposed as an option in the player, because when resources are limited single window without worker can perform better.|
I will try to look into it soon
don't know how to complete DecoderAsWorker.js, I hope you can help me with it, thank you
I will look into it, hopefully this week if have the time.
Finally done: see branch https://github.com/matijagaspar/ws-avc-player/tree/1.0.0-beta1
the condition for the worker to work (currently) is to have the Decoder.js
file in the same url dir as the WSAvcPlayer.js
. ~avc.wasm
also needs to be there.~(not needed)
How to use DecoderAsWorker? Can you finish it?