mirror of https://github.com/lizongying/my-tv.git
parent
657b8714a0
commit
bb4fd56845
@ -1,23 +0,0 @@ |
||||
package com.lizongying.mytv |
||||
|
||||
import androidx.media3.common.C |
||||
import androidx.media3.common.util.UnstableApi |
||||
import androidx.media3.exoplayer.upstream.DefaultLoadErrorHandlingPolicy |
||||
|
||||
|
||||
@UnstableApi |
||||
class CustomLoadErrorHandlingPolicy(private val minimumLoadableRetryCount: Int) : |
||||
DefaultLoadErrorHandlingPolicy(minimumLoadableRetryCount) { |
||||
|
||||
override fun getMinimumLoadableRetryCount(dataType: Int): Int { |
||||
return if (minimumLoadableRetryCount == -1) { |
||||
if (dataType == C.DATA_TYPE_MEDIA_PROGRESSIVE_LIVE) { |
||||
DEFAULT_MIN_LOADABLE_RETRY_COUNT_PROGRESSIVE_LIVE |
||||
} else { |
||||
DEFAULT_MIN_LOADABLE_RETRY_COUNT |
||||
} |
||||
} else { |
||||
minimumLoadableRetryCount |
||||
} |
||||
} |
||||
} |
||||
|
After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
@ -1,3 +1,4 @@ |
||||
<resources> |
||||
<color name="fastlane_background">#30000000</color> |
||||
<color name="black">#000</color> |
||||
</resources> |
||||
@ -1,3 +1,3 @@ |
||||
<resources> |
||||
<string name="app_name">My TV</string> |
||||
<string name="app_name">我的电视</string> |
||||
</resources> |
||||
Loading…
Reference in new issue