videoview for large video

前端 未结 1 1709
南方客
南方客 2021-01-27 05:56
VideoView vv = (VideoView)this.findViewById(R.id.screen_video);
Uri uri = Uri.parse(URL);
vv.setVideoURI(uri);
vv.start();

I use above code to play vid

相关标签:
1条回答
  • 2021-01-27 06:16

    I don't know (and I could not find) clear specifications for videoview to play a video of a certain size. But to me it depends on the device and on the codecs used. For instance my device plays video encoded with MPEG4 (ASP) successfully whatever the size of the video is but if the video is encoded with H264 (MPEG4 AVC) that does not work if the video is larger than the size of the screen.

    I hope it helps!

    0 讨论(0)
提交回复
热议问题