2

如何在android中播放rtsp url?

4

1 回答 1

6

你可以使用或者MediaPlayer为此VideoView,它在模拟器中不起作用

你可以这样做

mediaplayer.setDataSource(String RTSP);   //  if you are using mediaplayer

或者

videoView.setVideoURI(Uri.parse("rtsp://...../file"));   // if you are using videoview 

这两种方法你都可以试用

于 2011-02-04T14:00:58.940 回答