{"id":19703593,"url":"https://github.com/monibuca/hlsplugin","last_synced_at":"2025-07-29T23:02:46.736Z","repository":{"id":57515476,"uuid":"244262809","full_name":"Monibuca/hlsplugin","owner":"Monibuca","description":"hls plugin for monibuca","archived":false,"fork":false,"pushed_at":"2024-06-12T00:09:03.000Z","size":571,"stargazers_count":3,"open_issues_count":5,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-29T14:35:04.529Z","etag":null,"topics":["hls"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Monibuca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-02T02:32:21.000Z","updated_at":"2021-11-16T06:43:07.000Z","dependencies_parsed_at":"2024-06-20T03:01:51.156Z","dependency_job_id":"6df00fd6-7b0e-4000-a330-9994e01b8350","html_url":"https://github.com/Monibuca/hlsplugin","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/Monibuca/hlsplugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fhlsplugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fhlsplugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fhlsplugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fhlsplugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Monibuca","download_url":"https://codeload.github.com/Monibuca/hlsplugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fhlsplugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267777168,"owners_count":24142755,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["hls"],"created_at":"2024-11-11T21:18:22.543Z","updated_at":"2025-07-29T23:02:46.653Z","avatar_url":"https://github.com/Monibuca.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hlsplugin\nhls plugin for monibuca\n\n\u003e 该插件依赖github.com/Monibuca/tsplugin\n\n## 功能\n\n1. 该插件可用来拉取网络上的m3u8文件并解析后转换成其他协议\n2. 该插件可以在服务器写HLS文件，配合nginx等可以提供HLS的服务\n\n## 配置\n\n```toml\n[Plugins.HLS]\nEnableWrite = false\nFragment = 5\nWindow = 2\nPath = \"hls\"\n```\nEnableWrite 用来控制是否启用HLS文件写入功能\n\n\n## 使用方法\n\n1. 创建HLS结构体实例\n2. 设置该对象的Video.Req和Audio.Req属性（用于请求m3u8文件）没有audio单独的m3u8可不设置Audio.Req属性\n3. 调用对象的Publish方法，传入流名称和上级publisher，如果没有就传本对象\n\n\u003e 如果拉取远程ts文件需要cookie或者http的验证，可以将验证头设置到HLS对象的TsHead属性中。\n\n```go\nimport \t. \"github.com/Monibuca/tsplugin\"\nfunc demo(){\n    p:=new(HLS)\n    p.Video.Req = http.NewRequest(\"GET\",\"http://xxxx.com/demo.m3u8\", nil)\n    p.Publish(\"live/hls\",p)\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonibuca%2Fhlsplugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonibuca%2Fhlsplugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonibuca%2Fhlsplugin/lists"}