How would you implement VLC Wi-Fi file sharing?
I really like how simple it is to share files between an iPhone and Windows PC using VLC.
I would like to implement something similar in my Audiobook player app.
How it works in VLC: - You enable Sharing via Wi-Fi in the VLC App - The App starts a HTTP server on your local network - On your PC, You navigate to the IP address of your iPhone (`192.168.0.X`) - You can drag and drop files - The files get uploaded to your iPhone, into the VLC App Sandbox
Ideally, besides uploading files, I would like to implement a file viewer, where you can view the files within the App, create folders, navigate up and down the folder tree. (I have already implemented this within the native app, but I would like to do it on the HTML side as well).
However, **I'm a bit lost and would appreciate some input on where to get started/what direction to go in**.
I'm not asking for code examples/tutorials, but rather some help on how to break down the problem into solvable steps.
----
Right now, I got to [Embassy](https://github.com/envoy/Embassy) and managed to start an HTTP server on the iPhone, and serve static content.
1. I guess I could modify this static content, to serve an HTML file instead.
2. I could pass in data from Swift to the JS part of the HTML file, to render the initial tree view. (Not quite sure how to do this, since all material I find assumes a WebView is used. But in my case it's an HTML file that is served by the iPhone, and rendered by the Windows PC)
3. Not entirely sure what I would use to render the folder structure. I can probably find some minimal HTML+CSS that does this.
4. For buttons like "New folder" and "Delete file", I could call out to Swift from JS.
5. For multi-part file upload, I'm a bit lost what to do.
----
Could someone give me some pointers? Am I heading in the right direction?