Skip to main content

Playback technologies: MOQ, H5Live, HLS & browser support

The nanoStream Player plays your live streams over one of several delivery technologies. MOQ (Media over QUIC) is the primary one; H5Live is the fallback for browsers and networks where MOQ isn't available. The player chooses automatically, so the same embed code works for every viewer.

The technologies at a glance​

TechnologyTransportWhere it's usedRendering
MOQ (Media over QUIC)QUIC / HTTP/3 via WebTransport, decoded with WebCodecsPrimary path on browsers that support WebTransport and WebCodecs<canvas>
H5Live (WebSocket / MSE)fMP4 over secure WebSocket, played with Media Source ExtensionsFallback on desktop and Android browsers without MOQ, and on iOS 17.1+ through ManagedMediaSource<video>
H5Live low-latency HLSHTTPSiOS and iPadOS before 17.1, and iOS WebViews without ManagedMediaSource<video>
H5Live progressive MP4HTTPSSet-top boxes, TV sets and other external playersNative

All of them deliver ultra-low latency over encrypted connections (HTTPS/TLS). For latency figures and tuning, see Latency & latency control modes.

MOQ (Media over QUIC)​

MOQ is the default playback technology since nanoStream Player 5.0. It is built for real-time media and runs on QUIC instead of TCP. That gives you:

  • ultra-low latency for interactive use cases such as live betting, auctions and Q&A
  • more stable playback on unstable or changing networks, because a lost packet only delays the stream it belongs to
  • smoother adaptive bitrate playback on mobile and roaming connections
  • prioritisation of video, audio and data within one connection

MOQ is a stable production feature, rolled out globally. It isn't a beta.

note

In MOQ mode the player renders into a <canvas> element instead of an HTML5 <video> element. If your page relies on the video element (custom overlays, videoId, video element events), see Migration & legacy versions for your options.

Configuration​

Two playback settings control MOQ. Both default to true, so you don't need to set anything to use MOQ.

KeyTypeDefaultWhat it does
playback.enableMediaOverQuicbooleantrueUse MOQ when the browser supports it. Set to false to force WebSocket/MSE playback.
playback.enableQuicConnectionProbebooleantrueProbe WebTransport/QUIC connectivity during setup to decide which technology to use.
var config = {
source: { /* ... */ },
playback: {
enableMediaOverQuic: true, // default: true
enableQuicConnectionProbe: true // default: true
}
};

Keep both settings at their defaults. They are designed to work as a pair.

Custom server configuration​

If you configure the player with a stream group, a bintu stream ID or source.defaults.service: 'bintu', MOQ works without any extra setup. If you set the h5live.server URLs yourself, add a webtransport URL to each entry. Without it, that entry plays over WebSocket/MSE.

'server': {
'websocket': 'wss://bintu-h5live.nanocosmos.de:443/h5live/stream/stream.mp4',
'hls': 'https://bintu-h5live.nanocosmos.de:443/h5live/http/playlist.m3u8',
'progressive': 'https://bintu-h5live.nanocosmos.de:443/h5live/http/stream.mp4',
'webtransport': 'https://bintu-h5live.nanocosmos.de:443/h5live/stream/stream.mp4' // needed for MOQ
}

IETF MOQT compatibility​

nanocosmos MOQ playback is intentionally not fully compliant with the IETF MOQT draft, to keep the best real-time experience. IETF MOQT itself is still a draft. MOQT ingest is available on request: contact us.

H5Live​

H5Live is the nanocosmos client-server technology that the nanoStream Player has used since before MOQ. It works without plugins in every full-featured HTML5 browser and operates in several modes:

  • fMP4 over WebSocket with Media Source Extensions (MSE): Chrome, Edge, Firefox and other desktop and Android browsers, and iOS 17.1+ with ManagedMediaSource
  • Low-latency HLS: iOS and iPadOS before 17.1, and iOS WebViews without ManagedMediaSource
  • Progressive MP4: set-top boxes and TV sets

You don't choose the mode. The player selects it.

note

On macOS, Safari uses MSE playback by default. The playback.allowSafariHlsFallback option (default false) lets the player use H5Live low-latency HLS in Safari on macOS when appropriate.

How the player chooses​

Every time you call player.setup(config), the player runs through these steps:

  1. If enableMediaOverQuic is true and the browser supports WebTransport and WebCodecs, the player probes the QUIC connection (if enableQuicConnectionProbe is on).
  2. If the probe succeeds, playback runs over MOQ.
  3. If MOQ isn't supported, is disabled, or the probe fails (for example because a firewall blocks QUIC), the player falls back to H5Live over WebSocket/MSE.
  4. On iOS and iPadOS without MOQ support, the player uses H5Live over WebSocket with ManagedMediaSource (iOS 17.1+). Only where ManagedMediaSource isn't usable, on older iOS and in some WebViews, it uses H5Live low-latency HLS.

Your viewers always get the stream. Only the transport changes.

tip

To check whether a problem is specific to MOQ, reproduce it once with playback.enableMediaOverQuic: false (or append &playback.enableMediaOverQuic=false to the demo player URL). Send the result with your browser and OS versions to support. Turning MOQ off is a diagnostic step, not a fix: you also give up its latency and stability advantages.

Browser and device support​

This is the browser and device matrix for the nanoStream Player 5.x. MOQ needs the WebTransport and WebCodecs APIs, so it has higher minimum versions than the player itself.

PlatformBrowsernanoStream Player 5.x (H5Live)MOQ
Windows, macOS, LinuxChrome, Edge and other Chromium-based browsers (Opera, Brave …)Chromium 60+Chromium 110+
Windows, macOSFirefox55+130+
LinuxFirefox55+Not tested. Used if the browser offers WebTransport and WebCodecs, otherwise H5Live.
macOSSafari11+macOS 26.4+
AndroidChrome, Samsung Internet and other Chromium-based browsersChromium 60+Chromium 110+
AndroidFirefox55+Not tested. Used if the browser offers WebTransport and WebCodecs, otherwise H5Live.
iOS, iPadOSSafari, Chrome, Firefox and other iOS browsers, WebViewsiOS 17.1+: H5Live with ManagedMediaSource. Older iOS and WebViews without ManagedMediaSource: H5Live low-latency HLS.iOS / iPadOS 26.4+
WindowsLegacy Microsoft Edge (EdgeHTML)15+Not supported
WindowsInternet ExplorerNot supportedNot supported

Browser support evolves. If a browser isn't listed, the player's setup() call rejects with an error that explains which technology is missing, so you can show your own message:

player.setup(config).then(function (config) {
console.log('setup success');
}, function (error) {
console.log(error.message); // e.g. browser doesn't support the required technologies
});

Testing on devices​

  • Test on real devices. Browser emulation modes (for example device emulation in desktop dev tools) can behave differently and aren't supported.
  • Record exact browser, OS and device versions when you report a playback issue. MOQ availability is decided per browser and OS version.
  • Some Android vendor browsers ship with features disabled. If a browser lacks Media Source Extensions and MOQ, H5Live WebSocket playback can't run there.

Native apps and external players​

The nanoStream Player is a JavaScript player for browsers and WebViews. For native apps and external players (VLC, set-top boxes), H5Live also offers low-latency MP4 and HLS URLs. These are provided as-is: they don't have the player's buffer and latency control and aren't compatible with every system.

# Low-latency MP4 (all platforms except iOS)
https://bintu-play.nanocosmos.de/h5live/http/stream.mp4?url=rtmp://localhost/play&stream=<STREAM_NAME>

# Low-latency HLS (iOS / iPadOS)
https://bintu-play.nanocosmos.de/h5live/http/playlist.m3u8?url=rtmp://localhost/play&stream=<STREAM_NAME>

For token-protected streams, see Playback tokens.

Playback technology in nanoStream Analytics​

nanoStream Analytics reports MOQ playbacks separately from H5Live (WebSocket/MSE) playbacks. In the Analytics dashboard you find them on the MoQ page, and the H5Live page no longer includes them. In the Analytics API, use the /v2/moq/* routes for MOQ views, playing time, latency, startup time, buffering ratio, error codes and stop reasons; the /v2/h5live/* routes exclude MOQ.

note

nanoStream Player versions before 5.0.11 report the playback path only once the connection is established. The first player loadings of a MOQ playback are then counted on the H5Live page.

Next steps​

tip

Try it in the Builder Hub: start an Instant Live Stream and watch it play over MOQ in your browser. Start for Free