simplewebrtc / SimpleWebRTC

Simplest WebRTC ever
Other
4.65k stars 1.19k forks source link

Add additional video stream #279

Open charliegreen opened 9 years ago

charliegreen commented 9 years ago

Hello! On an Android tablet, I have a live video stream (currently H.264, but this can be anything an Android MediaCodec can generate) that I would like to transmit over WebRTC and display in a peer's desktop browser. Currently, the best idea I have is to repeatedly send chunks as base64-encoded channel messages, then hope I can render them with Broadway or some similar software; I'm certain this is not at all the best way to go about this. Would it be possible to instead create an extra WebRTC video channel, using SimpleWebRTC, and stream data through that to an HTML5 video element? How exactly would I go about doing that? Thank you!

charliegreen commented 9 years ago

Would it perhaps be possible to use the screensharing stream for this somehow?