如何发挥RTSP URL中的android? [英] how to play rtsp url in android?

查看:130
本文介绍了如何发挥RTSP URL中的android?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何发挥RTSP URL中的android?

how to play rtsp url in android ?

推荐答案

您可以使用的MediaPlayer VideoView 对于这一点,它不会在模拟器工作

you can use either MediaPlayer or VideoView for this,it will not work in emulator

您可以像

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

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

这两种方法ü可以试模

both methods u can tryout

这篇关于如何发挥RTSP URL中的android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆