mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
some minor changes for the music media player
This commit is contained in:
parent
9f20384780
commit
72ca21a4f0
3 changed files with 7 additions and 9 deletions
|
|
@ -370,8 +370,7 @@ class MusicManager: ObservableObject {
|
|||
}
|
||||
} else {
|
||||
let shouldClearForKnownDuration =
|
||||
!isPlaying
|
||||
|| (duration > 10 && remaining > 5)
|
||||
(duration > 10 && remaining > 5)
|
||||
|| (liveStreamCompletionObservationCount == 0
|
||||
&& liveStreamEdgeObservationCount == 0
|
||||
&& liveStreamCompletionReleaseCount >= 4)
|
||||
|
|
@ -394,9 +393,6 @@ class MusicManager: ObservableObject {
|
|||
liveStreamEdgeObservationCount = 0
|
||||
liveStreamCompletionObservationCount = 0
|
||||
liveStreamCompletionReleaseCount = 0
|
||||
if !hasKnownDuration && isLiveStream {
|
||||
isLiveStream = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue