InputElement.addEventListener("change", handleFile, false) _libvlc_media_player_set_media(media_player_ptr, media_ptr) Let media_ptr = _libvlc_media_new_location(path_ptr)
Let path_ptr = Module.allocateUTF8("emjsfile://" + id) Let inputElement = document.getElementById("fpicker_btn") It has the vlc_access_file array as a property Let media_player_ptr = _libvlc_media_player_new(instance) This access plugin will be able to receive a File object handle in the input thread, and read into buffers in linear memory with the file content while keeping track of the offset. Emscripten: add js File access plugin Emscripten currently does not support picking a file from the DOM with the element, and reading it from a webassembly application.