가이드
스트림콜에 대한 튜토리얼
Using @capgo/capacitor-stream-call
스트림을 사용하여 __CAPGO_KEEP_1__에서 호출을 구현하는 방법 https://getstream.io/ SDK를 사용하여 Capacitor에서 호출을 구현하는 방법
설치
bun add @capgo/capacitor-stream-call
bunx cap sync
이 플러그인이 제공하는 것
login스트림 비디오 서비스에 로그인합니다.logout- Stream Video 서비스에서 로그아웃합니다.call- 다른 사용자에게 전화 걸립니다.endCall- 현재 전화 연결을 종료합니다.
예시 사용
login
Stream Video 서비스에 로그인합니다.
import { StreamCall } from '@capgo/capacitor-stream-call';
await StreamCall.login({
token: 'your-token',
userId: 'user-123',
name: 'John Doe',
apiKey: 'your-api-key'
});
logout
Stream Video 서비스에서 로그아웃합니다.
import { StreamCall } from '@capgo/capacitor-stream-call';
await StreamCall.logout();
call
다른 사용자에게 전화 걸립니다.
import { StreamCall } from '@capgo/capacitor-stream-call';
await StreamCall.call({
userId: 'user-456',
type: 'video',
ring: true
});
endCall
- 현재 전화 연결을 종료합니다.
import { StreamCall } from '@capgo/capacitor-stream-call';
await StreamCall.endCall();
전체 참조
- GitHub: https://github.com/Cap-go/capacitor-streamcall/
- 문서: /docs/plugins/streamcall/
Using @capgo/capacitor-stream-call
만약에 사용 중이라면 Using @capgo/capacitor-stream-call native 플러그인 작업을 계획하기 위해, 그것을 @capgo/capacitor-stream-call for the implementation detail in @capgo/capacitor-stream-call, Getting Started Getting Started Capgo Plugin Directory Capgo Plugin Directory Capacitor Plugins by Capgo Capacitor Plugins by Capgo 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트 구현 세부 사항에 대한 정보입니다.