본문으로 바로가기
Back to 플러그인
@capgo/capacitor-streamcall
튜토리얼
@capgo/capacitor-streamcall

스트림콜

Integrate video calling and live streaming with Stream SDK for real-time communication

__CAPGO_KEEP_0__

Streamcall에 대한 __CAPGO_KEEP_0__

@capgo/capacitor-stream-call을 사용하여

__CAPGO_KEEP_0__을 사용하여 https://getstream.io/ SDK를 사용하여 Capacitor에서 호출을 구현합니다.

설치

bun add @capgo/capacitor-stream-call
bunx cap sync

이 플러그인은 다음을 제공합니다.

  • login - Stream 비디오 서비스에 로그인합니다.
  • logout - Stream Video 서비스에서 로그아웃합니다.
  • call - 다른 사용자에게 전화 걸기.
  • endCall - 현재 전화 연결 종료.

Example Usage

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();

Full Reference

Using @capgo/capacitor-stream-call

만약 __CAPGO_KEEP_0__을 사용하고 있다면 Using @capgo/capacitor-stream-call native 플러그인 작업을 계획하고 싶다면 __CAPGO_KEEP_0__/__CAPGO_KEEP_1__-stream-call과 연결하세요 @capgo/capacitor-stream-call @capgo/capacitor-stream-call의 구현 세부 정보를 참조하세요 Getting Started Getting Started의 구현 세부 정보를 참조하세요 Capgo 플러그인 디렉토리 Capgo 플러그인 디렉토리의 제품 워크플로우를 참조하세요 Capacitor Capgo에 의해 Capacitor Capgo의 구현 세부 정보를 참조하세요 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트 구현 세부 사항에 대한