This commit is contained in:
deniscerri 2025-06-08 11:56:29 +02:00
parent db8cafb16d
commit 87fc021bca
No known key found for this signature in database
GPG key ID: 95C43D517D830350
2 changed files with 3 additions and 3 deletions

View file

@ -119,10 +119,10 @@ class FormatUtil(private var context: Context) {
}
"codec" -> {
("^(${audioCodecPreference}).+$".toRegex(RegexOption.IGNORE_CASE)
("^(${audioCodecPreference}).*$".toRegex(RegexOption.IGNORE_CASE)
.matches(b.acodec))
.compareTo(
"^(${audioCodecPreference}).+$".toRegex(RegexOption.IGNORE_CASE)
"^(${audioCodecPreference}).*$".toRegex(RegexOption.IGNORE_CASE)
.matches(a.acodec)
)
}

View file

@ -12,7 +12,7 @@ import androidx.media3.exoplayer.trackselection.DefaultTrackSelector
import kotlin.math.max
object VideoPlayerUtil {
private const val MINIMUM_BUFFER_DURATION = 1000 * 10 //exo default is 50s
private const val MINIMUM_BUFFER_DURATION = 1000 * 5 //exo default is 50s
@androidx.annotation.OptIn(androidx.media3.common.util.UnstableApi::class)
fun buildPlayer(context: Context) : ExoPlayer {