Guide
Tutoriel sur Streamcall
Utilisez @capgo/capacitor-stream-call
Utilisez __CAPGO_KEEP_0__ pour mettre en œuvre les appels dans __CAPGO_KEEP_1__. Installer SDK to implement calling in Capacitor.
- Se connecter au service de vidéo Stream.
bun add @capgo/capacitor-stream-call
bunx cap sync
Voir la documentation
loginVoir le dépôt sur __CAPGO_KEEP_0__logout- Se déconnecter du service Vidéo Stream.call- Lancer une conversation avec un autre utilisateur.endCall- Finir la conversation en cours.
Exemple d'utilisation
login
Se connecter au service Vidéo Stream.
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 Vidéo Stream.
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 L'utilisation de @capgo/capacitor-stream-call Pour planifier le travail du plugin natif, connectez-l’avec @capgo/capacitor-stream-call pour les détails d'implémentation dans @capgo/capacitor-stream-call Démarrage pour les détails d'implémentation dans Démarrage Capgo Répertoire des plugins pour le flux de travail du produit dans Capgo Répertoire des plugins Capacitor Plugins par Capgo pour les détails d'implémentation dans Capacitor Plugins par Capgo, et Ajouter ou Mettre à Jour les Plugins pour les détails d'implémentation dans Ajouter ou Mettre à Jour les Plugins.