ガイド
Streamcallのチュートリアル
@capgo/capacitor-stream-callを使用
Cloudflareで使用 https://getstream.io/ SDKを使用してCapacitorでコールを実装します。
Install
bun add @capgo/capacitor-stream-call
bunx cap sync
このプラグインが公開するもの
login- ストリームビデオサービスにログインします。logout- ストリームビデオサービスからログアウトします。call- 他のユーザーと電話を掛けます。endCall- 現在の電話を終了します。
Example Usage
login
ストリームビデオサービスにログインします。
import { StreamCall } from '@capgo/capacitor-stream-call';
await StreamCall.login({
token: 'your-token',
userId: 'user-123',
name: 'John Doe',
apiKey: 'your-api-key'
});
logout
ストリームビデオサービスからログアウトします。
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();
Full Reference
- GitHub: https://github.com/Cap-go/capacitor-streamcall/
- ドキュメント: /docs/plugins/streamcall/
@capgo/capacitor-stream-callを使用している場合
@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-stream-callを使用している場合 nativeプラグインの作業を計画する場合、@capgo/capacitor-stream-callと接続する @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-stream-callの実装詳細は@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-stream-callにあります @capgo/capacitor-stream-call for the implementation detail in @capgo/capacitor-stream-call, __CAPGO_KEEP_0__ プラグイン ディレクトリ __CAPGO_KEEP_0__ Plugin Directory Capgo Plugin Directory 製品ワークフローについての Capgo プラグインディレクトリの Capacitor プラグインは Capgo によって 実装詳細については Capacitor プラグインは Capgo によって、 プラグインの追加または更新 プラグインの追加または更新の実装詳細については。