Commit e6169552 by polyv easefun

Update README.md

parent 5496796f
# RN 云课堂集成文档
## 1. 概述
......@@ -117,8 +116,8 @@ $ npm install
| 函数名 | 参数 | 功能说明 | 是否有返回值 |
| :------------ | ------------------------------------------------------------ | ---------------- | ------------ |
| init | vodKey:加密串(必填)<br/>decodeKey:加密密钥(必填)<br/>decodeIv:加密向量(必填)<br/>viewerId:观看者 ID(选填)<br/>nickName:观看者昵称(选填) | 获取视频码率列表 | 是 |
| liveLogin | userId:账号 ID(必填)<br/>channelId:频道号(必填)<br/>appId:应用 ID(必填)<br/>appSecret:应用密钥(必填) | 开始下载视频 | 是 |
| playbackLogin | userId:账号 ID(必填)<br/>channelId:频道号(必填)<br/>vodId:回放视频 ID(必填)<br/>appId:应用 ID(必填)<br/>appSecret:应用密钥(必填) | 暂停下载 | 是 |
| liveLogin | userId:账号 ID(必填)<br/>channelId:频道号(必填)<br/>appId:应用 ID(必填)<br/>appSecret:应用密钥(必填) | 直播登录 | 是 |
| playbackLogin | userId:账号 ID(必填)<br/>channelId:频道号(必填)<br/>vodId:回放视频 ID(必填)<br/>appId:应用 ID(必填)<br/>appSecret:应用密钥(必填) | 回放登录 | 是 |
以上函数的返回值参见 2.1.5。
......@@ -167,7 +166,45 @@ include ':react-native-reanimated'
project(':react-native-reanimated').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-reanimated/android')
```
工程的相关依赖配置:build.gradle
主工程下依赖配置:build.gradle
```java
allprojects {
repositories {
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
google()
jcenter()
maven { url "https://jitpack.io" }
maven {
url 'http://maven.aliyun.com/nexus/content/repositories/releases/'
}
//polyv依赖配置
maven { url 'https://dl.bintray.com/polyv/abn' }
}
}
//相关系统依赖版本
ext {
supportLibVersion = "27.1.1"
compileSdkVersion = 27
minSdkVersion = 16
targetSdkVersion = 27
versionCode = 8202
versionName = "0.8.2.02"
}
```
app工程的相关依赖配置:build.gradle
```java
dependencies {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment