ガイド
Streamcallのチュートリアル
@capgo/capacitor-stream-callを使用
__CAPGO_KEEP_0__を使用して https://getstream.io/ SDKを使用してCapacitorでコールを実装します。
インストール
bun add @capgo/capacitor-stream-call
bunx cap sync
このプラグインが公開するもの
login- Stream Video サービスにログインします。logout- Stream Video サービスからログアウトします。call- 他のユーザーと電話をかけます。endCall- 現在の電話を終了します。
Example Usage
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();
Full Reference
- GitHub: https://github.com/Cap-go/capacitor-streamcall/
- Docs: /docs/plugins/streamcall/
@capgo/capacitor-stream-call
使用中の @capgo/capacitor-stream-call native プラグインの作業を計画するには、@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-stream-call @capgo/capacitor-stream-call @capgo/capacitor-stream-call の実装詳細については、@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-stream-call を参照してください。 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 プラグインの追加または更新 プラグインの追加または更新の実装詳細のために。