Right now, video fields are not visible through entity metadata wrappers because there's not property_type in the hook_field_info() data.

Comments

garphy’s picture

This first basic patch integrate video fields as "file". This is not ideal as we eventually want to gather all the data (file derivatives, ...).

garphy’s picture

Status: Active » Needs work
garphy’s picture

StatusFileSize
new1.73 KB

This one renders the original file data in a "file" property (as file & image field do) and renders thumbnail file data & playable files data in specific properties (in "file" format, too).
Still WIP.

garphy’s picture

Status: Needs work » Needs review
StatusFileSize
new1.56 KB
new2.24 KB
  • Renamed the property_callback name to match module's name
  • Reworked callbacks declaration (finally understood how it's supposed to work
  • Now entity_metadata_field_default_property_callback is fired and multiple value fields also work

  • Entity/Fields/Wrappers APIs are one the most convoluted ones I've ever seen in Drupal. I'll be glad when we all switch these kind of integration on D8 unified Entity API (</rant>)...

    I think I would benefit of some reviews now.

skwashd’s picture

Status: Needs review » Reviewed & tested by the community

This is working for me when used with RestWS.

hypertext200’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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