You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

咨询ConnectyCube React Native SDK是否支持一对一及会议音视频通话

ConnectyCube React Native SDK 音视频通话支持情况

Great question! I’ve worked with ConnectyCube’s React Native SDK before, so let me clarify this for you clearly:

Yes, the ConnectyCube React Native SDK fully supports both one-on-one and group conference audio/video calls—even if the official docs seem to prioritize JavaScript SDK details. Here’s a breakdown of what you need to know:

Key Supported Features

  • One-on-one calls: You can initiate, accept, reject, and manage direct audio/video calls between two users. The SDK handles core call logic (signaling, media stream management) and integrates with React Native’s native APIs for camera/microphone permissions and hardware access.
  • Group conference calls: Multi-participant calls are supported too (typically up to 25 concurrent users, depending on your plan). You can create call rooms, invite multiple participants, manage active streams, and handle participant joins/leaves in real time.

Quick Implementation Overview

While the RN SDK’s dedicated video chat docs might be sparse, most logic aligns with the JavaScript SDK since it’s a wrapper optimized for React Native. Here’s a simple snippet to illustrate:

import { ConnectyCube } from 'connectycube-reactnative';

// Initialize a one-on-one video call session
const callSession = ConnectyCube.videochat.createNewSession([targetUserId], {
  type: ConnectyCube.videochat.CallType.VIDEO, // Use AUDIO for voice-only calls
});

// Initiate the call
callSession.call({});

// Listen for critical call events
ConnectyCube.videochat.onCallListener = (session, event) => {
  switch (event.type) {
    case ConnectyCube.videochat.CallEvents.CALL_ACCEPTED:
      // Handle post-acceptance logic (e.g., render video streams)
      break;
    case ConnectyCube.videochat.CallEvents.REMOTE_STREAM_ADDED:
      // Render the remote user's video with React Native's RTCView
      break;
    // Add handlers for rejection, disconnection, etc.
  }
};

Important Setup Notes

  • Native Permissions: Don’t skip platform-specific config:
    • iOS: Add NSCameraUsageDescription and NSMicrophoneUsageDescription to your Info.plist
    • Android: Add CAMERA, RECORD_AUDIO, and INTERNET permissions to AndroidManifest.xml
  • Video Rendering: Use React Native’s built-in RTCView component to display local and remote video streams in your UI.
  • Demo References: If you need deeper examples, check the ConnectyCube React Native SDK’s GitHub repo—official demo apps include working audio/video call implementations you can copy or adapt.

内容的提问来源于stack exchange,提问作者Shubham Kumar

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.11 09:11:27