A quick look at the code suggests that most media derivative functionality is handled at the file level. For my use case, I am generating 30 second samples from an audio file for download, and I want to allow per field setting of where in file the sample should begin (e.g. 67 seconds). Media Derivatives should supply the field definition to downstream processors so additional per-field settings can be used in derivative generation, in addition to the file path.

Members fund testing for the Drupal project. Drupal Association Learn more


jonathan_hunt’s picture

I see field data is passed via $context... Perhap's that's a solution here.

jonathan_hunt’s picture

Status: Active » Needs review
673 bytes

Attached is a patch to pass the full item as part of the context, to allow additional data to be utilised by derivative engines.

slashrsm’s picture

Status: Needs review » Fixed

Sounds good. Committed. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Add example