설명서
스트림콜에 대한 튜토리얼
Using @capgo/capacitor-stream-call
__CAPGO_KEEP_0__를 사용하여 __CAPGO_KEEP_1__에서 호출하는 방법 __CAPGO_KEEP_0__를 사용하여 __CAPGO_KEEP_1__에서 호출하는 방법 SDK to implement calling in Capacitor.
__CAPGO_KEEP_0__를 사용하여 __CAPGO_KEEP_1__에서 호출하는 방법
bun add @capgo/capacitor-stream-call
bunx cap sync
설치
loginStream Video 서비스에 로그인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_KEEP_0__/__CAPGO_KEEP_1__-stream-call을 연결하세요. @capgo/capacitor-stream-call에서 구현 세부 정보를 참조하세요. for the implementation detail in @capgo/capacitor-stream-call, Getting Started에서 구현 세부 정보를 참조하세요. __CAPGO_KEEP_0__ 플러그인 디렉토리 Capgo 플러그인 디렉토리에서 제품 워크플로우를 참조하세요. Capgo 플러그인들 Capacitor 플러그인들에서 Capgo에 의해 구현 세부 정보를 참조하세요. for the implementation detail in Capacitor Plugins by Capgo, and 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트에 대한 구현 세부 정보.