davidliu
Committed by GitHub

disable receiving stream when not in use (#87)

* remove jcenter and fix dependencies

* disable receiving stream when not in use

* cleanup
... ... @@ -11,7 +11,6 @@ buildscript {
repositories {
google()
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
... ... @@ -30,7 +29,6 @@ subprojects {
repositories {
google()
mavenCentral()
jcenter()
maven { url 'https://jitpack.io' }
}
}
... ...
... ... @@ -111,7 +111,7 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation deps.coroutines.lib
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.1.0'
api 'com.github.webrtc-sdk:android:97.4692.01'
api 'com.github.webrtc-sdk:android:97.4692.04'
api "com.squareup.okhttp3:okhttp:4.9.1"
implementation "androidx.annotation:annotation:1.3.0"
implementation "androidx.core:core:${versions.androidx_core}"
... ...
... ... @@ -185,6 +185,11 @@ class RemoteTrackPublication(
private fun sendUpdateTrackSettingsImpl() {
val participant = this.participant.get() as? RemoteParticipant ?: return
val rtcTrack = track?.rtcTrack
if (rtcTrack is org.webrtc.VideoTrack) {
rtcTrack.setEnabled(!disabled)
}
participant.signalClient.sendUpdateTrackSettings(
sid,
disabled,
... ...
... ... @@ -46,9 +46,8 @@ dependencies {
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:${versions.androidx_lifecycle}"
implementation "androidx.lifecycle:lifecycle-common-java8:${versions.androidx_lifecycle}"
implementation 'com.google.android.material:material:1.3.0'
implementation "com.xwray:groupie:${versions.groupie}"
implementation "com.xwray:groupie-viewbinding:${versions.groupie}"
implementation 'com.snakydesign.livedataextensions:lives:1.3.0'
implementation "com.github.lisawray.groupie:groupie:${versions.groupie}"
implementation "com.github.lisawray.groupie:groupie-viewbinding:${versions.groupie}"
implementation deps.timber
implementation project(":sample-app-common")
testImplementation 'junit:junit:4.12'
... ...
pluginManagement {
repositories {
gradlePluginPortal()
jcenter()
}
}
include ':sample-app', ':sample-app-compose', ':livekit-android-sdk'
... ...