本帖最后由 yiyaaixuexi 于 2011-09-01 11:00:16 编辑

解决方案 »

  1.   

    RTSP流媒体链接:
    http://218.204.223.237:8081/wap/用你的程序测试下这里面的
    我帮你重新编辑一下你帖子里的代码看着费劲
      

  2.   


    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);rtspUrl = (EditText)this.findViewById(R.id.url);
    playButton = (Button)this.findViewById(R.id.start_play);
    playButton.setOnClickListener(new Button.OnClickListener(){
    public void onClick(View v) {
    PlayRtspStream(rtspUrl.getEditableText().toString());
    }
    });videoView = (VideoView)this.findViewById(R.id.rtsp_player);}//play rtsp stream
    private void PlayRtspStream(String rtspUrl){
    videoView.setVideoURI(Uri.parse(rtspUrl));
    videoView.requestFocus();
    videoView.start();
    }
      

  3.   

    兄弟,你的问题解决了吗?我用quickTime和VLC播放器都测试了,但是就是在Android模拟器中无法播放该视频