←back to thread

292 points nexo-v1 | 3 comments | | HN request time: 0.656s | source
Show context
mg ◴[] No.44063073[source]
I wonder if one could build this in HTML, so there is no need to install anything.

On both iOS and Android, HTML can play videos and mp3s while the screen is turned off. So maybe it is possible?

replies(4): >>44063123 #>>44063233 #>>44063377 #>>44065828 #
__jonas ◴[] No.44063123[source]
They specifically ditched react-native because of their requirements regarding file system traversal, so this is definitely not something that could have been done in-browser.
replies(1): >>44063305 #
1. mg ◴[] No.44063305[source]
Traversing local directories is supported via the File System Access API in browsers these days:

https://stackoverflow.com/questions/64283711

It works nicely in Chrome on the desktop and on Android. Not sure how the situation is on iOS.

replies(1): >>44063529 #
2. miramba ◴[] No.44063529[source]
But unfortunately not on Safari respectively the iOS webview, which would have been mandatory for the author to use. If I am wrong, I‘d gladly take a solution. I think this is one of the main problems for PWAs: No good , platform-independent way to access the local file system. As in „pick once, access forever“.

Edit: https://caniuse.com/native-filesystem-api

Edit2: Just a few posts down: https://webamp.org/

replies(1): >>44063875 #
3. mg ◴[] No.44063875[source]
I see.

That's a pretty big argument to go with an Android phone.

Being able to write your own tools in HTML is so nice.