Problem/Motivation

Canvas has video shape described in its schema.json file. Acquia DAM Video assets should be matched by props of this shape.

Proposed resolution

Update CanvasHooks to support additional video schema:

  const SCHEMA_TO_MEDIA_SOURCE_PLUGIN= [
    // @see \Drupal\media\Plugin\media\Source\Image
    'json-schema-definitions://canvas.module/image' => 'acquia_dam_asset:image',
    'json-schema-definitions://canvas.module/video' => 'acquia_dam_asset:video',
  ];

Add logic, that uses updated SCHEMA_TO_MEDIA_SOURCE_PLUGIN constant.

Remaining tasks

Write tests, update code as appropriate to match changes in #3551419

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Issue fork acquia_dam-3556464

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

f.mazeikis created an issue. See original summary.

f.mazeikis’s picture

Assigned: Unassigned » f.mazeikis

f.mazeikis changed the visibility of the branch 3556464-match-acquia-dam to hidden.

f.mazeikis changed the visibility of the branch 3556464-video-prop-shape-support to hidden.

rajeshreeputra made their first commit to this issue’s fork.