开发者

HTML5 and a sample RTP Stream?

开发者 https://www.devze.com 2023-01-09 06:03 出处:网络
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 pro

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


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".


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

HTML5 and a sample RTP Stream?

So I guess if using HLS is not an option for you, you should consider switching to WebRTC instead.

0

精彩评论

暂无评论...
验证码 换一张
取 消