How to stream video across LAN in android VideoView

前端 未结 2 825
清歌不尽
清歌不尽 2021-02-10 16:22

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

I can view the video in ES Explorer on the device

2条回答
  •  难免孤独
    2021-02-10 16:37

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

提交回复
热议问题