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

spike(TMRS-147): update for persisted audio POC #3823

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

douglasmik
Copy link
Contributor

@douglasmik douglasmik commented Apr 17, 2024

Description

POC to enable persisted audio from articles on The Times.
Clicking the 'play' button will open a new tab containing a media player, and interaction with the InArticleAudio component will send data to the media player in the new tab using the BroadcastChannel API through the postMessage method.

Spike docs
https://nidigitalsolutions.jira.com/wiki/spaces/TNLDigital/pages/4855234561/Spike+TMRS-147+-+Persisted+audio+component+POC

Render PR
https://github.com/newsuk/cps-content-render/pull/7592

TMRS-147

Checklist

  • Have you done any manual testing?
  • Does it have automated tests?
  • Do you need any other PRs merged before this (if so please list)?
  • Do you need to update the README/Runbook
  • Have you checked for accessibility?

Screenshots (if appropriate):

Include screenshots if needed.

@douglasmik douglasmik requested a review from a team as a code owner April 17, 2024 13:32

const handleClickPlayPause = () => {
!isPlayed && setIsPlayed(true);
!showStickyPlayer && setShowStickyPlayer(true);
setIsPlaying(!isPlaying);

submitMsg(!isPlaying ? 'play' : 'pause'); /* send */
Copy link
Contributor

Choose a reason for hiding this comment

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

i would suggest that we use positive check if possible rather than negative

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants