hugolz / storage_server

Rust storage server with brotli compression
0 stars 1 forks source link

Front end upload video display issue #13

Open Bowarc opened 1 month ago

Bowarc commented 1 month ago

When selecting video to upload, displaying the loaded (not yet uploaded) videos with for self.files.iter().map(Self::view_file) causes the web browser to display the same video multiple times.

I can fix it by adding .rev() after .iter() which reverses the iterator but this isn't a solution. This bug can also be fixed by displaying an image between every videos

I think this bug is linked to how the web browser refreshes the video placements and fails to realise that the second (different) video isn't under the first one

Could this bug be fixed by adding delay ?

Bowarc commented 1 month ago

It's a dom issue, the html seems good but looking at the dom directly, it seems to have the same video 2 times