GlossaryVideo player

Video player

A video player is the software that fetches a stream, decodes it and draws it on screen, with controls such as play, pause, seek, volume and captions. On the web it usually wraps the browser's video element and feeds it segments through Media Source Extensions, the browser API that lets JavaScript hand video data to the decoder. Native apps build on platform players such as AVPlayer on iOS or ExoPlayer on Android. A streaming player also picks the quality level, handles DRM and reports what happened during each view.

How does a video player work?

A streaming player starts by loading a manifest, the text file that lists every quality level of the video and where its segments live. It picks a starting rendition, downloads the first few segments and appends them to a buffer that the browser or operating system decodes, usually on the device's hardware decoder. Frames are drawn on screen in sync with the audio track.

While the video plays, the player keeps several seconds downloaded ahead of the playhead. Before each new segment it checks how fast recent downloads arrived and how full the buffer is, then decides whether to stay on the current rendition, step down or step up. That loop is adaptive bitrate streaming. Around it, the player draws controls, renders captions, requests DRM licenses when the content is encrypted and fires events such as play, playing, stall and error that analytics tools collect.

Video player vs. the HTML5 video tag

The HTML5 video tag is the browser's built-in player. Point it at an MP4 file and it plays, with native controls and no JavaScript. Safari plays HLS directly in the tag, and some other browsers have started to, but support is uneven and gives the page little control over quality switching. So most web players run a JavaScript engine such as hls.js, dash.js, Shaka Player or Video.js on top of Media Source Extensions to read the manifest, fetch segments and switch quality.

The tag on its own also leaves a lot out. A plain MP4 has one bitrate, so it cannot adapt to the connection. Encrypted playback needs Encrypted Media Extensions wired to a license server. Caption styling, seek previews, casting and keyboard handling vary by browser. And the tag reports nothing about startup time or stalls unless something listens to its events. A streaming player is the layer that fills those gaps on every device.

What features should a video player have?

The list depends on the product. Course platforms care most about captions and access control, OTT catalogs about DRM and TV apps, and vertical feeds about how fast the next clip starts. A general baseline looks like this.

  • Adaptive streaming over HLS, plus DASH where Android TV or smart TVs need it, and LL-HLS for live.
  • Captions and subtitles in WebVTT, with styling viewers can adjust.
  • DRM through Widevine, FairPlay and PlayReady, so encrypted streams play on Chrome, Safari, Edge and TVs.
  • Accessibility: keyboard control, screen reader labels and visible focus states.
  • Seek previews from thumbnail sprite sheets, picture-in-picture, Chromecast and AirPlay.
  • Playback events for analytics: startup, stalls, quality changes and errors.

Open-source video player vs. building your own

Writing a player from scratch looks small and is not. Each browser handles Media Source Extensions slightly differently, each platform has its own DRM flow, and TV platforms such as Samsung Tizen and LG webOS add their own quirks. Live streams bring edge cases of their own: holding the live edge, recovering from a missing segment, and handling DVR windows that let viewers rewind.

That is why most teams start from an existing engine. On the web, hls.js, dash.js, Shaka Player and Video.js handle parsing, buffering and switching. On mobile, AVPlayer and ExoPlayer do the same natively. The engineering work then moves to the parts viewers see: branded controls, layouts such as full-screen vertical video, gestures, and the business rules around who can play what. Whichever engine you choose, make sure it exposes the events you need for measuring startup time, stalls and errors.

How does the FastPix video player work?

FastPix Player is free and open source, and ships as four platform-native player SDKs. The web SDK runs in browsers, on smart TVs such as Samsung Tizen and LG webOS, on set-top boxes and on game consoles. The Android SDK is built on Media3 and covers phones and Android TV. The iOS SDK is built on AVPlayer and covers iPhone, iPad, tvOS and visionOS. Flutter is the fourth, and a React Native SDK exists too. One playback ID plays on all of them.

The player streams HLS, DASH and LL-HLS with adaptive bitrate and plays Widevine, FairPlay and PlayReady content. Controls include resolution choice, rendition order, quality lock, audio and subtitle track switching, seek preview thumbnails, chapters on the timeline and keyboard shortcuts. Video, posters and storyboards can stream from your own custom domain. Chromecast is in beta.

On Android, fast start is on by default: playback begins after 500 ms of buffered media instead of Media3's stock 1000 ms, and a feed profile starts at 250 ms. Preloading prepares upcoming entries, disk caching plays re-watches from local storage, pre-caching warms items before a player exists, and pre-rendering prepares the next entry up to its first frame, so a swipe never shows a black frame. A player pool keeps reels and carousels ready, with vertical 9:16 swipe-to-next.

Video Data is built in, accessibility is WCAG 2.1 AA, and any HLS player can still play a FastPix playback ID.

There is no player license fee. You pay for the video: storage per rendition-minute and streaming per minute watched, with Standard encoding free up to 4K. The free plan covers 10 videos and 100,000 streaming minutes a month, with no card needed.