voximplant/react-native-voximplant
소개
Voximplant mobile SDK for React Native (iOS/Android)
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalVoximplant React Native SDK
The Voximplant React Native SDK adds voice and video calls to React Native apps on iOS and Android.
The SDK ships as two packages:
| Package | What it is for |
|---|---|
@voximplant/react-native-core |
Connection to the Voximplant Cloud, login, push notifications, and audio devices |
@voximplant/react-native-calls |
Calls, conferences, camera, and call statistics |
@voximplant/react-native-shared (common types and utilities) is installed with core and calls. An app does not need to add it unless it imports that package directly.
Guides and the API reference: voximplant.com/docs.
Requirements
| Requirement | Minimum |
|---|---|
| react | ^19.2.0 |
| react-native | >=0.77.0 <1.0.0 |
| Android | API 24 |
| iOS | 12 |
Install
npm install @voximplant/react-native-core
npn install @voximplant/react-native-calls
Calls expects core to be installed in the app, so install both packages together.
iOS
The Voximplant React Native SDK is built atop of Voximplant Android and iOS SDKs.
The Voximplant iOS SDK is distributed only through Swift Package Manager, so CocoaPods does not resolve it on its own. Add the podspecs for your React Native SDK version to the app Podfile, next to use_native_modules!. Then run pod install in the ios directory.
@voximplant/react-native-core
| SDK version | VoximplantCore |
|---|---|
| 2.0.0 | 3.3.0 |
@voximplant/react-native-calls
| SDK version | VoximplantCalls | VoximplantWebRTC |
|---|---|---|
| 2.0.0 | 3.3.0 | 3.3.0 |
Example. Replace <version> with the version from the table for your SDK version:
target 'YourApp' do
config = use_native_modules!
pod 'VoximplantCore', :podspec => 'https://github.com/voximplant/ios-sdk-releases/releases/download/<version>/VoximplantCore.podspec'
pod 'VoximplantCalls', :podspec => 'https://github.com/voximplant/ios-sdk-releases/releases/download/<version>/VoximplantCalls.podspec'
pod 'VoximplantWebRTC', :podspec => 'https://github.com/voximplant/ios-sdk-releases/releases/download/<version>/VoximplantWebRTC.podspec'
# use_react_native! and the rest of the target stay as they are
end
Apps that use @voximplant/react-native-calls should set NSCameraUsageDescription and NSMicrophoneUsageDescription in the application Info.plist. iOS shows these strings when the app requests camera and microphone access.
Start
Connect to the node your Voximplant account belongs to, then log in. The getting started guide provides information about the node values and the sign-in steps.
import {
Client,
ConnectionNode,
} from '@voximplant/react-native-core';
const client = Client.getInstance();
await client.connect({ node: ConnectionNode.Node1 });
await client.login('[email protected]', 'password');
Make and receive calls with CallManager from @voximplant/react-native-calls:
import { CallManager } from '@voximplant/react-native-calls';
const callManager = CallManager.getInstance();
const call = callManager.createCall('destination');
call?.start();
License
The SDK is licensed under the Apache License 2.0.
관련 프로젝트 살펴보기
불러오는 중…