{"id":16259976,"url":"https://github.com/songlin123/video-call","last_synced_at":"2025-10-05T19:08:31.302Z","repository":{"id":126184095,"uuid":"142952362","full_name":"SongLin123/video-call","owner":"SongLin123","description":null,"archived":false,"fork":false,"pushed_at":"2018-07-31T03:05:15.000Z","size":186,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-30T08:35:02.369Z","etag":null,"topics":["agoraio","es6"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/SongLin123.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":"2018-07-31T02:33:46.000Z","updated_at":"2020-05-10T09:41:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"60f118ea-d0a4-4ceb-82be-5721cdb2dc41","html_url":"https://github.com/SongLin123/video-call","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"a0dfe043a3b23368f0d7d71bf9468acc40b0c038"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SongLin123/video-call","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SongLin123%2Fvideo-call","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SongLin123%2Fvideo-call/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SongLin123%2Fvideo-call/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SongLin123%2Fvideo-call/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SongLin123","download_url":"https://codeload.github.com/SongLin123/video-call/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SongLin123%2Fvideo-call/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271223256,"owners_count":24721629,"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-08-19T02:00:09.176Z","response_time":63,"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":["agoraio","es6"],"created_at":"2024-10-10T16:05:55.365Z","updated_at":"2025-10-05T19:08:26.262Z","avatar_url":"https://github.com/SongLin123.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# video-call\n\n一个基于声网（agora.io）的视频通话及信令api制作的一对一语音电话的sdk，支持es2015，支持async函数。\n\n## 使用\n\n  \u003e \u003cdiv id=\"localElementId\"\u003e\u003c/div\u003e\n  \n  \u003e \u003cdiv id=\"remoteElementId\"\u003e\u003c/div\u003e\n  \n  \u003e import Client from \"agora\";\n  \n  \u003e let client=new Client(\"your agora appid\");\n  \n  \u003e client.login(\"account\");\n  \n  \u003e client.calling({remotecount=\"remotecount\",localElementId=\"localElementId\",remoteElementId=\"remoteElementId\"})\n## API\n\n### METHOD\n  login(account)\n  \n  登陆你要使用的uid，必须为数字\n  \n  \n  calling({\n    remotecount,\n    localElementId,\n    remoteElementId\n  })\n \n    拨打电话\n    remotecount 拨打的uid,\n    localElementId 本地视频流播放的标签id,\n    remoteElementId 远程视频流播放的标签id\n    \n   endCall() \n   \n    结束呼叫\n   \n   refuseCall()\n   \n    拒绝接听\n   \n   \n   acceptCall({\n    remotecount,\n    localElementId,\n    remoteElementId\n  })\n  \n    接听电话\n    remotecount 拨打的uid,\n    localElementId 本地视频流播放的标签id,\n    remoteElementId 远程视频流播放的标签id\n  \n   \n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonglin123%2Fvideo-call","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonglin123%2Fvideo-call","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonglin123%2Fvideo-call/lists"}