0
votes

I create a WebRTC with simple peer. I need to capture stream from video element and send it to peers. I use vidEl.captureStream() to get Media Stream from video element and send it to other peer. It's working but only audio and video is blackscreen(not something is display). [Testing] I create another video element on same origin of first video element and use captureStream() and test setObject with Media Stream captured and it's working. How to send MediaStream from video.captureStream() to new peer through WebRTC and display video from remote peer. Sorry for bad english.

2

2 Answers

0
votes

https://webrtc.github.io/samples/src/content/capture/video-pc/ This sample does'nt work on chrome, edge but fire is worked. I don't know why.

0
votes