1、升级ZeGo直播SDK
2、修复直播拉流播放状态,
/**
* 连接失败,播放失败,都走这里,可以展示播失败信息
*
* @param errorMsg
*/
void onError(String errorMsg);
/**
* 拉流成功且处于播放中
*/
void onPlaying();
/**
* 拉流重试中,还没成功,可以做Loading
*/
void onPlaRequesting();
51 lines
1.6 KiB
Groovy
51 lines
1.6 KiB
Groovy
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
apply from: "config.gradle"
|
|
|
|
buildscript {
|
|
ext.kotlin_version = "1.4.31"
|
|
repositories {
|
|
maven { url 'https://storage.zego.im/maven' }
|
|
maven {
|
|
url 'http://maven.aliyun.com/nexus/content/groups/public/'
|
|
}
|
|
maven {
|
|
url 'http://nexus.zhidaoauto.com/repository/maven-releases/'
|
|
}
|
|
maven {
|
|
url 'http://nexus.zhidaoauto.com/repository/maven-public/'
|
|
}
|
|
google()
|
|
gradlePluginPortal()
|
|
}
|
|
dependencies {
|
|
classpath "com.android.tools.build:gradle:3.5.3"
|
|
classpath 'gradle.plugin.com.google.protobuf:protobuf-gradle-plugin:0.8.18'
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
|
|
// 对kotlin生成doc
|
|
classpath 'org.jetbrains.dokka:dokka-gradle-plugin:0.10.1'
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
// in the individual module build.gradle files
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
maven { url 'https://storage.zego.im/maven' }
|
|
maven {
|
|
url 'http://maven.aliyun.com/nexus/content/groups/public/'
|
|
}
|
|
maven {
|
|
url 'http://nexus.zhidaoauto.com/repository/maven-releases/'
|
|
}
|
|
maven {
|
|
url 'http://nexus.zhidaoauto.com/repository/maven-public/'
|
|
}
|
|
google()
|
|
gradlePluginPortal()
|
|
}
|
|
}
|
|
|
|
task clean(type: Delete) {
|
|
delete rootProject.buildDir
|
|
} |