android 1.6 中的实时视频流出现错误
我在 android2.2 中有这个视频流代码
VideoView videoView = (VideoView) findViewById(R.id.surface_view);
MediaController mc = new MediaController(this);
mc.setAnchorView(videoView);
mc.setMediaPlayer(videoView);
Uri video = Uri.parse(URL);
videoView.setMediaController(mc);
videoView.setVideoURI(video);
videoView.start();
,但它在 android 1.6 上不起作用,它给出了错误
11-22 10:39:33.245: ERROR/PlayerDriver(31): Command PLAYER_INIT completed with an error or info UNKNOWN PVMFStatus
11-22 10:39:33.245: ERROR/MediaPlayer(256): error (200, -32)
11-22 10:39:33.255: ERROR/MediaPlayer(256): Error (200,-32)
I have this video streaming code in android2.2
VideoView videoView = (VideoView) findViewById(R.id.surface_view);
MediaController mc = new MediaController(this);
mc.setAnchorView(videoView);
mc.setMediaPlayer(videoView);
Uri video = Uri.parse(URL);
videoView.setMediaController(mc);
videoView.setVideoURI(video);
videoView.start();
But it doesnt work on android 1.6 it gives the error
11-22 10:39:33.245: ERROR/PlayerDriver(31): Command PLAYER_INIT completed with an error or info UNKNOWN PVMFStatus
11-22 10:39:33.245: ERROR/MediaPlayer(256): error (200, -32)
11-22 10:39:33.255: ERROR/MediaPlayer(256): Error (200,-32)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论