Closed pjlee11 closed 5 years ago
will catch up with @jamesdonoh before refining
CPS does not have all the data required for the sample optimo payload above
So, what I have implemented is stripped back somewhat, however, the things that were removed all appear to be unused within Simorgh anyway, so also has the benefit of simplifying things:
Where things were unused, but the data was available within the CPS payload, I just included the transformation anyway
Is your feature request related to a problem? Please describe. We need to add a preprocessor rule that takes an
aresMedia
block and generates an Optimo format AV block/s.Describe the solution you'd like Create a new generator that takes an
aresMedia
block and creates an Optimo formatvideo
block with support forcaption
,aresMediaMetadata
,aresMedia
,image
etc. This should then be rendered using the blocks container logic similar to how Articles render the Media Player component.Describe alternatives you've considered N/A
Testing notes [Tester to complete]
Dev insight: Snapshot testing and E2Es are required to ensure a headline is rendered on the page.
Additional context
Optimo format video block: