Extend MediaFormat definition with generic properties

Description

Currently it is possible to define only very specific information in the MediaFormat object. It would be nice to have an option of putting some custom properties in the definition, similar to the Parameter.

One use case, that we currently have is building responsive images markup. the img contains a data attribute with a json object, which maps different image sizes to breakpoints. e.g.:

The images are generated or picked by the handler based on the MediaFormat, but currently there is no way of specifying, which format should be used in which breakpoint. The fe responsive images plugin does not really care about the formats, it only needs to know, which image should be used in which breakpoint.

WDYT?

Activity

Show:
Igor Sechyn
October 15, 2014, 2:57 PM

sorry, it was my mistake, something else was null.

Stefan Seifert
October 15, 2014, 2:49 PM

how is it possible that this can happen?

Igor Sechyn
October 15, 2014, 2:36 PM

can we make sure, that getProperties() never returns null. This will make it consistent with the Parameter.getProperties

Stefan Seifert
October 15, 2014, 7:58 AM
Edited

master b921667

i've added it. for i still plan to add "native" support to media handling there, so perhaps we will add new explicit properties and not use the property map. thinking about that next.

Fixed

Assignee

Igor Sechyn

Reporter

Igor Sechyn

Labels

None

Components

Fix versions

Priority

Major