开发者

Android live video streaming not working in android1.6

开发者 https://www.devze.com 2023-01-26 01:12 出处:网络
I have the code of video streaming that works perfectly in android 2.2 VideoView videoView = (VideoView) findViewById(R.id.surface_view);

I have the code of video streaming that works perfectly in android 2.2

VideoView videoView = (VideoView) findViewById(R.id.surface_view);
MediaController mc = new MediaController(this);
videoView.setMediaController(mc);
videoView.start();
videoView.requestFocus();
videoView.setVideoURI(video);
videoView.start();
videoView.requestFocus();

But it doesn't work in andrid1.6 It gives the error:

11-22 11:12:51.455: ERROR/PlayerDriver(31): Command PLAYER_INIT completed with an error or info UNKNOWN PVMFStatus
11-22 11:12:51.467: ERROR/MediaPlayer(826): error (200, -32)
11-22 11:12:51.467: ERROR/MediaPlayer(826): Error (200,-32)
11-22 11:12开发者_Python百科:51.467: DEBUG/VideoView(826): Error: 200,-32
0

精彩评论

暂无评论...
验证码 换一张
取 消