diff --git a/packages/mobile/src/components/audio/AudioPlayer.tsx b/packages/mobile/src/components/audio/AudioPlayer.tsx index 4b804e75e93..0ba9470df9c 100644 --- a/packages/mobile/src/components/audio/AudioPlayer.tsx +++ b/packages/mobile/src/components/audio/AudioPlayer.tsx @@ -340,7 +340,7 @@ export const AudioPlayer = () => { // Performance POC: use a pre-fetched DN url if we have it const trackStreamUrl = trackStreamUrls[`{"id":${trackId},"currentUserId":${currentUserId}}`] - ?.nonNormalizedData['stream-url'] + ?.nonNormalizedData?.['stream-url'] if (offlineTrackAvailable && isCollectionMarkedForDownload) { const audioFilePath = getLocalAudioPath(trackId) url = `file://${audioFilePath}` diff --git a/packages/mobile/src/components/audio/RNVideoAudioPlayer.tsx b/packages/mobile/src/components/audio/RNVideoAudioPlayer.tsx index 40418f14c21..44c8a35beaf 100644 --- a/packages/mobile/src/components/audio/RNVideoAudioPlayer.tsx +++ b/packages/mobile/src/components/audio/RNVideoAudioPlayer.tsx @@ -242,6 +242,7 @@ export const RNVideoAudioPlayer = () => { // Performance POC: use a pre-fetched DN url if we have it const trackStreamUrl = trackStreamUrls[`{"id":${trackId},"currentUserId":${currentUserId}}`] + ?.nonNormalizedData?.['stream-url'] if (offlineTrackAvailable && isCollectionMarkedForDownload) { const audioFilePath = getLocalAudioPath(trackId) url = `file://${audioFilePath}`