Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
livekitAndroidXuningTest
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
davidliu
2023-10-06 18:26:00 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2023-10-06 18:26:00 +0900
Commit
38e7303ecfc5e2befffcc01db8048046d9fbb28f
38e7303e
1 parent
0e75e157
Add ability to disable audio RED (#291)
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
12 行增加
和
0 行删除
livekit-android-sdk/src/main/java/io/livekit/android/room/participant/LocalParticipant.kt
livekit-android-sdk/src/main/java/io/livekit/android/room/participant/LocalParticipant.kt
查看文件 @
38e7303
...
...
@@ -254,6 +254,7 @@ internal constructor(
options = options,
requestConfig = {
disableDtx = !options.dtx
disableRed = !options.red
source = LivekitModels.TrackSource.MICROPHONE
},
encodings = encodings,
...
...
@@ -739,18 +740,29 @@ data class VideoTrackPublishOptions(
abstract class BaseAudioTrackPublishOptions {
abstract val audioBitrate: Int?
/**
* dtx (Discontinuous Transmission of audio), enabled by default for mono tracks.
*/
abstract val dtx: Boolean
/**
* red (Redundant Audio Data), enabled by default for mono tracks.
*/
abstract val red: Boolean
}
data class AudioTrackPublishDefaults(
override val audioBitrate: Int? = 20_000,
override val dtx: Boolean = true,
override val red: Boolean = true,
) : BaseAudioTrackPublishOptions()
data class AudioTrackPublishOptions(
override val name: String? = null,
override val audioBitrate: Int? = null,
override val dtx: Boolean = true,
override val red: Boolean = true,
) : BaseAudioTrackPublishOptions(), TrackPublishOptions {
constructor(
name: String? = null,
...
...
请
注册
或
登录
后发表评论