Jump to content
  • 0

How to select a canvas as a stream source?


Guillaume Lecanu
 Share

Question

Hello,

The class WebRTCAdaptor constructor seems to require a localVideoId set to be a video element.

I would like to use a canvas as a stream source, how can I proceed please?

I've tried to manually change the WebRTCAdaptor.localVideo to the canvas.captureStream(30) without success


Regards,

Enterprise Edition 1.90
Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0
Hi Guillaume,

Sorry for my late response. captureStream seems like the correct way to do it. You can first create a stream then close the video connection and then connect your video source from captureStream. I hope you have already solved your problem but if not please feel free to contact me.

Best,
Asim

On Wednesday, March 25, 2020 at 6:22:21 PM UTC+3, Guillaume Lecanu wrote:
Hello,

The class WebRTCAdaptor constructor seems to require a localVideoId set to be a video element.

I would like to use a canvas as a stream source, how can I proceed please?

I've tried to manually change the WebRTCAdaptor.localVideo to the canvas.captureStream(30) without success


Regards,

Enterprise Edition 1.90
Link to comment
Share on other sites

 Share

×
×
  • Create New...