Committed by
GitHub
disable receiving stream when not in use (#87)
* remove jcenter and fix dependencies * disable receiving stream when not in use * cleanup
正在显示
5 个修改的文件
包含
8 行增加
和
7 行删除
| @@ -11,7 +11,6 @@ buildscript { | @@ -11,7 +11,6 @@ buildscript { | ||
| 11 | repositories { | 11 | repositories { |
| 12 | google() | 12 | google() |
| 13 | mavenCentral() | 13 | mavenCentral() |
| 14 | - jcenter() | ||
| 15 | } | 14 | } |
| 16 | dependencies { | 15 | dependencies { |
| 17 | classpath 'com.android.tools.build:gradle:7.1.2' | 16 | classpath 'com.android.tools.build:gradle:7.1.2' |
| @@ -30,7 +29,6 @@ subprojects { | @@ -30,7 +29,6 @@ subprojects { | ||
| 30 | repositories { | 29 | repositories { |
| 31 | google() | 30 | google() |
| 32 | mavenCentral() | 31 | mavenCentral() |
| 33 | - jcenter() | ||
| 34 | maven { url 'https://jitpack.io' } | 32 | maven { url 'https://jitpack.io' } |
| 35 | } | 33 | } |
| 36 | } | 34 | } |
| @@ -111,7 +111,7 @@ dependencies { | @@ -111,7 +111,7 @@ dependencies { | ||
| 111 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | 111 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" |
| 112 | implementation deps.coroutines.lib | 112 | implementation deps.coroutines.lib |
| 113 | implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.1.0' | 113 | implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.1.0' |
| 114 | - api 'com.github.webrtc-sdk:android:97.4692.01' | 114 | + api 'com.github.webrtc-sdk:android:97.4692.04' |
| 115 | api "com.squareup.okhttp3:okhttp:4.9.1" | 115 | api "com.squareup.okhttp3:okhttp:4.9.1" |
| 116 | implementation "androidx.annotation:annotation:1.3.0" | 116 | implementation "androidx.annotation:annotation:1.3.0" |
| 117 | implementation "androidx.core:core:${versions.androidx_core}" | 117 | implementation "androidx.core:core:${versions.androidx_core}" |
| @@ -185,6 +185,11 @@ class RemoteTrackPublication( | @@ -185,6 +185,11 @@ class RemoteTrackPublication( | ||
| 185 | private fun sendUpdateTrackSettingsImpl() { | 185 | private fun sendUpdateTrackSettingsImpl() { |
| 186 | val participant = this.participant.get() as? RemoteParticipant ?: return | 186 | val participant = this.participant.get() as? RemoteParticipant ?: return |
| 187 | 187 | ||
| 188 | + val rtcTrack = track?.rtcTrack | ||
| 189 | + if (rtcTrack is org.webrtc.VideoTrack) { | ||
| 190 | + rtcTrack.setEnabled(!disabled) | ||
| 191 | + } | ||
| 192 | + | ||
| 188 | participant.signalClient.sendUpdateTrackSettings( | 193 | participant.signalClient.sendUpdateTrackSettings( |
| 189 | sid, | 194 | sid, |
| 190 | disabled, | 195 | disabled, |
| @@ -46,9 +46,8 @@ dependencies { | @@ -46,9 +46,8 @@ dependencies { | ||
| 46 | implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:${versions.androidx_lifecycle}" | 46 | implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:${versions.androidx_lifecycle}" |
| 47 | implementation "androidx.lifecycle:lifecycle-common-java8:${versions.androidx_lifecycle}" | 47 | implementation "androidx.lifecycle:lifecycle-common-java8:${versions.androidx_lifecycle}" |
| 48 | implementation 'com.google.android.material:material:1.3.0' | 48 | implementation 'com.google.android.material:material:1.3.0' |
| 49 | - implementation "com.xwray:groupie:${versions.groupie}" | ||
| 50 | - implementation "com.xwray:groupie-viewbinding:${versions.groupie}" | ||
| 51 | - implementation 'com.snakydesign.livedataextensions:lives:1.3.0' | 49 | + implementation "com.github.lisawray.groupie:groupie:${versions.groupie}" |
| 50 | + implementation "com.github.lisawray.groupie:groupie-viewbinding:${versions.groupie}" | ||
| 52 | implementation deps.timber | 51 | implementation deps.timber |
| 53 | implementation project(":sample-app-common") | 52 | implementation project(":sample-app-common") |
| 54 | testImplementation 'junit:junit:4.12' | 53 | testImplementation 'junit:junit:4.12' |
-
请 注册 或 登录 后发表评论