Android SDK:Samba服务器使用VideoView将video流式传输到Android?

我需要播放从samba到android设备流的video。 我一直在寻找这个问题 ,有人说:

  1. 使用JCIFS扫描并“查看”共享: http ://jcifs.samba.org/
  2. 实现一个简单的HTTP服务器(NanoHttpd)通过http: https : //github.com/NanoHttpd/nanohttpd流式传输内容
  3. http://localhost/myvideo链接传递给VideoView

我已经使用JCIFS在我的项目中获取SmbFile,我也得到了inputstream(smbfile.getInputStream())。
现在我导入NanoHttpd并创建一个简单的HTTP服务器,其http地址为http://localhost:8080

 private class MyHTTPD extends NanoHTTPD { public MyHTTPD() throws IOException { super(8080); } @Override public Response serve(String uri, String method, Properties header, Properties parms, Properties files) { InputStream is = new SmbFile(filePath,auth).getInputStream(); //return index as response return new NanoHTTPD.Response(HTTP_OK, "video/mp4", is); } } server = new MyHTTPD(); server.start(); 

但我的http地址不同于http://localhost/myvideo ,我不知道如何获得正确的http地址并将其放入VideoView。
我不知道如何获得像http://localhost/myvideo这样的路径。
感谢帮助….

另一个问题:我可以使用VideoView播放来自InputStream的video吗?