mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-20 13:08:07 +00:00
Use newly available core.setPreferredVideoDefinitionByName method
This commit is contained in:
parent
be667bbe1b
commit
0b6f286b58
2 changed files with 2 additions and 2 deletions
|
|
@ -151,7 +151,7 @@ dependencies {
|
|||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||
implementation 'androidx.appcompat:appcompat:1.2.0'
|
||||
implementation "androidx.media:media:1.1.0"
|
||||
implementation 'androidx.media:media:1.1.0'
|
||||
implementation 'androidx.fragment:fragment-ktx:1.2.5'
|
||||
implementation 'androidx.core:core-ktx:1.3.1'
|
||||
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.0'
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ class VideoSettingsViewModel : GenericSettingsViewModel() {
|
|||
|
||||
val videoSizeListener = object : SettingListenerStub() {
|
||||
override fun onListValueChanged(position: Int) {
|
||||
core.setPreferredVideoDefinition(Factory.instance().createVideoDefinitionFromName(videoSizeLabels.value.orEmpty()[position]))
|
||||
core.setPreferredVideoDefinitionByName(videoSizeLabels.value.orEmpty()[position])
|
||||
}
|
||||
}
|
||||
val videoSizeIndex = MutableLiveData<Int>()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue