Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions SwiftRadio/Config/Config.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ struct Config {
LibraryItem(owner: "MengTo", repo: "Spring"),
LibraryItem(owner: "ninjaprox", repo: "NVActivityIndicatorView"),
LibraryItem(owner: "LeoNatan", repo: "LNPopupController"),
LibraryItem(owner: "cbpowell", repo: "MarqueeLabel"),
]
}

Expand Down
6 changes: 2 additions & 4 deletions SwiftRadio/ViewControllers/NowPlayingViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,13 @@ class NowPlayingViewController: UIViewController {

func playerStateDidChange(_ state: FRadioPlayer.State) {
switch state {
case .loading:
case .loading where player.playbackState != .stopped:
albumArtworkView.setBuffering(true)
case .readyToPlay, .loadingFinished:
albumArtworkView.setBuffering(false)
playbackStateDidChange(player.playbackState)
case .error:
albumArtworkView.setBuffering(false)
default:
break
albumArtworkView.setBuffering(false)
}
}

Expand Down
6 changes: 2 additions & 4 deletions SwiftRadio/ViewControllers/StationsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,10 @@ extension StationsViewController: FRadioPlayerObserver {

func radioPlayer(_ player: FRadioPlayer, playerStateDidChange state: FRadioPlayer.State) {
switch state {
case .loading:
case .loading where player.playbackState != .stopped:
isBuffering = true
case .readyToPlay, .loadingFinished, .error:
isBuffering = false
default:
break
isBuffering = false
}
updateNowPlayingAnimation()
updateVisibleCellsNowPlaying()
Expand Down