Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to get a mediastream in Android
VideoCapturer capturer = VideoCapturer.create("");
MediaStream mediaStream = peerConnectionFactory.createLocalMediaStream("APPEAR");
VideoSource videoSource = this.peerConnectionFactory.createVideoSource(capturer, new MediaConstraints());
VideoTrack videoTrack = this.peerConnectionFactory.createVideoTrack("APPEARv0", videoSource);
videoTrack.addRenderer(new VideoRenderer());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.