{"id":13607892,"url":"https://github.com/hakobera/go-ayame","last_synced_at":"2025-04-25T18:32:42.890Z","repository":{"id":43089019,"uuid":"237761629","full_name":"hakobera/go-ayame","owner":"hakobera","description":"go-ayame is go client library for WebRTC Signaling Server Ayame","archived":false,"fork":false,"pushed_at":"2023-11-17T01:51:31.000Z","size":180,"stargazers_count":29,"open_issues_count":2,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T02:11:26.109Z","etag":null,"topics":["datachannel","go","p2p","webrtc","websocket"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hakobera.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-02T11:36:35.000Z","updated_at":"2025-03-16T17:49:37.000Z","dependencies_parsed_at":"2024-01-14T04:49:51.025Z","dependency_job_id":"8888c587-2b61-4401-bd2e-52f244e220ce","html_url":"https://github.com/hakobera/go-ayame","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakobera%2Fgo-ayame","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakobera%2Fgo-ayame/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakobera%2Fgo-ayame/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakobera%2Fgo-ayame/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hakobera","download_url":"https://codeload.github.com/hakobera/go-ayame/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250872384,"owners_count":21500808,"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":["datachannel","go","p2p","webrtc","websocket"],"created_at":"2024-08-01T19:01:22.566Z","updated_at":"2025-04-25T18:32:42.427Z","avatar_url":"https://github.com/hakobera.png","language":"Go","funding_links":[],"categories":["Media API"],"sub_categories":[],"readme":"# go-ayame\n\ngo-ayame は [WebRTC Signaling Server Ayame](https://github.com/OpenAyame/ayame) の Go 言語用のクライアントライブラリです。\n\n## 前提事項\n\ngo-ayame を利用するには go 1.14 以上が必要です。\n\n## 使い方\n\n```go\nimport \"github.com/hakobera/go-ayame/ayame\"\n\nsignalingURL := \"wss://ayame-labo.shiguredo.jp/signaling\"\nroomID := \"your_room_id\"\n\n// ayame.Connect の作成\nopts := ayame.DefaultOptions()\ncon := ayame.NewConnection(signalingURL, roomID, opts, false, false)\n\n// PeerConnecition 接続時の処理\ncon.OnConnect(func() {\n    fmt.Println(\"Connected\")\n})\n\n// 動画、音声パケットデータ受信時の処理\ncon.OnTrackPacket(func(track *webrtc.Track, packet *rtp.Packet) {\n    switch track.Kind() {\n    case webrtc.RTPCodecTypeAudio:\n        // Audio データを使って何かをする\n    case webrtc.RTPCodecTypeVideo:\n        // Video データを使って何かをする\n    }\n})\n\n// Ayame サーバーへ接続\nerr := con.Connect()\nif err != nil {\n    log.Fatal(\"failed to connect Ayame\", err)\n}\n```\n\n## License\n\n```\nCopyright 2020 Kazuyuki Honda (hakobera)\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhakobera%2Fgo-ayame","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhakobera%2Fgo-ayame","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhakobera%2Fgo-ayame/lists"}