{"id":17293011,"url":"https://github.com/monyone/zlplayer","last_synced_at":"2026-03-15T21:16:26.273Z","repository":{"id":41993345,"uuid":"441296656","full_name":"monyone/zlplayer","owner":"monyone","description":"low latency player used Breakout box","archived":false,"fork":false,"pushed_at":"2022-10-22T06:36:54.000Z","size":165,"stargazers_count":27,"open_issues_count":1,"forks_count":4,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-09T19:53:40.632Z","etag":null,"topics":["html5","low-latency","mpegts","player"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monyone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-23T21:12:05.000Z","updated_at":"2024-04-18T06:41:18.000Z","dependencies_parsed_at":"2022-08-04T01:15:10.615Z","dependency_job_id":null,"html_url":"https://github.com/monyone/zlplayer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monyone%2Fzlplayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monyone%2Fzlplayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monyone%2Fzlplayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monyone%2Fzlplayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monyone","download_url":"https://codeload.github.com/monyone/zlplayer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248869737,"owners_count":21174920,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html5","low-latency","mpegts","player"],"created_at":"2024-10-15T10:45:01.144Z","updated_at":"2026-03-15T21:16:21.224Z","avatar_url":"https://github.com/monyone.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zlplayer [![npm](https://img.shields.io/npm/v/zlplayer.svg?style=flat)](https://www.npmjs.com/package/zlplayer)\n\nHTML5 MPEG2-TS live stream player written in TypeScript.\n\n## Overview\n\nzlplayer works by decoding MPEG2-TS stream into VideoFrame/AudioData using [WebCodecs](https://www.w3.org/TR/webcodecs/),   \nfollowed by feeding into an an HTML5 `\u003cvideo\u003e` element through [MediaStreamTrack Insertable Streams (a.k.a. Breakout Box)](https://alvestrand.github.io/mediacapture-transform/chrome-96.html).\n\n## Feature\n\n* Playback for MPEG2-TS stream with H.264 + AAC codec transported in http(s)\n* Extremely low latency of less than 0.1 second in the best case\n\n## Installation\n\n```bash\nnpm install --save zlplayer\n```\n\nor \n\n```bash\nyarn add zlplayer\n```\n\n## Build\n\n```\nyarn\nyarn build\n```\n\n## Getting Started\n\n```\n\u003cscript src=\"zlplayer\"\u003e\u003c/script\u003e\n\u003cvideo id=\"videoElement\"\u003e\u003c/video\u003e\n\u003cscript\u003e\n  var videoElement = document.getElementById('videoElement');\n  var zlplayer = new window.zlplayer.Player({\n    // some options\n  });\n  zlplayer.attachMedia(videoElement);\n  zlplayer.load(/* url */).then(() =\u003e {\n    videoElement.play()\n  });\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonyone%2Fzlplayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonyone%2Fzlplayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonyone%2Fzlplayer/lists"}