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:
damontecres 2025-10-29 13:15:17 -04:00 committed by GitHub
parent 576c20edff
commit cbcae526b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 51 additions and 38 deletions

View file

@ -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(),
)