View a Stream
Play video streams using manifest URLs.
What is a Manifest Player?
A Manifest Player plays video streams using manifest URLs (HLS .m3u8, FLV .flv, or DASH .mpd) rather than connecting directly to a WebRTC call. This is commonly used for:
- Transcoded broadcasts with multiple quality levels
- Archived/recorded streams (VOD - Video on Demand)
- CDN-delivered content
- Scenarios where ultra-low latency isn't required
A Manifest Player plays video streams using a manifest URL (HLS .m3u8, FLV .flv, or DASH .mpd) rather than connecting directly to a WebRTC call. This is commonly used for:
- Transcoded broadcasts with multiple quality levels
- Archived/recorded streams (VOD)
- CDN-delivered content
- Scenarios where ultra-low latency isn't required
Codec Support and the Snapshot Fallback
All live browser formats are encoded as H.264 video with AAC audio — there are no VP9 or AV1 live renditions. Every mainstream browser plays H.264, so this rarely matters in practice, but on a browser or device without H.264 support the player has no playable format.
When that happens the player degrades gracefully and automatically: it emits noDrivers, and shows the stream's live snapshot image as a poster, refreshed on the manifest polling interval — so the viewer still sees a periodically-updating picture of the live stream. This requires nothing from your client code:
- The manifest carries a
jpegformat (formats.jpeg.encodings[]at several resolutions) and apreviewImgURL; the player picks the best fit and sets it as the video poster (displayPosteroption, on by default). - The images come from the platform's snapshot service, so they are only available while the stream is live and producing snapshots.
Subscribe to noDrivers and the manifest event (see Player Events & Liveness) if you want to detect this state and adjust your UI.
Each tab below hands the player a manifestUrl. Get it from the stream-detail response: the manifestUrl field is a complete URL ending in <streamId>.json — treat it as opaque and pass it to the playback SDK verbatim, never constructing or modifying it yourself. The same response also carries vfManifestUrl, the video-foundation manifest for that stream; this guide uses manifestUrl only. See Manifests.
This guide demonstrates how to play a livestream using a manifest URL with the @video/video-client-core library and vanilla JavaScript (no framework required).
The manifest player application consists of three main files:
- manifest-player.html - HTML structure and script imports
- player-utils.js - Utility functions for creating player UI and handling controls
- manifest-player.js - Main application logic for loading and controlling the player
Prerequisites
Before you begin, you'll need:
- Manifest URL: A URL pointing to your stream manifest (HLS, FLV, DASH, or Native Frame JSON format)
In a production application, you would typically receive the manifest URL from your backend API or video management system.
For more information, see What are manifests?.
HTML
First, create an HTML file that loads the video-client-core library and your JavaScript modules.
videoContainer: Will be populated with video player and controls
Using JavaScript Modules
The import map tells the browser where to find the vdc-cdn module. You can update the version number in the URL to use different versions of the video-client-core library.
These modules must be loaded as ES modules (type="module") and in this order:
player-utils.js- Provides UI helper functionsmanifest-player.js- Contains main application logic
JavaScript
Player Utils
This module provides utility functions for creating and managing the player UI.
Main Application Logic (manifest-player.js)
Manifest URL Configuration
The manifest URL points to the stream you want to play. This can be:
- HLS manifest (.m3u8) - Most common for live and VOD streaming
- FLV manifest (.flv) - Used for Flash-based streaming
- DASH manifest (.mpd) - Alternative adaptive streaming format
- Native Frame JSON manifest (.json) - Contains multiple format options
In a production application, you would typically:
- Fetch this URL from your backend API
- Receive it from a webhook when transcoding starts
- Get it from your video management system
- Pass it as a URL parameter or configuration
Full Code
Key Concepts
Player
The Player instance manages video playback:
- Loads and parses manifest files
- Handles adaptive bitrate streaming (automatically switches quality based on network conditions)
- Provides playback control methods (
play(),pause(),mute(),unmute()) - Manages audio and video state
Manifest URL
A manifest file contains information about available video streams:
- HLS (.m3u8): Apple's HTTP Live Streaming format, widely supported
- DASH (.mpd): MPEG-DASH format, ISO standard for adaptive streaming
- FLV (.flv): Flash Video format, used for low-latency streaming
- JSON: Native Frame's multi-format manifest containing all available options
Adaptive Bitrate Streaming
The player automatically adjusts video quality based on:
- Available bandwidth
- Device capabilities
- Buffer health
- Network conditions
This ensures smooth playback with minimal buffering.
Player Properties
Key properties for controlling playback:
localVideoPaused: Check if video is pausedlocalAudioMuted: Check if audio is mutedlocalAudioVolume: Get/set volume (0-1 range)
Manifest Player vs WebRTC Player
| Feature | Manifest Player | WebRTC Player |
|---|---|---|
| Connection | HLS/FLV/DASH URLs | Direct to live calls |
| Authentication | None for a public manifest; a private stream passes auth: authClient (contexts manifest / manifest-headers) | Required |
| Adaptive Bitrate | Supported | N/A |
| Latency | Higher (3-30 seconds) | Ultra-low (sub-second) |
| Best For | VOD, CDN-delivered content | Real-time interaction |
A public manifest plays with no credential. For a private stream, pass auth: authClient in the requestPlayer options — the auth client attaches your token to the manifest request (manifest context) or to its request headers (manifest-headers context), and the same option covers the WebRTC driver. See Private Viewer for the full pattern.
Next Steps
To learn more about the video-client-core library and advanced features:
- Explore creating a call stream for low-latency viewing