Streaming video with videoview

后端 未结 4 914
甜味超标
甜味超标 2020-12-29 16:50

My code below to streaming video:

VideoView vv = (VideoView)this.findViewById(R.id.screen_video);
Uri uri = Uri.parse(URL);
vv.setVideoURI(uri);
vv.start();
         


        
4条回答
  •  囚心锁ツ
    2020-12-29 17:14

    It depends on which Android Version you are developing your application on. There are certain devices which do not support running .mp4 file. Go through Android Media support for more information. Check if you can play any .3gp files or not.

提交回复
热议问题