libde265.js
libde265.js copied to clipboard
Decode data which from websocket will be very slow
I use websocket to send and receive H265 frames. Monitor the onmessage event, when frame comes, function decode will be called. But in this way, the video has a long latency, and data sending also be blocked. How to fix it? Do I need to use webworker to get smooth video?
I think you need to use webworker.I tried to separate the project into four parts : player、dercoder、downloader、render,but there is a lot of work to do. Reference:https://github.com/sonysuqin/WasmVideoPlayer