wasm\emscripten fetch api for http

This forum is about all development around libVLC.
compmasterandrei
New Cone
New Cone
Posts: 2
Joined: 09 Mar 2024 13:30

wasm\emscripten fetch api for http

Postby compmasterandrei » 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?
ps: thanks for wonderful player and lib, using it for ages and looking forward to use its wasm build for my pet projects. Many thanks!!!

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 7 guests