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" -> {
|
||||
("^(${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)
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue