ガイド
Streamcallのチュートリアル
@capgo/capacitor-stream-callのチュートリアル
Streamcallを使用 https://getstream.io/ SDKを使用してCapacitorでコールを実装します。
インストール
bun add @capgo/capacitor-stream-call
bunx cap sync
このプラグインが公開するもの
login- Stream Video サービスにログインします。logout- Stream Video サービスからログアウトします。call- 他のユーザーに電話をかけます。endCall- 現在の通話を終了します。
例の使用
login
Stream Video サービスにログインします。
import { StreamCall } from '@capgo/capacitor-stream-call';
await StreamCall.login({
token: 'your-token',
userId: 'user-123',
name: 'John Doe',
apiKey: 'your-api-key'
});
logout
Stream Video サービスからログアウトします。
import { StreamCall } from '@capgo/capacitor-stream-call';
await StreamCall.logout();
call
- 他のユーザーに電話をかけます。
import { StreamCall } from '@capgo/capacitor-stream-call';
await StreamCall.call({
userId: 'user-456',
type: 'video',
ring: true
});
endCall
- 現在の通話を終了します。
import { StreamCall } from '@capgo/capacitor-stream-call';
await StreamCall.endCall();
フル リファレンス
- GitHub: https://github.com/Cap-go/capacitor-streamcall/
- ドキュメント: /docs/plugins/streamcall/
Keep going from Using @capgo/capacitor-stream-call
Capacitor-StreamCallを使用している場合 Using @capgo/capacitor-stream-call Capacitor-StreamCallを使用して、ネイティブプラグインの作業計画を立てるには、 @capgo/capacitor-stream-call for the implementation detail in @capgo/capacitor-stream-call, Capacitor-StreamCallの実装詳細については、Capacitor-StreamCallを参照してください Capacitor プラグイン ディレクトリ Capgo Plugin Directory for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, and プラグインの追加または更新 プラグインの追加または更新の実装詳細について