Android 实时视频流在 android1.6 中不工作
我有在 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();
但在 andrid1.6 中不起作用它给出了错误:
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:51.467: DEBUG/VideoView(826): Error: 200,-32
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:51.467: DEBUG/VideoView(826): Error: 200,-32
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论