mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-11 18:45:50 +00:00
@@ -10,7 +10,6 @@ import uk.co.caprica.vlcj.player.base.State
|
||||
import uk.co.caprica.vlcj.player.component.AudioPlayerComponent
|
||||
import java.io.File
|
||||
import java.util.*
|
||||
import java.util.concurrent.Executors
|
||||
import kotlin.math.max
|
||||
|
||||
actual class RecorderNative: RecorderInterface {
|
||||
@@ -43,9 +42,7 @@ actual object AudioPlayer: AudioPlayerInterface {
|
||||
RecorderInterface.stopRecording?.invoke()
|
||||
val current = currentlyPlaying.value
|
||||
if (current == null || current.fileSource != fileSource || !player.status().isPlayable || smallView != current.smallView) {
|
||||
val oldPath = current?.fileSource?.filePath
|
||||
println("LALAL ABSOLUTE new $absoluteFilePath, old ${oldPath} ${if (oldPath != null) File(oldPath).exists() else null}")
|
||||
//stopListener()
|
||||
stopListener()
|
||||
player.stop()
|
||||
runCatching {
|
||||
if (fileSource.cryptoArgs != null) {
|
||||
|
||||
Reference in New Issue
Block a user