Guide
Tutoriel sur Streamcall
En utilisant @capgo/capacitor-stream-call
Utilise https://getstream.io/ SDK pour mettre en œuvre l'appel dans Capacitor.
Installer
bun add @capgo/capacitor-stream-call
bunx cap sync
Ce plugin expose
login- Se connecter au service de vidéo Stream.logout- Se déconnecter du service de vidéo en direct.call- Lancer une conversation avec un autre utilisateur.endCall- Finir la conversation en cours.
Exemple d'utilisation
login
Se connecter au service de vidéo en direct.
import { StreamCall } from '@capgo/capacitor-stream-call';
await StreamCall.login({
token: 'your-token',
userId: 'user-123',
name: 'John Doe',
apiKey: 'your-api-key'
});
logout
Se déconnecter du service de vidéo en direct.
import { StreamCall } from '@capgo/capacitor-stream-call';
await StreamCall.logout();
call
Lancer une conversation avec un autre utilisateur.
import { StreamCall } from '@capgo/capacitor-stream-call';
await StreamCall.call({
userId: 'user-456',
type: 'video',
ring: true
});
endCall
Finir la conversation en cours.
import { StreamCall } from '@capgo/capacitor-stream-call';
await StreamCall.endCall();
Référence complète
- GitHub: https://github.com/Cap-go/capacitor-streamcall/
- Documentation : /docs/plugins/streamcall/
Continuez à partir de l'utilisation de @capgo/capacitor-stream-call
Si vous utilisez Utilisez @capgo/capacitor-stream-call pour planifier le travail de plugin natif, connectez-le à @capgo/capacitor-stream-call pour les détails d'implémentation dans @capgo/capacitor-stream-call, Prise en main pour les détails d'implémentation dans Prise en main, Répertoire de plugin Capgo pour le flux de travail du produit dans Répertoire de plugin Capgo, Plugins Capacitor par Capgo pour les détails d'implémentation dans Plugins Capacitor par Capgo, et Ajouter ou Mettre à Jour les Plugins pour les détails d'implémentation dans Ajouter ou Mettre à Jour les Plugins.