fixes
This commit is contained in:
parent
db8cafb16d
commit
87fc021bca
2 changed files with 3 additions and 3 deletions
|
|
@ -119,10 +119,10 @@ class FormatUtil(private var context: Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
"codec" -> {
|
"codec" -> {
|
||||||
("^(${audioCodecPreference}).+$".toRegex(RegexOption.IGNORE_CASE)
|
("^(${audioCodecPreference}).*$".toRegex(RegexOption.IGNORE_CASE)
|
||||||
.matches(b.acodec))
|
.matches(b.acodec))
|
||||||
.compareTo(
|
.compareTo(
|
||||||
"^(${audioCodecPreference}).+$".toRegex(RegexOption.IGNORE_CASE)
|
"^(${audioCodecPreference}).*$".toRegex(RegexOption.IGNORE_CASE)
|
||||||
.matches(a.acodec)
|
.matches(a.acodec)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ import androidx.media3.exoplayer.trackselection.DefaultTrackSelector
|
||||||
import kotlin.math.max
|
import kotlin.math.max
|
||||||
|
|
||||||
object VideoPlayerUtil {
|
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)
|
@androidx.annotation.OptIn(androidx.media3.common.util.UnstableApi::class)
|
||||||
fun buildPlayer(context: Context) : ExoPlayer {
|
fun buildPlayer(context: Context) : ExoPlayer {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue