Guide
Tutorial on Streamcall
Using @capgo/capacitor-stream-call
Uses the https://getstream.io/ SDK to implement calling in Capacitor.
Install
bun add @capgo/capacitor-stream-call
bunx cap sync
What This Plugin Exposes
login- Login to Stream Video service.logout- Logout from Stream Video service.call- Initiate a call to another user.endCall- End the current call.
Example Usage
login
Login to Stream Video service.
import { StreamCall } from '@capgo/capacitor-stream-call';
await StreamCall.login({
token: 'your-token',
userId: 'user-123',
name: 'John Doe',
apiKey: 'your-api-key'
});
logout
Logout from Stream Video service.
import { StreamCall } from '@capgo/capacitor-stream-call';
await StreamCall.logout();
call
Initiate a call to another user.
import { StreamCall } from '@capgo/capacitor-stream-call';
await StreamCall.call({
userId: 'user-456',
type: 'video',
ring: true
});
endCall
End the current call.
import { StreamCall } from '@capgo/capacitor-stream-call';
await StreamCall.endCall();
Full Reference
- GitHub: https://github.com/Cap-go/capacitor-streamcall/
- Docs: /docs/plugins/streamcall/