Project 08 · Web Development / Media Playback

Public GitHub repository

Universal Streamer

A browser-based streaming application built with vanilla JavaScript, HTML, and CSS. Its player detects supported URL types and selects YouTube embedding, HLS playback, or native HTML5 video.

Source repository
One interface · multiple playback engines
01

Purpose

Different video sources require different playback mechanisms. This project provides a unified interface that detects the source and selects an appropriate browser player.

02

Technical approach

A URL-detection layer selects the YouTube iframe API, HLS.js for M3U8 streams, or the native HTML5 player for direct MP4/WebM files. The repository also documents a sidebar history with captured thumbnails and stream categories.

03

Architecture

The browser UI accepts a media URL; a lightweight protocol detector selects the player adapter; playback is handled by the relevant browser or JavaScript player API.

Media source selection

  1. Media URL
  2. Protocol detection
  3. YouTube / HLS.js / HTML5
  4. Playback interface
04

Implemented features

  • YouTube iframe playback.
  • HLS stream playback through HLS.js.
  • Native HTML5 playback for direct MP4 and WebM files.
  • URL-based player-mode detection.
  • Sidebar history with thumbnails and stream categories.
05

Engineering decisions

  • 01Uses browser-native technologies without a frontend framework.
  • 02Selects playback strategy from the detected media URL type.
06

Evaluation / results

The repository documents player capabilities but does not publish a quantitative playback benchmark.

07

Technology stack

  • JavaScript
  • HTML5
  • CSS3
  • HLS.js
  • YouTube Iframe API