VideoView black flash before and after playing

前端 未结 14 2214
谎友^
谎友^ 2020-12-09 04:04

I have a VideoView which I want to use to play a movieclip. I use it like this to play it and it works.

VideoView vv = new VideoView(this);
vv.setVideoURI(Ur         


        
14条回答
  •  -上瘾入骨i
    2020-12-09 04:40

    That flash comes from changing the current content view to another one. You could try adding a VideoView to your layout xml file then referencing it with (VideoView) findViewById(R.id.vid); instead of new VideoView(this); and setting the content view to that layout.

提交回复
热议问题