메인 콘텐츠로 건너뛰기
플러그인으로 돌아가기
@capgo/capacitor-streamcall
튜토리얼
github.com/Cap-go에서 github

스트리밍콜

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

안내서

스트림콜에 대한 튜토리얼

capgo/capacitor-스트림콜 사용하기

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

설치

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

이 플러그인으로 노출되는 것

  • login - 스트림 비디오 서비스에 로그인
  • logout - 스트림 비디오 서비스에서 로그아웃
  • call - 다른 사용자에게 전화 걸기.
  • endCall - 현재 전화 끊기.

예시 사용

login

스트리밍 비디오 서비스 로그인.

import { StreamCall } from '@capgo/capacitor-stream-call';

await StreamCall.login({
  token: 'your-token',
  userId: 'user-123',
  name: 'John Doe',
  apiKey: 'your-api-key'
});

logout

스트리밍 비디오 서비스 로그아웃.

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

전체 참조