如何在 Android 中播放 rtsp url?
最佳答案
您可以使用 MediaPlayer
或 VideoView
来实现此目的,它在模拟器中不起作用
你可以这样做
mediaplayer.setDataSource(String RTSP); // if you are using mediaplayer
或
videoView.setVideoURI(Uri.parse("rtsp://...../file")); // if you are using videoview
这两种方法都可以尝试
关于android - 如何在android中播放rtsp url?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4898774/