wasm\emscripten fetch api for http
Posted: 09 Mar 2024 13:46
Hi all. I am new to vlc development, and recently discovered that it has more or less working wasm build, but current wasm build can't read http(s) and I want try to contribute that utilizing emscripten fetch api. I found that there is such concept as access modules, code structure and purpose of methods and structures seems to be clear, also I found https://code.videolan.org/videolan/vlc/ ... emjsfile.c as a good entry point. But I have couple of questions:
- how correct access module is selected ? First one that does not return an error ? How I can make emjsfile access module to become a module that will handle http as well?
- seems like all access module methods are blocking, and it will be fine to do blocking http range requests to read file parts using fetch, right?