How to choose a live streaming API: what to compare before you build
Every live streaming API shows a player. Ten questions that tell them apart: how far behind live viewers are, what the bill counts, who may watch, the chat.
Blog · Page 2
What we are building into WordPlus Cloud, and how to get the most out of realtime on your site.
Every live streaming API shows a player. Ten questions that tell them apart: how far behind live viewers are, what the bill counts, who may watch, the chat.
Every video call API lists HD and screen sharing. Ten questions that tell them apart: does every call connect, what the bill counts, who sees the media.
Feature lists look alike. Ten questions that tell chat APIs apart: where messages are kept, what the bill counts, who can read them, what a reconnect loses.
PHP answers a request and ends, so a websocket in PHP needs a server script that never stops. What running one takes, and how to send live events without it.
A websocket server in Node.js is fifteen lines with ws. What a second process or server changes, what running several takes, and how to send events without one.
The ports a WebRTC video call uses: the page, STUN, TURN over UDP, TCP and TLS, and the media itself, with what a firewall must allow and how to test a network.
Why a WebSocket connection fails and how to find out: test the address, read the close code, check the handshake, and fix proxies, origins and timeouts.
Why a WebRTC call fails to connect and how to find the cause: blocked UDP, symmetric NAT, a missing or broken TURN server, and what to log on each side.
Test your microphone in one click, then fix what stops it: a blocked site, your system's settings, a muted input, the wrong device or a Bluetooth headset.
Test your camera in one click, then fix what stops it: a blocked site, your system's settings, another app holding it, a black picture or the wrong device.
How to test a TURN server step by step: check that it answers on each port, accepts your credentials and really relays data, with errors 401 and 701 explained.
How websockets work in Python, why Django and Flask on WSGI cannot hold them, what running your own takes, and how to send live updates from a view instead.