Skip to content

Commit

Permalink
Fix small player bugs (#8748)
Browse files Browse the repository at this point in the history
  • Loading branch information
DejayJD authored Jun 6, 2024
1 parent fe60b30 commit 3b45588
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mobile/src/components/audio/AudioPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down

0 comments on commit 3b45588

Please sign in to comment.