Last active
August 29, 2015 14:18
-
-
Save dagingaa/d1b4903d390b8c469285 to your computer and use it in GitHub Desktop.
How to get a mediastream in Android
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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()); | |
| mediaStream.addTrack(videoTrack); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment