This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // View components | |
| var bigPlayerWindow: UIWindow? | |
| var playerDetailViewController: PlayerDetailsViewController? | |
| var floatingButtonController: FloatingButtonController? | |
| var smallPlayerLastLocation: CGPoint? | |
| private func setupSmallPlayer(with style: UIStatusBarStyle) { | |
| if floatingButtonController == nil { | |
| floatingButtonController = FloatingButtonController() | |
| floatingButtonController?.floatingButtonDelegate = self |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extension PlayerDetailsViewController: PodcastPlayerObserver { | |
| func podcastPlayer(_ player: AVPlayer?, didStartPlaying item: AVPlayerItem?) { | |
| self.setPlayButton() | |
| } | |
| func podcastPlayer(_ player: AVPlayer?, didPausePlaybackOf item: AVPlayerItem?) { | |
| self.setPlayButton() | |
| } | |
| func podcastPlayer(_ player: AVPlayer?, isLoading: Bool, item: AVPlayerItem?) { |
NewerOlder