Extend MediaFormat definition with generic properties
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.
sorry, it was my mistake, something else was null.
how is it possible that this can happen?
can we make sure, that getProperties() never returns null. This will make it consistent with the Parameter.getProperties
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.