Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to play UDP stream on browser?

I'm new to Stack Overflow and I have a question: I want to make an online TV website. I've got the UDP streaming links for each TV channels (ex. udp://@225.1.2.249:30120). Then, I can't find the way how to play that stream on video player in browsers. (I've already tried Video.js and hls.js but both not work, but it easily play on VLC). I know that my grammar is terrible, hope you forgive that.

like image 629
Wello6143 Avatar asked Apr 28 '18 11:04

Wello6143


People also ask

Is UDP best for live video streaming?

Undoubtedly for live video sharing, UDP (User Data Protocol) is always recommended over TCP (Transport Control Protocol) due to some of the obvious reasons which are listed as below: UDP offers reduced latency over the TCP reliability.

Does twitch use TCP or UDP?

outbound port 443/TCP (HTTPS) : used for authentication with the built-in providers such as YouTube Live, Facebook Live, Ustream, Livestream, and Twitch. outbound port 53/UDP (DNS) used for DNS lookups converting hostnames to IP addresses.

Why do streaming audio and video applications use UDP instead of TCP?

Typically, applications that transfer data files will use TCP since the protocol's latency and performance issues are not that critical. UDP benefits applications that need to receive data quickly even if accuracy suffers. This is why real-time applications like audio and video streaming will often use UDP.


1 Answers

You don’t. Browsers support HTTP, Websockets, and webrtc. Any other protocol requires a browser plugin.

like image 59
szatmary Avatar answered Nov 04 '22 04:11

szatmary