voximplant/react-native-voximplant
关于
Voximplant mobile SDK for React Native (iOS/Android)
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Voximplant 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.
探索相关项目
加载中…