Examples of File Transfer between peers #1313
-
I see there are some examples for media transfer, and files are ultimately a type of media. Are there any examples of sending files to/from peers? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I think you can use data channel for that prepose, but you have to implement some type kind of mechanism to properly reconstruct the file, we might send file in the chunk if needed . |
Beta Was this translation helpful? Give feedback.
-
Files are not a type of media in the sense of real-time media (files are transferred as fast as possible while media is streamed at media bitrate). As @Nikhil2206 said, you have to transfer a file over a reliable and ordered data channel, and it must be fragmented into messages and reassembled at reception. You should use the |
Beta Was this translation helpful? Give feedback.
-
thank you both! |
Beta Was this translation helpful? Give feedback.
I think you can use data channel for that prepose, but you have to implement some type kind of mechanism to properly reconstruct the file, we might send file in the chunk if needed .