Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | media_derivatives-pass_item_in_context.patch | 673 bytes | jonathan_hunt |
Comments
Comment #1
jonathan_hunt CreditAttribution: jonathan_hunt commentedI see field data is passed via $context... Perhap's that's a solution here.
Comment #2
jonathan_hunt CreditAttribution: jonathan_hunt commentedAttached is a patch to pass the full item as part of the context, to allow additional data to be utilised by derivative engines.
Comment #3
slashrsm CreditAttribution: slashrsm commentedSounds good. Committed. Thanks.
Comment #4.0
(not verified) CreditAttribution: commentedAdd example