WebRTC Signaling Server Ayame は WebRTC 向けのシグナリングサーバです。
WebRTC の P2P でのみ動作します。また動作を 1 ルームを最大 2 名に制限することでコードを小さく保っています。
AppRTC 互換のルーム機能を持っており、ルーム数はサーバスペックに依存しますが 1 万までは処理できるようにできてます。
OpenAyame プロジェクトは WebRTC Signaling Server Ayame をオープンソースとして公開し、継続的に開発を行うことで、 WebRTC を学びやすくするプロジェクトです。
詳細については下記をご確認ください。
Ayame はオープンソースソフトウェアですが、開発についてはオープンではありません。 そのためコメントやプルリクエストを頂いてもすぐには採用はしません。
まずは Discord にてご連絡ください。
Ayame を使ってみたい人は USE.md をお読みください。
簡単に Ayame を利用できる Web SDK を用意しています。
OpenAyame/ayame-web-sdk: Web SDK for WebRTC Signaling Server Ayame
const conn = Ayame.connection('wss://example.com:3000/ws', 'test-room');
const startConn = async () => {
const mediaStream = await navigator.mediaDevices.getUserMedia({audio: true, video: true});
const stream = await conn.connect(mediaStream);
conn.on('disconnect', (e) => console.log(e));
conn.on('addstream', (e) => {
document.querySelector('#remote-video').srcObject = e.stream;
});
document.querySelector('#local-video').srcObject = stream;
};
startConn();
このリポジトリにあるサンプルと全く同じ動作になっています
Ayame の詳細を知りたい人は DETAIL.md をお読みください。
hakobera/serverless-webrtc-signaling-serverが Ayame の互換サーバとして公開/開発されています。AWS によってサーバレスを実現した WebRTC P2P Signaling Server です。
Apache License 2.0
Copyright 2019, Shiguredo Inc, kdxu
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
WebRTC Signaling Server Ayame に関するバグ報告は GitHub Issues へお願いします。それ以外については Discord へお願いします。
https://github.com/OpenAyame/ayame/issues
ベストエフォートで運用しています。
時雨堂では有料サポートは提供しておりません
Content type
Image
Digest
Size
5.5 MB
Last updated
about 7 years ago
docker pull hakobera/ayame