observe_media_import/2

Notification to translate or map a file after upload, before insertion into the database Used in mod_video to queue movies for conversion to mp4. You can set the post_insert_fun to something like fun(Id, Medium, Context) to receive the medium record as it is inserted.

Type:

first

Return:

modified #media_upload_preprocess{}

#media_import{} properties:

  • url: binary
  • host_rev: list
  • mime: binary
  • metadata: tuple

Edit on GitHub

Observed by

Modules

mod_video_embed

This module, if activated, checks the pasted URLs in the create media / page dialog of the admin. It will show an embed option for Youtube and Vimeo URLs. It…

Modules

mod_oembed

Makes media resources from embeddable URLs through the OEmbed protocol.