HTML5 和示例 RTP 流?
我正在用 html5 制作一个需要播放 rtp 流的网站,但是当我运行它时,我没有得到任何东西,并且我不确定它是我的浏览器(safari 5)、我的 rtp 服务器还是 html 代码这就是问题所在。 :P 有谁知道我可以用来测试 HTML 和我的浏览器的示例 rtp 流吗?预先感谢!
干杯, 卢卡斯
I'm making a website in html5 that needs to play an rtp stream, but When I run it, I dont get anything, and I'm not sure if its my browser (safari 5), my rtp server, or the html code that is the problem. :P does anyone know of a sample rtp stream I could use to test the HTML and my browser? Thanks Beforehand!
Cheers,
Lukas
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您需要某些代码的帮助,您需要向我们展示!
无论如何,请了解 HTML5 支持是特定于浏览器的。你会遇到问题。除了流协议之外,还有 CODEC 特定的问题,我猜您正在遇到这个问题——一个常见问题。
确保您使用 h.264“基线配置文件”对流进行编码。
If you want help with some code, you'll need to show it to us!
Regardless, understand that HTML5 support is browser specific. You will run into issue. Beyond streaming protocols, there are also CODEC specific issues, which is what I would guess you are experiencing--a common problem.
Ensure you are encoding the stream with h.264 "Baseline Profile".
原始 RTP 支持不太可能包含在 Web 浏览器的实现中,例如 Chromium 错误。该问题的状态现在为 WontFix(已关闭)。
但相反,网络浏览器似乎以 WebRTC 的形式支持它 RTCRtpReceiver
而且它的支持看起来很有希望
所以我想如果使用 HLS 不适合您,您应该考虑切换到 WebRTC反而。
Raw RTP support is not likely to be included in the implementations of the web browsers as for example discussed in the Chromium Bugs. The status of that issue is now WontFix (Closed).
But instead it looks like the web browsers support it in a form of WebRTC RTCRtpReceiver
and it's support looks quite promising
So I guess if using HLS is not an option for you, you should consider switching to WebRTC instead.