-
-
Notifications
You must be signed in to change notification settings - Fork 972
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can i send a stream other then video & voice? #81
Comments
Have you tried sending the chunks over an RTC data stream? |
@contra no, i haven't tried that yet, not sure how i would handle back pressure & queuing and also larger files I want to have the RTC data stream more as a communication layer and be able to send a blob in a separate stream that can handle backpressure and is also sent it in order. |
@jimmywarting simple-peer exposes data channels as a duplex stream so it should handle your case (back pressure). You can open as many data channels as you want, one for files and one for communication. |
On second look the API for creating multiple data channels seems a little tricky to use. @feross How do you feel about making multiple data channels part of the API? |
@jimmywarting The @contra I'm open to supporting multiple data channels as part of the API if we can do it in a backwards-compatible way. There was discussion about this before in #19. |
Chrome v52 brings ReadableStream constructor to the table. It would be cool if it would be possible to send a blob/file as a readableStream. I have written a blob stream reader recently. And now i want to send it over webrtc. (from browser to the server - using electron-webrtc)
There is also this alternative blob reader but it uses node's stream
The text was updated successfully, but these errors were encountered: