メインコンテンツにジャンプ
プラグインに戻る
@capgo/capacitor-streamcall
チュートリアル
@capgo/capacitor-streamcall

ストリームコール

リアルタイム コミュニケーションに Stream SDK を使用して、ビデオ コールとライブ ストリーミングを統合する

ガイド

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();

フル リファレンス

Keep going from Using @capgo/capacitor-stream-call

Capacitor-Stream-Callを使用している場合 Using @capgo/capacitor-stream-call Capacitor-Stream-Callを使用してネイティブプラグインの作業を計画する場合、Capacitor-Stream-Callに接続してください @capgo/capacitor-stream-call for the implementation detail in @capgo/capacitor-stream-call, Getting Startedの実装詳細についてはGetting Startedを参照してください Capacitor Plugin Directory 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 プラグインの追加または更新 プラグインの追加または更新の実装詳細について