25 Commits

Author SHA1 Message Date
david_bai 8627544946 chore:Exit the room even if it is in transit 2025-09-13 20:01:02 +08:00
david_bai 0747898f3c chore:Use English notes 2025-09-08 00:38:59 +08:00
david_bai 230a06b3fb fileSender code splitting 2025-09-07 22:52:59 +08:00
david_bai 99c927f5c7 clear up code 2025-09-07 21:21:43 +08:00
david_bai e385389e1d Fix the out-of-order file transfer issue for files saved in memory 2025-09-06 22:53:54 +08:00
david_bai 81c2b204f3 It is found that the order of data packets received by Firefox is disordered 2025-09-05 22:58:56 +08:00
david_bai ec6a18dfc0 fix:Adapting to Firefox browser, not yet completed 2025-09-05 00:19:33 +08:00
david_bai 5af2e8db37 chore:Use English comments instead of Chinese 2025-08-31 23:34:52 +08:00
david_bai 1aa738425f chore:remove debug code 2025-08-31 22:22:00 +08:00
david_bai 0562e8a3a8 chore(code):Use the speedCalculator to estimate network quality 2025-08-31 22:09:23 +08:00
david_bai c0317211e7 chore(code):add optimized code, need further debugging 2025-08-31 20:10:31 +08:00
david_bai 7f33064109 chore(code):retryDataSend Add return value,fileSender Remove unnecessary variables. 2025-08-30 23:49:09 +08:00
david_bai ad4a951525 chore:remove debug code 2025-08-30 00:37:32 +08:00
david_bai 4437c70257 fix:Temporarily optimized the speed issue on the mobile 2025-08-30 00:06:59 +08:00
david_bai b38ef84bca chore:fileSender code has been simplified and adjusted 2025-08-29 23:39:35 +08:00
david_bai 9b6e6559fe fix:Temporarily optimized the speed issue on the mobile 2025-08-29 22:51:10 +08:00
david_bai bb21c90a4e fix:Fix the incomplete cleanup issue when the receiver exits the room 2025-08-17 23:56:09 +08:00
david_bai 34d1897093 Fix the issue where the sender and receiver (without requesting existing files) have inconsistent states in resumeable file transfer with broken connections 2025-07-21 23:06:32 +08:00
david_bai 27cb5c3be8 Fix transfer status in resume state 2025-07-21 00:02:51 +08:00
david_bai 522f567fb4 feat(transfer): implement resumable file uploads
This commit introduces support for resumable file transfers when using the 'Save to Directory' feature.

Key changes:
- The WebRTC protocol is updated to include an 'offset' in the 'fileRequest' message.
- 'FileReceiver' now checks for partially downloaded files in the selected directory. If a partial file is found, it requests to resume the transfer from the offset of the existing file size. It uses '{ keepExistingData: true }' to append to the file.
- 'FileSender' now handles requests with an 'offset' and uses 'file.slice(offset)' to send only the remaining data.
- Progress calculation is adjusted to reflect the resumed download state.

This provides a more robust user experience for large file transfers, allowing recovery from interruptions like network loss or accidental tab closure.
2025-07-16 22:50:55 +08:00
david_bai e62a8f9573 translate frontend/hooks & frontend/lib 2025-06-22 10:05:00 +08:00
david_bai 341a392c20 重构了,待测试 2025-06-09 21:32:43 +08:00
david_bai 27ed495571 移动文件 2025-06-07 16:10:45 +08:00
david_bai df04f37730 更新导入;自动格式化 2025-06-03 22:37:05 +08:00
david_bai 4d3eb551c7 前端备份 2025-05-23 22:41:56 +08:00