react-native-nodemediaclient
Advanced tools
Comparing version 0.1.5 to 0.1.6
{ | ||
"name": "react-native-nodemediaclient", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "This project is the react-native packaging of NodeMediaClient-Android and NodeMediaClient-iOS SDK.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,2 +7,5 @@ # react-native-nodemediaclient | ||
## 0.进入项目目录 | ||
cd AwesomeProject | ||
## 1.安装 | ||
@@ -12,53 +15,9 @@ yarn add react-native-nodemediaclient | ||
## 2.链接 | ||
react-native link | ||
react-native link react-native-nodemediaclient | ||
## 3.手动修改 | ||
### Android | ||
android/build.gradle | ||
``` | ||
allprojects { | ||
repositories { | ||
mavenLocal() | ||
jcenter() | ||
maven { | ||
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm | ||
url "$rootDir/../node_modules/react-native/android" | ||
} | ||
// 添加这一段 | ||
maven { | ||
url 'https://jitpack.io' | ||
} | ||
} | ||
} | ||
``` | ||
### iOS | ||
ios/Podfile | ||
``` | ||
# Uncomment the next line to define a global platform for your project | ||
# platform :ios, '9.0' | ||
# ‘QLive’ 是此处的用例项目名,请改为你的项目名。 | ||
target 'QLive' do | ||
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks | ||
# use_frameworks! | ||
# Pods for QLive | ||
pod 'NodeMediaClient' | ||
end | ||
``` | ||
## 4.安装 NodeMediaClient-SDK | ||
### Android | ||
打开并编译项目,Android Studio会自动下载并链接sdk库而无需额外的操作。 | ||
### iOS | ||
```bash | ||
cd ios | ||
## 3.安装依赖 | ||
cd ios | ||
pod install | ||
``` | ||
打开 QLive.xcworkspace 来编译和管理项目 | ||
## 5.权限 | ||
## 4.NodeCameraView 权限 | ||
### Android | ||
@@ -83,3 +42,3 @@ ``` | ||
## 6.例子 | ||
## 5.例子 | ||
@@ -86,0 +45,0 @@ ### NodePlayerView |
@@ -8,2 +8,5 @@ # react-native-nodemediaclient | ||
## 0.Enter the project directory | ||
cd AwesomeProject | ||
## 1.install | ||
@@ -13,53 +16,9 @@ yarn add react-native-nodemediaclient | ||
## 2.link | ||
react-native link | ||
react-native link react-native-nodemediaclient | ||
## 3.Manually modify | ||
### Android | ||
android/build.gradle | ||
``` | ||
allprojects { | ||
repositories { | ||
mavenLocal() | ||
jcenter() | ||
maven { | ||
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm | ||
url "$rootDir/../node_modules/react-native/android" | ||
} | ||
// Add this section | ||
maven { | ||
url 'https://jitpack.io' | ||
} | ||
} | ||
} | ||
``` | ||
### iOS | ||
ios/Podfile | ||
``` | ||
# Uncomment the next line to define a global platform for your project | ||
# platform :ios, '9.0' | ||
# ‘QLive’ is an example project name, please change it to yours. | ||
target 'QLive' do | ||
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks | ||
# use_frameworks! | ||
# Pods for QLive | ||
pod 'NodeMediaClient' | ||
end | ||
``` | ||
## 4.install NodeMediaClient-SDK | ||
### Android | ||
Open and compile the project, Android studio will automatically download and link the library without additional operations. | ||
### iOS | ||
``` | ||
cd ios | ||
## 3.Install dependencies | ||
cd ios | ||
pod install | ||
``` | ||
Open the QLive.xcworkspace and compile the project | ||
## 5.permission | ||
## 4.NodeCameraView Permission | ||
@@ -85,3 +44,3 @@ ### Android | ||
## 6.Example | ||
## 5.Example | ||
@@ -88,0 +47,0 @@ ### NodePlayerView |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112245
97