Project 08 · Web Development / Media Playback
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 repositoryPurpose
Different video sources require different playback mechanisms. This project provides a unified interface that detects the source and selects an appropriate browser player.
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.
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
- Media URL
- Protocol detection
- YouTube / HLS.js / HTML5
- Playback interface
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.
Engineering decisions
- 01Uses browser-native technologies without a frontend framework.
- 02Selects playback strategy from the detected media URL type.
Evaluation / results
The repository documents player capabilities but does not publish a quantitative playback benchmark.
Technology stack
- JavaScript
- HTML5
- CSS3
- HLS.js
- YouTube Iframe API