zer0net / ifs-master

IFS Master
http://127.0.0.1:43110/12MVkvYGcRW6u2NYbpfwVad1oQeyG4s9Er/
5 stars 1 forks source link

Piecemap: Distinct loaded, not loaded, or not even there: Show some info overlay AND always show the file chunks row with some info there #154

Closed haschimoto closed 6 years ago

haschimoto commented 6 years ago

First time clicking a Big File like Video shows this: snap 2018-02-27 at 23 04 17

Even if showing 2 peers, it does not show any chunk information, while it seems not having the piecemap yet.

If one waits long enough (like 1-2 minutes some times), it does start to show the pieces loading bar and the video starts to autoplay: snap 2018-02-27 at 23 07 12

In the meantime until that happens, I suggest instead of showing the PLAY button on black screen only, display some overlay on that video like "Fetching Video Information, that can take a while" and have something spinning, so it doesnt look lifeless...

haschimoto commented 6 years ago

after a complete reload, the page looks different, now showing the EXTRA file chunks info ROW: snap 2018-02-27 at 23 10 41

Maybe the first time when there is no piecemap yet, it should STILL SHOW THE ROW under size and say: "Fetching piecemap information..." with the "..." animated and if possible updating that row to "FETCHED" and then replacing it with the chunk information without reloading the whole page.

dnelband commented 6 years ago

is this solution good? i've placed it between the chunk info bar and the media player

haschimoto commented 6 years ago

please ALWAYS show the "file chunks" row. Then you need to check if it even makes sense, like if the file is SUPERSMALL or even OLD so it doesnt have piecemap... then just show the ROW STILL ALWAYS, but if piecmap is loaded show that or if no piecemap needed, show "single file" or something instead.

currently it looks like this, which is wrong: snap 2018-03-05 at 14 46 37

haschimoto commented 6 years ago

already has the piecemap(?), but still shows it is loading the piecemap instead of loading first chunk: snap 2018-03-05 at 14 55 01

haschimoto commented 6 years ago

snap 2018-03-05 at 14 56 27

dnelband commented 6 years ago

1 - try to update the site because the "fetching piecemap information" shouldn't appear in item's with non big files / items with pieces loaded, i've signed + published a couple of times again. 2 - so instead of removing that line it should be replaced with "piecemap ready" or "single file" where there are no chunks? i'm not sure i understood what you meant