如何使用CSocket在浏览器中流式传输连续视频 [英] How to stream continous video in browser using CSocket

查看:97
本文介绍了如何使用CSocket在浏览器中流式传输连续视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我是套接字编程的新手,为客户端和服务器编写了程序,并且能够通过客户端程序查看在服务器上连接的摄像机.但是,当我使用分配的IP地址和端口号在Web浏览器中访问同一摄像机时刷新/重新加载后,我只能查看该相机的图像/快照,然后可以查看下一张图像.因此,将其作为连续视频流式传输时,需要在服务器中添加内容.任何人都可以帮助我这个问题.感谢所有人.


问候,
RamyaRaj.

Hi ,
I am new to socket programming,I wrote program for both client and server and I am able to view the camera connected at the server through my client program.But when I access the same camera in web browser using the ip address and port number assigned to it I am able to view only image/snapshot of that camera if I refresh/reload then I able to view next image.So to stream it as a continous video what I need to add in my server.Can anyone help me out from this problem.Thanks in Advance to all.


Regards,
RamyaRaj.

推荐答案

您需要将图像保存在流中,并将它们一次发送给客户端.

(客户端必须不断监听数据)

您使用什么传输层协议发送数据? (UDP,TCP?)
you need to save the images in a stream and send them to the client on by one.

(the client must be constantly listening for data)

what transport layer protocol are u using to send the data? (UDP, TCP??)


这篇关于如何使用CSocket在浏览器中流式传输连续视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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