title: Local Video Renderer in Android WebRTC
body: <p>I am using this library: <a href="https://bintray.com/google/webrtc/google-webrtc" rel="noreferrer">https://bintray.com/google/webrtc/google-webrtc</a></p>
  
  <p>What I want to achieve (at least, at the beginning of my project) is render video locally. I am using this tutorial (which is the only one around the Internet) <a href="https://vivekc.xyz/getting-started-with-webrtc-for-android-daab1e268ff4" rel="noreferrer">https://vivekc.xyz/getting-started-with-webrtc-for-android-daab1e268ff4</a>. Unfortunately, the last line of code is not up-to-date anymore. The constructor needs a callback which I have no idea how to implement:</p>
  
  <p><code>localVideoTrack.addRenderer(new VideoRenderer(i420Frame -&gt; {
              // no idea what to put here
          }));</code></p>
  
  <p>My code is exactly the same as in the posted tutorial. This is the very first step to make familiar with <strong>WebRTC</strong> technology in Android which I cannot figure out. My camera is capturing the video because I can see it in my log:</p>
  
  <p><code>I/org.webrtc.Logging: CameraStatistics: Camera fps: 28.</code></p>
  
  <p>The main issue is that I have no idea how to pass it to my <code>SurfaceViewRenderer</code> through a callback. Did anyone meet that problem? I'll really appreciate any help or suggestions.</p>
  
  <p>Here is the official example app which is the only source but it is done differently than one in the tutorial, it's much more complicated:
  <a href="https://webrtc.googlesource.com/src/+/master/examples/androidapp/src/org/appspot/apprtc" rel="noreferrer">https://webrtc.googlesource.com/src/+/master/examples/androidapp/src/org/appspot/apprtc</a></p>