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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...