Zu Hauptinhalt springen
Zurück zu Plugins
@capgo/capacitor-streamcall
Anleitung
@capgo/capacitor-streamcall

Streamcall

Integriere Videotelefonie und Live-Streaming mit Stream SDK für Echtzeit-Kommunikation

Anleitung

Tutorial zu Streamcall

Verwendung von @capgo/capacitor-stream-call

Verwendet die https://getstream.io/ SDK zum Implementieren von Anrufen in Capacitor.

Installieren

bun add @capgo/capacitor-stream-call
bunx cap sync

Was dieses Plugin bereitstellt

  • login - Anmeldung bei Stream Video-Dienst.
  • logout - Abmelden vom Stream Video-Dienst.
  • call - Eine Anrufinitiierung an einen anderen Benutzer starten.
  • endCall - Die aktuelle Anrufbeendigung.

Beispielverwendung

login

Anmeldung zum Stream Video-Dienst.

import { StreamCall } from '@capgo/capacitor-stream-call';

await StreamCall.login({
  token: 'your-token',
  userId: 'user-123',
  name: 'John Doe',
  apiKey: 'your-api-key'
});

logout

Abmelden vom Stream Video-Dienst.

import { StreamCall } from '@capgo/capacitor-stream-call';

await StreamCall.logout();

call

Eine Anrufinitiierung an einen anderen Benutzer starten.

import { StreamCall } from '@capgo/capacitor-stream-call';

await StreamCall.call({
  userId: 'user-456',
  type: 'video',
  ring: true
});

endCall

Die aktuelle Anrufbeendigung.

import { StreamCall } from '@capgo/capacitor-stream-call';

await StreamCall.endCall();

Vollständige Referenz

Weitermachen von Using @capgo/capacitor-stream-call

Wenn Sie Using verwenden Verwenden Sie @capgo/capacitor-stream-call Um native Plugin-Arbeit zu planen, verbinden Sie es mit @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-stream-call für die Implementierungsdetails in @capgo/capacitor-stream-call for the implementation detail in @capgo/capacitor-stream-call, für die Implementierungsdetails in Einstieg __CAPGO_KEEP_0__ Plugin-Verzeichnis für den Produktworkflow in Capgo Plugin-Verzeichnis Capgo Plugins von __CAPGO_KEEP_1__ für die Implementierungsdetails in Capacitor Plugins von Capgo for the implementation detail in Capacitor Plugins by Capgo, and Plugins hinzufügen oder aktualisieren Für die Implementierungsdetails in Plugins hinzufügen oder aktualisieren.