webrtc / samples

WebRTC Web demos and samples
https://webrtc.github.io/samples
BSD 3-Clause "New" or "Revised" License
14k stars 5.71k forks source link

Importing video/images over video stream #507

Closed joshterrill closed 9 years ago

joshterrill commented 9 years ago

Is there any way to take a video stream and cast an image or video over it?

KaptenJansson commented 9 years ago

Do you mean you want to inject it in the video stream or just overlaying it on top of a video element? Easiest way to inject it to actually to use some virtual camera software which can combine the input from cameras, video/image files, screen capture etc into one stream. E.g. xsplit broadcaster.

Another approach is that you could draw the video stream and any other image or video on top of a canvas and render that.

samdutton commented 9 years ago

simpl.info/alpha shows overlaying videos (more information here http://updates.html5rocks.com/2013/07/Alpha-transparency-in-Chrome-video ).

On 20 April 2015 at 10:30, Christoffer Jansson notifications@github.com wrote:

Do you mean you want to inject it in the video stream or just overlaying it on top of a video element? Easiest way to do that is actually using some virtual camera software which can combine the input from cameras, video/image files, screen capture etc into one stream. E.g. xsplit broadcaster.

Another approach is that you could draw the video stream and any other image or video on top of a canvas and render that.

— Reply to this email directly or view it on GitHub https://github.com/webrtc/samples/issues/507#issuecomment-94406861.

joshterrill commented 9 years ago

Yes, this is exactly what I'm looking for thanks @samdutton