Error when used on "Remote video" media

Created on 18 July 2024, 5 months ago

Problem/Motivation

Exception thrown when using on a "Remote video" media, as it tries to format assuming it is an image.

Steps to reproduce

- have media reference field that users can choose from "Image" or "Remote video" content (we need to allow a mix)
- use the "Responsive thumbnail" formatter
- add content with at least one "Remote video"
- view the content

Proposed resolution

Would be good to only apply the "Resposive thumbnail" settings to the "Image" media type.

But I suppose it would still need show the other formatter options for the other media types, so I'm not sure if this will be an easy fix.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.5

Component

Code

Created by

🇬🇧United Kingdom acolden

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

Comments & Activities

  • Issue created by @acolden
  • Status changed to Needs review 13 days ago
  • 🇵🇱Poland bronismateusz

    I also have this problem in my project, however in the Image + Video combination. I have prepared a patch that works with all types of video, simply bypassing them from the formatter.

  • 🇵🇱Poland bronismateusz

    Sorry, I generated the patch without the latest changes. This is the working version.

Production build 0.71.5 2024