How mpegts.js works
mastermpegts.js is an HTML5 MPEG2-TS stream player optimized for low-latency live stream playback (e.g., DVB/ISDB television or surveillance cameras).
It works by transmuxing MPEG2-TS streams into ISO BMFF (Fragmented MP4) segments, which are then fed into an HTML5 <video> element using the Media Source Extensions (MSE) API.