How to clear SurfaceTexture after using it with a MediaPlayer?

前端 未结 2 1150
天涯浪人
天涯浪人 2021-02-13 19:35

I\'m using a ListView with TextureView children. The TextureView uses a MediaPlayer to play videos. When the TextureView gets recycled, the last frame remains on the surface unt

2条回答
  •  自闭症患者
    2021-02-13 19:52

    2020 simplest way is to simply set the alpha of the texture view to 0.

    mTextureView.setAlpha(0);

提交回复
热议问题