How to stream video across LAN in android VideoView

大憨熊 提交于 2019-12-03 08:28:06

I've been able to play smb:// shares over the network in a VideoView by:

I realise this seems convoluted (and I agree) but it's the only way I've managed to get it working (and working well, with seeking, etc.). I'd be interested if there are better solutions.

hqtay

I've found out that one (cheapo) way is just install VLC media player and stream the video from the PC there, following the instructions android-video-streaming-example.

So in the android activity it looks something like:

myVideoView.setVideoURI(Uri.parse("rtsp://192.168.2.3:5544/"));

Works on my app now, but the lag is terrible (5+ sec), so yup the question's still open for better answers, while I'll experiment with other stuff..

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!