Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MRKT-27: Update for song previews to prevent concurrent playback #681

Merged

Conversation

dmkirshon
Copy link
Contributor

Add:

  • Modules package directory for Redux state management integration

Update:

  • Integrate state management into audio.tsx to prevent two different components playing song previews at the same time through the hook

@dmkirshon dmkirshon self-assigned this Jun 11, 2024
Copy link

github-actions bot commented Jun 11, 2024

Visit the preview URL for this PR (updated for commit 519d5c8):

https://newm-artist-portal--pr681-mrkt-27-single-item-gd4yec3r.web.app

(expires Sun, 14 Jul 2024 09:13:07 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: ec3483d4c62309afc398865bfd6a9fc9e03e1d46

Copy link

Visit the studio preview URL for this PR 🚀 : https://681.artist.preview.newm.io/

import { AudioState } from "./types";

const initialState: AudioState = {
audio: undefined,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it better to set this as null?

Copy link

Visit the tools preview URL for this PR (updated for commit e5a7dc7):
🚀 https://z3e5np6cxcjbwq555aiggge24u0rfqbe.lambda-url.us-west-2.on.aws/

Copy link

Visit the wallet preview URL for this PR (updated for commit e5a7dc7):
🚀 https://q6nvo3bkegaujq2qzlto6hoiqe0tjdnw.lambda-url.us-west-2.on.aws/

Copy link

Visit the marketplace preview URL for this PR (updated for commit e5a7dc7):
🚀 https://ir3lcqviogrsko4bjxsvsum7x40rgdxc.lambda-url.us-west-2.on.aws/

Comment on lines 76 to +77
audio.stop();
dispatch(resetAudioState());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was having some issues with order of operations for the Howl onstop callback when switching between song previews, but will revisit one more time to see if I can refactor the state resets.

@dmkirshon dmkirshon marked this pull request as draft June 12, 2024 09:38
* refactor: Move audio hook to own package

* fix: Set port back to initial value

* refactor: Improve use of types to reduce mistypes
@dmkirshon dmkirshon marked this pull request as ready for review June 14, 2024 09:10
Copy link

Visit the tools preview URL for this PR (updated for commit fb04fcd):
🚀 https://z3e5np6cxcjbwq555aiggge24u0rfqbe.lambda-url.us-west-2.on.aws/

Copy link

Visit the wallet preview URL for this PR (updated for commit fb04fcd):
🚀 https://q6nvo3bkegaujq2qzlto6hoiqe0tjdnw.lambda-url.us-west-2.on.aws/

Copy link

Visit the marketplace preview URL for this PR (updated for commit fb04fcd):
🚀 https://ir3lcqviogrsko4bjxsvsum7x40rgdxc.lambda-url.us-west-2.on.aws/

@dmkirshon dmkirshon merged commit 56b8ff1 into master Jun 19, 2024
7 checks passed
@dmkirshon dmkirshon deleted the MRKT-27-Single-Item-for-Play_Update-for-universal-playback branch June 19, 2024 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants