Richtlinie
Tutorial zu Streamcall
Mit @capgo/capacitor-stream-call verwenden
Verwendet das https://getstream.io/ SDK zum Implementieren von Anrufen in Capacitor.
Install
bun add @capgo/capacitor-stream-call
bunx cap sync
Was diese Plugin-Exposé enthält
login- Anmelden bei Stream Video-Dienst.logout- Abmelden vom Stream Video-Dienst.call- Beginnen Sie einen Anruf an einen anderen Benutzer.endCall- Beenden Sie den aktuellen Anruf.
Beispiel für die Verwendung
login
Anmelden bei 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
Beginnen Sie einen Anruf an einen anderen Benutzer.
import { StreamCall } from '@capgo/capacitor-stream-call';
await StreamCall.call({
userId: 'user-456',
type: 'video',
ring: true
});
endCall
Beenden Sie den aktuellen Anruf.
import { StreamCall } from '@capgo/capacitor-stream-call';
await StreamCall.endCall();
Vollständige Referenz
- GitHub: https://github.com/Cap-go/capacitor-streamcall/
- Dokumentation: /docs/plugins/streamcall/
Weitermachen Sie von Using @capgo/capacitor-stream-call
Wenn Sie Using verwenden Using @capgo/capacitor-stream-call um native Plugin-Arbeit zu planen, verbinden Sie es mit @capgo/capacitor-stream-call für die Implementierungsdetails in @capgo/capacitor-stream-call, Einstieg für die Implementierungsdetails in Einstieg, Capgo Plugin-Verzeichnis für das Produktworkflow in Capgo Plugin-Verzeichnis Capacitor Plugins von Capgo für die Implementierungsdetails in Capacitor Plugins von Capgo, und Hinzufügen oder Aktualisieren von Plugins für die Implementierungsdetails in Hinzufügen oder Aktualisieren von Plugins.