diff --git a/src/services/playerAudio.ts b/src/services/playerAudio.ts index 8f6219b92..744efe17b 100644 --- a/src/services/playerAudio.ts +++ b/src/services/playerAudio.ts @@ -10,7 +10,7 @@ import { checkIfFileIsDownloaded, getDownloadedFilePath } from '../lib/downloade import { getStartPodcastFromTime } from '../lib/startPodcastFromTime' import { getAppUserAgent } from '../lib/utility' import { PV } from '../resources' -import { goToCurrentLiveTime, setLiveStreamWasPausedState } from '../state/actions/player' +import { goToCurrentLiveTime, setLiveStreamWasPausedState, showMiniPlayer } from '../state/actions/player' import { updateHistoryItemsIndex } from '../state/actions/userHistoryItem' import PVEventEmitter from './eventEmitter' import { getPodcastCredentialsHeader } from './parser' @@ -209,6 +209,14 @@ export const audioLoadNowPlayingItem = async ( await audioHandleLoadClip(item, shouldPlay) } + /* + This should be called in an action, but we don't want to + wait for debouncedAudioSyncPlayerWithQueue to finish, so we're + calling it in the service. + I'm not adding this in playerVideo because there is no auto-queue to be synced. + */ + showMiniPlayer() + await debouncedAudioSyncPlayerWithQueue() return item