Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在android中播放rtsp url?
你可以使用或者MediaPlayer为此VideoView,它在模拟器中不起作用
MediaPlayer
VideoView
你可以这样做
mediaplayer.setDataSource(String RTSP); // if you are using mediaplayer
或者
videoView.setVideoURI(Uri.parse("rtsp://...../file")); // if you are using videoview
这两种方法你都可以试用