mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 03:18:06 +00:00
Replaced Recorder.FileFormat by MediaFileFormat
This commit is contained in:
parent
99dfab9139
commit
92b8a89ba7
1 changed files with 3 additions and 3 deletions
|
|
@ -382,7 +382,7 @@ class ChatMessageSendingViewModel(private val chatRoom: ChatRoom) : ViewModel()
|
|||
}
|
||||
Recorder.State.Closed -> {
|
||||
val extension = when (recorder.params.fileFormat) {
|
||||
Recorder.FileFormat.Mkv -> "mkv"
|
||||
MediaFileFormat.Mkv -> "mkv"
|
||||
else -> "wav"
|
||||
}
|
||||
val tempFileName = "voice-recording-${System.currentTimeMillis()}.$extension"
|
||||
|
|
@ -525,9 +525,9 @@ class ChatMessageSendingViewModel(private val chatRoom: ChatRoom) : ViewModel()
|
|||
Log.i("[Chat Message Sending] Creating recorder for voice message")
|
||||
val recorderParams = coreContext.core.createRecorderParams()
|
||||
if (corePreferences.voiceMessagesFormatMkv) {
|
||||
recorderParams.fileFormat = Recorder.FileFormat.Mkv
|
||||
recorderParams.fileFormat = MediaFileFormat.Mkv
|
||||
} else {
|
||||
recorderParams.fileFormat = Recorder.FileFormat.Wav
|
||||
recorderParams.fileFormat = MediaFileFormat.Wav
|
||||
}
|
||||
|
||||
val recordingAudioDevice = AudioRouteUtils.getAudioRecordingDeviceForVoiceMessage()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue