Android VideoView black screen

前端 未结 22 2115
清歌不尽
清歌不尽 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:28

    I had same problem and this has worked for me ..

    When you want to show video, make videoView.setZOrderOnTop(false); and when you want to hide video, just make videoView.setZOrderOnTop(true);

提交回复
热议问题