正在显示
2 个修改的文件
包含
5 行增加
和
1 行删除
| @@ -116,7 +116,7 @@ dependencies { | @@ -116,7 +116,7 @@ dependencies { | ||
| 116 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | 116 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" |
| 117 | implementation deps.coroutines.lib | 117 | implementation deps.coroutines.lib |
| 118 | implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.1.0' | 118 | implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.1.0' |
| 119 | - api 'com.github.webrtc-sdk:android:104.5112.01' | 119 | + api 'com.github.webrtc-sdk:android:104.5112.05' |
| 120 | api "com.squareup.okhttp3:okhttp:4.10.0" | 120 | api "com.squareup.okhttp3:okhttp:4.10.0" |
| 121 | api "com.twilio:audioswitch:1.1.5" | 121 | api "com.twilio:audioswitch:1.1.5" |
| 122 | implementation "androidx.annotation:annotation:1.4.0" | 122 | implementation "androidx.annotation:annotation:1.4.0" |
| @@ -338,6 +338,10 @@ internal constructor( | @@ -338,6 +338,10 @@ internal constructor( | ||
| 338 | val lowPreset = presets[0] | 338 | val lowPreset = presets[0] |
| 339 | 339 | ||
| 340 | fun addEncoding(videoEncoding: VideoEncoding, scale: Double) { | 340 | fun addEncoding(videoEncoding: VideoEncoding, scale: Double) { |
| 341 | + if (scale < 1.0) { | ||
| 342 | + LKLog.w { "Discarding encoding with a scale < 1.0: $scale." } | ||
| 343 | + return | ||
| 344 | + } | ||
| 341 | if (encodings.size >= EncodingUtils.VIDEO_RIDS.size) { | 345 | if (encodings.size >= EncodingUtils.VIDEO_RIDS.size) { |
| 342 | throw IllegalStateException("Attempting to add more encodings than we have rids for!") | 346 | throw IllegalStateException("Attempting to add more encodings than we have rids for!") |
| 343 | } | 347 | } |
-
请 注册 或 登录 后发表评论