mpegts.js
xqq/mpegts.js · Public GitHub repository
HTML5 MPEG2-TS / FLV Stream Player
Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

About this project
Author-written excerpt from the project README.
HTML5 MPEG2-TS stream player written in TypeScript & JavaScript.
mpegts.js is optimized for low-latency live stream playback, such as DVB/ISDB television or surveillance cameras.
mpegts.js works by transmuxing MPEG2-TS stream into ISO BMFF (Fragmented MP4) segments, followed by feeding mp4 segments into an HTML5 element through [Media Source Extensions] API.
- Playback for MPEG2-TS stream with H.264/H.265 + AAC codec transported in http(s) or WebSocket
- Playback for FLV stream with H.264/H.265 + AAC codec transported in http(s) or WebSocket
- Extremely low latency of less than 1 second in the best case
- Playback for .m2ts file like BDAV/BDMV with 192 bytes TS packet, or 204 bytes TS packet
- Support handling dynamic codec parameters change (e.g. video resolution change)
Requirements and intended audience
HTML5 MPEG2-TS stream player written in TypeScript & JavaScript.
Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.
Statements extracted from the author’s documentation · Checked 2026-10-25. Source: https://github.com/xqq/mpegts.js/blob/master/README.md
Recorded maintenance information
Last recorded source update: 2026-11-18. Saved release: v1.8.2 · 2026-08-14. These dates do not guarantee ongoing maintenance.
- Technologies
- JavaScript
- Licence
- Apache-2.0. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
- Demo check
- A public page loaded on 2026-11-12. This does not test every feature.
Browse related categories
More projects to explore
iptv
iptv-org/iptv
Collection of publicly available IPTV channels from all over the world
HowToLiveBetter
eternity4719/HowToLiveBetter
高性价比人生指南: 长寿防病、急救、省钱理财、法律红线、失业与工伤、医保社保、恋爱婚育、怀孕育儿、创业与做平台合规、出国与技能。每条写明成本、收益、证据等级和原始出处,只引期刊论文与官方文件。
OpenManus
FoundationAgents/OpenManus
No fortress, purely open ground. OpenManus is Coming.
JavaScript30
wesbos/JavaScript30
30 Day Vanilla JS Challenge