ajax 链接java,通过ajax请求从Java servlet流传输实时视频提要的正确方法

Im currently creating a custom surveillance application. And i was curious is it possible to take the live stream and and redirect it to a webpage via an ajax request. If so whats an example of how the ajax request would look. I'm working on the video feed aspect with java and was planning on using a servlet to push video feed to a request by the user whos on the appropriate webpage.

解决方案

Only by using ajax + servlet you can not do that, but you need to have a media streaming server to generate the streaming and you can use servlet (and ajax) to redirect it to the custom page.

one good open source media streaming server I can suggest is the Red5 server developed with Java. They have a special module called red5-web which you can simply used for your requirement with a few configurations. It uses RTP/RTMP protocols to do that.

refer

And also you can refer to HTTP streaming also using VLCJ.

A very good example can be found

I hope you can get a help through those links.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值