diff --git a/Client/Frontend/Browser/Playlist/Controllers/PlaylistViewController.swift b/Client/Frontend/Browser/Playlist/Controllers/PlaylistViewController.swift index 04d513e44b0..98f4d3b2063 100644 --- a/Client/Frontend/Browser/Playlist/Controllers/PlaylistViewController.swift +++ b/Client/Frontend/Browser/Playlist/Controllers/PlaylistViewController.swift @@ -235,11 +235,15 @@ class PlaylistViewController: UIViewController { private func observePlayerStates() { player.publisher(for: .play).sink { [weak self] event in - self?.playerView.controlsView.playPauseButton.setImage(#imageLiteral(resourceName: "playlist_pause"), for: .normal) + guard let self = self else { return } + self.playerView.controlsView.playPauseButton.setImage(#imageLiteral(resourceName: "playlist_pause"), for: .normal) if !PlaylistCarplayManager.shared.isCarPlayAvailable { MPNowPlayingInfoCenter.default().playbackState = .playing PlaylistMediaStreamer.updateNowPlayingInfo(event.mediaPlayer) + } else if let item = PlaylistCarplayManager.shared.currentPlaylistItem { + self.playerView.setVideoInfo(videoDomain: item.pageSrc, + videoTitle: item.pageTitle) } }.store(in: &playerStateObservers) diff --git a/Client/Frontend/Browser/Playlist/VideoPlayer/UI/VideoPlayer.swift b/Client/Frontend/Browser/Playlist/VideoPlayer/UI/VideoPlayer.swift index 5433479f9bd..1b040bca1e0 100644 --- a/Client/Frontend/Browser/Playlist/VideoPlayer/UI/VideoPlayer.swift +++ b/Client/Frontend/Browser/Playlist/VideoPlayer/UI/VideoPlayer.swift @@ -340,9 +340,9 @@ class VideoView: UIView, VideoTrackerBarDelegate { isSeeking = true if delegate.isPlaying { - delegate.pause(self) wasPlayingBeforeSeeking = true playbackRate = delegate.playbackRate + delegate.pause(self) } toggleOverlays(showOverlay: false, except: [infoView, controlsView], display: [controlsView])