VideoJs player with Nuevo theme and plugin HLS Fragmented MP4 streaming test
HTTP Live Streaming (HLS) has become a de-facto standard for streaming video on desktop and on mobile devices thanks to its native support on iOS and Android.
Video example above is HLS adaptive bitrate streaming based on m3u8 manifest file. Nuevo plugin for videojs has built in HLS stream quality selector, which appears automatically for desktop PC. Changing quality is not immediate, as it can be changed only from video fragment to fragment.
At WWDC 2016, Apple announced support for fragmented MP4 (fMP4) as an alternative to MPEG-TS, a small step for Apple but a huge step for video streaming services. HLS fragmented MP4 usage reduces the storage footprint of your encoded content by half, fragmented MP4 files are also compatible with MPEG-DASH - an alternative to HLS - so you can use the same files; only the manifest file (playlist) is different.
videojs HLS streaming supports a bunch of HLS features. Here are some highlights:
- video-on-demand and live playback modes.
- backup or redundant streams.
- mid-segment quality switching.
- AES-128 segment encryption.
- CEA-608 captions are automatically translated into standard HTML5 caption text tracks.
- Timed ID3 Metadata is automatically translated into HTML5 metedata text tracks.
- Highly customizable adaptive bitrate selection.
- Automatic bandwidth tracking.
- Cross-domain credentials support with CORS.
- Tight integration with video.js and a philosophy of exposing as much as possible with standard HTML APIs.
- Stream with multiple audio tracks and switching to those audio tracks.
- Media content in fragmented MP4s instead of the MPEG2-TS container format.
HLS Device and Cross Browser Support
Chrome - Supported since Chrome version 30+
Firefox - Supported since Firefox version 42+
Internet Explorer 10+ - Supported since IE 11 (Windows 8+ only)
Safari - Supported since Safari version 8+
Opera - Supported since Opera version 15+
Android - Supported on Chrome and Firefox for Android 4.0+
IOS - Supported on iOS 3+
Windows Phone - Supported on Windows Phone 8+
Stndard Video Format Fallback
Since not every browser on certain platform supports MediaSourceExtension required to play HLS stream, it is suggested to offer fallback to standard video format like MP4 or WEBM.
Quality resolutions button and menu is built-in Nuevo plugin feature and appears automatically if only HLS m3u8 playlist points to multiple different resolutions playlist variants.