如何流在安卓VideoView跨LAN视频 [英] How to stream video across LAN in android VideoView

查看:257
本文介绍了如何流在安卓VideoView跨LAN视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于办公室的限制,我有没有互联网LAN网络,并有流视频到我的Andr​​oid应用程序。

Due to office constraints I have a LAN network without internet and have to stream a video into my android application.

我可以通过SMB OK查看该设备在ES浏览器中的视频。但是,什么是得到它在我的VideoView应用程序,以发挥最好的方法是什么?使用SMB://192.168.xx/Users/Public/ ..作为URI不能正常工作

I can view the video in ES Explorer on the device through smb ok. But what's the best way to get it to play in my VideoView app? using "smb://192.168.x.x/Users/Public/.." as the URI doesn't work.

感谢。

推荐答案

我发现了一个(小气鬼)的方式仅仅是安装VLC媒体播放器和流从PC有视频,下面的说明 <一href="http://stackoverflow.com/questions/5335731/android-video-streaming-example">android-video-streaming-example.

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.

所以在android活动,它看起来是这样的:

So in the android activity it looks something like:

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

在我的应用程序现在的工作,但滞后是可怕的(5+秒),所以烨的问题仍然是开放的更好的答案,但我会尝试其他的东西。

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..

这篇关于如何流在安卓VideoView跨LAN视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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