发送或执行互联网指令,无需下载任何内容
我有一个可以播放声音的无线网络摄像机。我知道如何播放这个声音,因为我知道方向和命令。我用这个终端命令尝试过:http://192.168.0.90/axis-cgi/playclip.cgi?clip=6
问题是 wget 命令下载剪辑,我只想重现它。因为我想做一个程序。
在终端中执行此操作的任何选项。或者直接从 C++ 程序。
提前致谢。
I have a wireless IP cam that play sounds. I know how to play this sounds because i know the direction and the command. I tried it with this Terminal command: http://192.168.0.90/axis-cgi/playclip.cgi?clip=6
The problem is wget command download the clip and i only want to reproduce it. Beacuse i want to do into a program.
Any option to do it in terminal. Or directly from a C++ program.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
mplayer
或vlc
将流式传输 URL 并像本地文件一样播放。至于用 C++ 来做,你还有很多工作要做(找到一个 HTTP 库,读取内容,解码并重现它。也许 ffmpeg 库可以在这里帮助你。mplayer
orvlc
will stream the URL and play it as if it was a local file. As for doing it in C++, you have much more work to do (find an HTTP library, read the contents, decode it and reproduce it. Maybe theffmpeg
library can help you here.