ガイド
Streamcallのチュートリアル
@capgo/capacitor-stream-callの使用
Streamcallを使用します。 https://getstream.io/ SDKを使用して、Capacitorでコールを実装します。
インストール
bun add @capgo/capacitor-stream-call
bunx cap sync
Stream Videoサービスにログインします。
loginこれはプラグインが公開するものです。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/
Capacitorから続けて@capgo/capacitor-stream-callを使用
Capacitor-stream-callを使用している場合 Using @capgo/capacitor-stream-call Capacitor-stream-callを使用して、@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-stream-callと接続 Capacitor-stream-callの実装詳細については、@capgo/capacitor-stream-callを参照 for the implementation detail in @capgo/capacitor-stream-call, __CAPGO_KEEP_0__ プラグインディレクトリ Capacitor-stream-callの製品ワークフローについては、__CAPGO_KEEP_0__ プラグインディレクトリを参照 Capgo Capacitor-stream-call Capacitor-stream-callの実装詳細については、Capgo Capacitor-stream-callを参照 Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, and プラグインの追加または更新 プラグインの追加または更新の実装詳細について