Android VideoView black screen

前端 未结 22 2050
清歌不尽
清歌不尽 2020-11-27 12:55

I have been looking for a way to get rid of the nasty black initial screen on a VideoView before the start() method is run.

I have tried with background image on the

22条回答
  •  清酒与你
    2020-11-27 13:37

    Just use VideoView#setBackgroundDrawable(), I think.

    1. initial settings.

      VideoView.setBackgroundDrawable(yourdrawableid);
      
    2. start video

      VideoView.start();
      VideoView.setBackgroundDrawable(0);
      

提交回复
热议问题