{"id":24583472,"url":"https://github.com/itmisx/srs-webrtc-player","last_synced_at":"2025-03-17T17:14:32.237Z","repository":{"id":57466287,"uuid":"498814072","full_name":"itmisx/srs-webrtc-player","owner":"itmisx","description":"srs-webrtc-player 对 webrtc 进行了简单封装，支持 srs 的 rtc 流的播放。  集成了云台控制按钮，并通过事件回调传递。","archived":false,"fork":false,"pushed_at":"2022-08-21T10:54:07.000Z","size":3386,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T04:46:36.508Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/itmisx.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":"2022-06-01T16:28:24.000Z","updated_at":"2023-12-09T20:12:45.000Z","dependencies_parsed_at":"2022-08-28T19:31:11.902Z","dependency_job_id":null,"html_url":"https://github.com/itmisx/srs-webrtc-player","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itmisx%2Fsrs-webrtc-player","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itmisx%2Fsrs-webrtc-player/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itmisx%2Fsrs-webrtc-player/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itmisx%2Fsrs-webrtc-player/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itmisx","download_url":"https://codeload.github.com/itmisx/srs-webrtc-player/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244075636,"owners_count":20393979,"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":[],"created_at":"2025-01-24T04:46:42.003Z","updated_at":"2025-03-17T17:14:32.205Z","avatar_url":"https://github.com/itmisx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### 说明\n\nsrs-webrtc-player 对 webrtc 进行了简单封装，支持 srs 的 rtc 流的播放。\n\n集成了云台控制按钮，并通过事件回调传递。\n\n#### 安装\n\n```\nnpm intall git+https://github.com/itmisx/srs-webrtc-player\n```\n\n#### 属性\n\n- visible，显示控制\n- webrtcURL，webrtc 播放地址\n\n#### 事件\n\n- close，窗口关闭事件\n- control，控制事件。参数为（up,down,left,right,zoomin,zoomout）\n\n#### 示例\n\n```vue\n\u003ctemplate\u003e\n\t\u003cPlayer\n\t\t:webrtcURL=\"webrtcURL\"\n\t\tstyle=\"height: 600px; width: 800px\"\n\t\t:visible=\"visible\"\n\t\t@close=\"close\"\n\t\t@control=\"control\"\n\t\u003e\u003c/Player\u003e\n\u003c/template\u003e\n\u003cscript\u003e\nimport \"element-ui/lib/theme-chalk/index.css\";\nimport Player from \"srs-webrtc-player\";\n\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tvisible: true,\n\t\t\t// webrtc播放地址\n\t\t\twebrtcURL: \"\",\n\t\t};\n\t},\n\tcomponents: {\n\t\tPlayer,\n\t},\n\tmethods: {\n\t\t// 控制事件，根据dir做接口请求控制\n\t\tcontrol(dir) {\n\t\t\tconsole.log(dir);\n\t\t},\n\t\t// 关闭事件\n\t\tclose() {\n\t\t\tthis.visible = false;\n\t\t},\n\t},\n};\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitmisx%2Fsrs-webrtc-player","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitmisx%2Fsrs-webrtc-player","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitmisx%2Fsrs-webrtc-player/lists"}