如何使用HTML5直播,没有Flash? [英] How to Live stream with HTML5, without Flash?

查看:535
本文介绍了如何使用HTML5直播,没有Flash?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:我需要我的客户能够将他们的网络摄像头流式传输到我的流媒体服务器(例如Wowza服务器)。我正在用PHP构建我的网站。
我经历了各种流媒体网站,如twitch.tv,livestream.com,发现他们都使用第三方广播软件,如Wirecast,XSplit广播公司,OBS等,将网络摄像头信息流传输到服务器。
然后我遇到了 vLine Opentokrtc 等网站使用WebRTC进行视频聊天。

The Problem: I need my clients to be able to stream their webcam to my streaming server(for instance Wowza server). I am building my site in PHP. I have gone through various streaming sites like twitch.tv, livestream.com and found that they all use third party broadcasting software like Wirecast, XSplit broadcaster, OBS etc to stream the Webcam feeds to the server. Then I came across sites like vLine, Opentokrtc that uses WebRTC for Video chat.

我的问题:所以,我的问题是,是否可以将流发送到像Wowza这样的广播服务器(这样他们就可以播放我的直播流)而不使用只有WebRTC的广播软件?如果是,那怎么样?如果,不,那么其他选择是什么?

My Question: So, my question is that, is it possible for me to send the stream to the broadcasting servers like Wowza(So that they can then broadcast my live stream) without using broadcasting softwares with only WebRTC? If Yes, then how? If, No, then what are the other alternatives?

PS。我不想在这里使用Flash,ActionScript。

PS. I don't want to use Flash, ActionScript here.

推荐答案

将WebRTC用于此类用例会导致高昂的计算成本服务器方面是一种相当新的技术,这意味着如果你知道自己在做什么就应该使用它。

Using WebRTC for such a use case incurs a high computing cost on the server side and is a rather new technique, which means you should be using it if you know what you are doing.

我的建议是坚持使用Flash或MPEG -DASH代替 - 除非您需要的东西必须具有非常低的延迟,并且您可以通过较小的解决方案规模来支付它。

My suggestion would be to stick to Flash or MPEG-DASH instead - unless what you need must have a very low latency to it and you are fine with paying for it by smaller solution scales.

这篇关于如何使用HTML5直播,没有Flash?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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