mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-09 16:11:20 +02:00
Don't report playback started until it actually starts (#107)
Wait until playback actually beings before reporting status to the server. And also ensure progress isn't reported until after reporting start.
This commit is contained in:
parent
576c20edff
commit
cbcae526b4
2 changed files with 51 additions and 38 deletions
|
|
@ -293,7 +293,7 @@ sealed interface AppPreference<T> {
|
|||
)
|
||||
|
||||
private const val MEGA_BIT = 1024 * 1024L
|
||||
const val DEFAULT_BITRATE = 20 * MEGA_BIT
|
||||
const val DEFAULT_BITRATE = 100 * MEGA_BIT
|
||||
private val bitrateValues =
|
||||
listOf(
|
||||
500 * 1024L,
|
||||
|
|
@ -305,7 +305,7 @@ sealed interface AppPreference<T> {
|
|||
8 * MEGA_BIT,
|
||||
10 * MEGA_BIT,
|
||||
15 * MEGA_BIT,
|
||||
DEFAULT_BITRATE,
|
||||
20 * MEGA_BIT,
|
||||
*(30..100 step 10).map { it * MEGA_BIT }.toTypedArray(),
|
||||
*(120..200 step 20).map { it * MEGA_BIT }.toTypedArray(),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue