The video asset hosted on Acquia DAM not rendered

Created on 21 August 2023, 10 months ago
Updated 1 November 2023, 8 months ago

Problem/Motivation

Hi
I've installed and enabled the Acquia DAM, Media: Acquia DAM and Entity Browser contrib modules on a Drupal 10.1.2 website.
When I enabled the Media: Acquia DAM - Example Configuration module few media types were created.
Next, I added a new field using the Acquia DAM Asset media type for a content type.
When I populate the field value with an image from DAM all is ok. The image is rendered as expected.
<img loading="lazy" src="/sites/default/files/acquiadam/2023-08/test.jpeg" typeof="foaf:Image">

When I populate the field value with a video from DAM an empty element is rendered.
<img loading="lazy" src="/sites/default/files/acquiadam/2023-08/VideoCaseStudy.mp4" typeof="foaf:Image">

I can see that a new media entity was created for the video but for some reason can't be displayed/rendered.

I also tried to use the Acquia DAM Video media type provided by the Media: Acquia DAM - Example Configuration module but I can't save the node when trying to add a DAM video.
The entity reference field validation fails because the new media entity created is always stored as an 'acquia_dam_asset' bundle instead of the 'acquia_dam_video' type which the entity reference module queries the database for.
This entity (media: 28) cannot be referenced.

How can I render a DAM video?

πŸ“Œ Task
Status

Postponed: needs info

Version

2.0

Component

Documentation

Created by

πŸ‡¬πŸ‡§United Kingdom Alina Basarabeanu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Alina Basarabeanu
  • Status changed to Postponed: needs info 8 months ago
  • πŸ‡ΊπŸ‡ΈUnited States japerry KVUO

    Sorry I'm unable to reproduce. A few things to note:
    1) If you're using media: Acquia Dam, you'll be using the Entity Browser to get assets. If you setup the entity browser and select Acquia Dam Video (not asset), you should be able to choose videos and they will embed on the content.

    2) If you're using the newer Acquia Dam module, you can use the media library. you can follow these instructions: https://community.acquia.com/acquiadam/s/article/How-do-I-configure-the-...

    You can use both modules at the same time, but you'll have to setup the process (entity browser vs media library or both!) in order to view the video assets. I wouldn't add items to the Dam Asset type.

Production build 0.69.0 2024