title: How to make TextureView play video with round corners and bubble effect
body: <p>I managed to play video with TextureView and MediaPlayer on Android. I did it like this:
  I created a Surface with SurfaceTexture:</p>
  
  <pre><code>    public void onSurfaceTextureAvailable(SurfaceTexture surfaceTexture, int w, int h)
  {
      mSurface = new Surface(surfaceTexture);
      ...
      ...
  }
  </code></pre>
  
  <p>Attatch the Surface to MediaPlayer:</p>
  
  <pre><code>    try
  {
      mMediaPlayer.setDataSource(mPlayUrl);
      mMediaPlayer.setSurface(mSurface);
      ...
      ...
  }
  </code></pre>
  
  <p>That is OK, but not enough for me. I expect that the TextureView to be with round corners and look like a bubble(with an angle), look at the picture below:
  <a href="https://i.stack.imgur.com/qyElR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qyElR.png" alt="effect I expect"></a></p>
  
  <p>I found an article(<a href="https://medium.com/@fabrantes/rounded-video-corners-on-android-3467841cc1b" rel="nofollow noreferrer">Round video corners on Android</a>) which is very helpful, but the author chose GLSurfaceView and only implemented round corners. I believe that TextureView is also suitable for implementing my effect, SurfaceTexure processing is the key.But I am not familiar with opengl, Who can give me some advices?</p>