简体   繁体   English

在Android上使用IP摄像头时从PC接收视频流

[英]receiving video stream from pc while using ip camera on Android

I am new to android and I am wondering is it possible to use ip camera in the background service while receiving video stream from a pc? 我是Android的新手,我想知道在从PC接收视频流的同时可以在后台服务中使用IP摄像机吗?

If yes, is there a good reference to start? 如果是,是否有一个很好的参考开始?

I have can build a ip camera but I don't know how to combine the two functionality together. 我可以构建一个网络摄像机,但是我不知道如何将这两个功能结合在一起。 Will VLC be a good solution for this? VLC将是一个很好的解决方案吗?

I have also been searching for similar applications but couldn't find one. 我也一直在寻找类似的应用程序,但找不到。 And it seems that the camera service has to be fetched in active mode ( not sure if I am right) 而且似乎必须在活动模式下获取相机服务(不确定我是否正确)

Could anyone give me some advices? 有人可以给我一些建议吗?

In general it is possible. 一般来说,这是可能的。 Streaming video to a server is feasible, I did it myself several times. 将视频流传输到服务器是可行的,我自己做了几次。 Streaming video to the device is also possible, you have built in APIs for that. 也可以将视频流传输到设备,您已经为此内置了API。

The only problem that you'll need to figure out yourself how to accomplish is that for both sending the video and displaying the video you must have a video that displays the video (yes, for the device to server also). 您需要弄清楚自己如何完成的唯一问题是,要同时发送视频和显示视频,您都必须有一个显示视频的视频(是的,对于设备到服务器也是如此)。

For device to server take a look here For server to device take a look here 对于设备到服务器,请看这里对于服务器到设备,请看这里

Please note, the MediaPlayer network infrastructure is somewhat limited, it is possible that you'll need to build the network layer yourself, depending on your server capabilities. 请注意,MediaPlayer网络基础结构受到一定限制,根据服务器功能,您可能需要自行构建网络层。

Good luck 祝好运

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM