-
Notifications
You must be signed in to change notification settings - Fork 234
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
WSTEAM1-700: Display media on Live Page #11198
Conversation
…simorgh into WSTEAM1-641-display-media-live-page
…simorgh into WSTEAM1-641-display-media-live-page
const getPlayerProps = ({ pageType, ...params }) => { | ||
const propsHandler = { | ||
live: getLivePageProps, | ||
}[pageType]; | ||
|
||
return propsHandler ? propsHandler(params) : getDefaultProps(params); | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quite like this approach. Should set us up well for building out the Media player in Simorgh later 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great 👍
Think its worth commenting for other reviewers that we are going to be replacing the MediaPlayer component, starting with Live pages, in the new year, so we don't really need to Typescript-ify, apply component standards etc just yet. Its just a copy of the existing ArticleMediaPlayer component to get it on the page and will be replaced in the near future.
Resolves JIRA [WSTEAM1-700]
Overall changes
Adds support for rendering video on a Live Page post
Code changes
componentsToRender
mapping.Testing
Helpful Links
Add Links to useful resources related to this PR if applicable.
Coding Standards
Repository use guidelines