Supported browsers & devices
The nanoStream Player runs in all modern HTML5 browsers on desktop and mobile, with no plugins. The canonical browser matrix for MOQ, H5Live and HLS lives on Playback technologies. This page covers what you need to know for specific devices: iOS, Android, native app WebViews and autoplay rules.
Requirements at a glance
| Playback | Needs |
|---|---|
| MOQ (Media over QUIC) | WebTransport and WebCodecs. Chromium 110+ (Chrome, Edge, Opera, Brave, Samsung Internet), Firefox 130+ on Windows and macOS, Safari on macOS/iOS/iPadOS 26.4+ |
| H5Live (WebSocket / MSE) | HTML5 video, WebSockets, Media Source Extensions (ManagedMediaSource on iOS 17.1+), fMP4 with H.264 video and AAC audio |
| H5Live low-latency HLS | iOS and iPadOS before 17.1, and iOS WebViews without ManagedMediaSource |
The player picks the technology automatically and falls back from MOQ to H5Live if needed.
Minimum browser versions for nanoStream Player 5: Chromium 60+ (Chrome, Opera, Samsung Internet and others), Firefox 55+, Safari 11+, Microsoft Edge 15+. Internet Explorer is not supported.
If a browser lacks a required technology, setup() rejects with error 5002. Handle it and show a message:
player.setup(config).then(function () {
console.log("setup success");
}, function (error) {
showMessage(error.message);
});
iOS and iPadOS
- Latency control:
balancedadaptiveis supported on iOS (Safari, Chrome, Firefox, WebViews).fastadaptivefalls back tobalancedadaptive. - Low Power Mode: playback always needs a user gesture, even muted. The player raises error
1005. Show a "tap to play" button and callplayer.play()from the tap handler. Don't retry automatically. - Silent switch: the player sets the audio session so sound plays with the silent switch on (
playback.manageAudioSessionType, defaulttrue). If your page also uses the microphone, setnavigator.audioSession.type = "play-and-record"yourself first. See Player features. - Background and lock screen: when the app goes to the background, playback is suspended and the player raises
1007. Resume withplayer.play()when the page is visible again. - Two video elements: H5Live HLS playback on iOS uses two
<video>elements for seamless stream switching.onActiveVideoElementChangetells you which one is active. - Volume:
setVolume()isn't available for HLS playback. - Automatic reconnect isn't available on iOS. Use the retry pattern from Events & error codes.
- Custom overlays: the video layer on iOS has
z-index1; give your overlays a higher value.
macOS Safari
Safari on macOS plays with MOQ (26.4+) or H5Live over MSE. Set playback.allowSafariHlsFallback: true to let the player use H5Live low-latency HLS where appropriate. Canvas drawing from MSE video (snapshots) isn't supported in Safari on macOS and in iPadOS desktop mode.
Android
- Chrome, Firefox and other Chromium-based browsers are fully supported.
- Some preinstalled browsers are reduced builds. Samsung Internet, for example, has had Media Source Extensions disabled by default in some versions. Without MSE, H5Live can't play; MOQ needs Chromium 110+.
- Test on real devices: what works in Chrome doesn't always work in a vendor browser.
Native apps (WebView)
You can play streams inside an Android or iOS app by loading your player page in a WebView.
Load the player page remotely over HTTPS, not from a local file bundled in the app. Local pages (file://) run into security and sandbox limits, and on iOS they can break playback that uses Managed Media Source (iOS 17.1+).
Android WebView
Allow playback without a user gesture so autoplay works:
webView.getSettings().setMediaPlaybackRequiresUserGesture(false);
iOS WKWebView
Allow inline playback and autoplay, then load your remote page:
import UIKit
import WebKit
class ViewController: UIViewController, WKNavigationDelegate {
var webView: WKWebView!
override func loadView() {
let webConfiguration = WKWebViewConfiguration()
webConfiguration.allowsInlineMediaPlayback = true
webConfiguration.mediaTypesRequiringUserActionForPlayback = []
webView = WKWebView(frame: .zero, configuration: webConfiguration)
webView.navigationDelegate = self
if #available(iOS 16.4, *) {
webView.isInspectable = true // for debugging during development only
}
view = webView
}
override func viewDidLoad() {
super.viewDidLoad()
let url = URL(string: "https://your-page.example.com/player.html")!
webView.load(URLRequest(url: url))
}
}
Without these native settings, playback.autoplay: true in the player config has no effect inside the WebView.
Autoplay policies
All major browsers block autoplay with sound until the user interacts with the page. Configure the player to fall back to muted:
playback: { autoplay: true, automute: true, muted: false }
| Situation | Result | What to do |
|---|---|---|
| Desktop, no prior interaction | Starts muted, mute icon shown | Let the viewer unmute |
| Mobile browser | Starts muted | Let the viewer unmute |
| iOS Low Power Mode | Doesn't start, error 1005 | Show "tap to play" |
| Background tab at load | Doesn't start, error 1009 | Call play() on visibilitychange |
| WebView without native settings | Doesn't start | Set the WebView options above |
Background reading: Chrome's autoplay policy (https://developers.google.com/web/updates/2017/09/autoplay-policy-changes) and WebKit's (https://webkit.org/blog/7734/auto-play-policy-changes-for-macos/).
Testing tips
- Use real devices. Browser device emulation doesn't reproduce real playback conditions and can behave unexpectedly.
- Test on the networks your viewers use, including mobile data.
- Check which technology plays: MOQ renders to a
<canvas>, H5Live to a<video>. - Firewalls and proxies can block WebSocket, QUIC or the playback domains. See Global delivery & nanoStream CDN and Network diagnostics.
Next steps
- Playback technologies: the full browser matrix
- Player features: autoplay, audio and fullscreen in detail
- Events & error codes:
1005,1007,1009and others - Embed the player: iframe embedding