{"id":23676168,"url":"https://github.com/zsc714725/gin-player","last_synced_at":"2025-04-11T01:32:17.437Z","repository":{"id":190806728,"uuid":"683392420","full_name":"ZSC714725/gin-player","owner":"ZSC714725","description":"使用gin加载html文件用于播放流媒体协议","archived":false,"fork":false,"pushed_at":"2024-08-08T06:00:06.000Z","size":1420,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T22:40:48.493Z","etag":null,"topics":["gin","hevc","hls","http-flv","la-s","las","rtsp","whep","whip"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ZSC714725.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,"governance":null}},"created_at":"2023-08-26T12:29:35.000Z","updated_at":"2025-01-06T07:38:31.000Z","dependencies_parsed_at":"2023-08-26T13:58:03.763Z","dependency_job_id":"587c8c95-2815-4718-ae4d-5d68bfe9b4f9","html_url":"https://github.com/ZSC714725/gin-player","commit_stats":null,"previous_names":["zsc714725/gin-player"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZSC714725%2Fgin-player","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZSC714725%2Fgin-player/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZSC714725%2Fgin-player/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZSC714725%2Fgin-player/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZSC714725","download_url":"https://codeload.github.com/ZSC714725/gin-player/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248324966,"owners_count":21084839,"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":["gin","hevc","hls","http-flv","la-s","las","rtsp","whep","whip"],"created_at":"2024-12-29T14:42:08.766Z","updated_at":"2025-04-11T01:32:17.415Z","avatar_url":"https://github.com/ZSC714725.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gin-player\n使用gin加载html和js文件用于播放流媒体协议,主要是HLS、HTTP-FLV、HTTP-Fmp4、WHIP、WHEP\n\n计划集成以下js及其demo，等后期有能力再去修改其demo的代码\n\n(1) [jessibuca](https://github.com/langhuihui/jessibuca)\n\n(2) [mpegts.js](https://github.com/xqq/mpegts.js):主要播放HTTP-FLV,支持HEVC\n\n(3) [hls.js](https://github.com/video-dev/hls.js):主要播放HLS协议\n\n(4) [webrtc](https://github.com/cloudflare/workers-sdk/tree/main/templates/stream/webrtc):支持WHIP和WHEP\n\n(5) [rtsp over websocket](https://github.com/cnotch/ipchub/tree/main/demos/rtsp):支持rtsp over websocket\n\n(6) [LAS](https://github.com/KwaiVideoTeam/las/tree/master/client/las.js):支持las协议,增加debug打印，打印pts和请求url\n\n# docker运行\n```\ndocker build -y gin-player:init ./\n\ndocker run -it -p 8080:8080 gin-player:init\n\n```\n\n# 各个demo播放地址\nhttp://127.0.0.1:8080/mpegts.html\n\nhttp://127.0.0.1:8080/jessibuca.html\n\nhttp://127.0.0.1:8080/hlsjs.html\n\nhttp://127.0.0.1:8080/whep?url=\u003cWHEP播放url\u003e\n\nhttp://127.0.0.1:8080/whip?url=\u003cWHIP推流url\u003e\n\nhttp://127.0.0.1:8080/rtsp.html\n\nhttp://127.0.0.1:8080/las.html\n\n## LAS各分辨率 mainfest.json示例\n```\n{\n    \"version\": \"1.0.0\",\n    \"adaptationSet\": [\n        {\n            \"duration\": 1000,\n            \"id\": 1,\n            \"representation\": [\n                {\n                    \"id\": 1,\n                    \"codec\": \"avc1.64001e,mp4a.40.5\",\n                    \"url\": \"https://las-tech.org.cn/kwai/las-test_ld500d.flv\",\n                    \"backupUrl\": [],\n                    \"host\": \"las-tech.org.cn\",\n                    \"maxBitrate\": 700,\n                    \"width\": 640,\n                    \"height\": 360,\n                    \"frameRate\": 25,\n                    \"qualityType\": \"SMOOTH\",\n                    \"qualityTypeName\": \"流畅\",\n                    \"hidden\": false,\n                    \"disabledFromAdaptive\": false,\n                    \"defaultSelected\": true\n                },\n                {\n                    \"id\": 2,\n                    \"codec\": \"avc1.64001f,mp4a.40.5\",\n                    \"url\": \"https://las-tech.org.cn/kwai/las-test_sd1000d.flv\",\n                    \"backupUrl\": [],\n                    \"host\": \"las-tech.org.cn\",\n                    \"maxBitrate\": 1300,\n                    \"width\": 960,\n                    \"height\": 540,\n                    \"frameRate\": 25,\n                    \"qualityType\": \"STANDARD\",\n                    \"qualityTypeName\": \"标清\",\n                    \"hidden\": false,\n                    \"disabledFromAdaptive\": false,\n                    \"defaultSelected\": false\n                },\n                {\n                    \"id\": 3,\n                    \"codec\": \"avc1.64001f,mp4a.40.5\",\n                    \"url\": \"https://las-tech.org.cn/kwai/las-test.flv\",\n                    \"backupUrl\": [],\n                    \"host\": \"las-tech.org.cn\",\n                    \"maxBitrate\": 2300,\n                    \"width\": 1280,\n                    \"height\": 720,\n                    \"frameRate\": 30,\n                    \"qualityType\": \"HIGH\",\n                    \"qualityTypeName\": \"高清\",\n                    \"hidden\": false,\n                    \"disabledFromAdaptive\": false,\n                    \"defaultSelected\": false\n                }\n            ]\n        }\n    ]\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzsc714725%2Fgin-player","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzsc714725%2Fgin-player","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzsc714725%2Fgin-player/lists"}