Remote video media field not rendering video in Quant

Created on 5 March 2024, 9 months ago

Problem/Motivation

When using a remote video media field, the video is not rendered on the static page in Quant. The URL looks like:

http://quantdrupal101.ddev.site/en/media/oembed?url=https%3A//www.youtube.com/watch%3Fv%3DkARRIS_9GyA&max_width=0&max_height=0&hash=h7A4zWmHsojNcNWWd89gqxqtcC53bQpymX9K0UNBuqs

rather than:

/en/media/oembed?url=https%3A//www.youtube.com/watch%3Fv%3DkARRIS_9GyA&max_width=0&max_height=0&hash=h7A4zWmHsojNcNWWd89gqxqtcC53bQpymX9K0UNBuqs

and the /en/media/ombed* path is not in Quant.

Steps to reproduce

  1. Install/configure Drupal 10.1 (didn't test with other versions)
  2. Install/configure quant_api
  3. Make sure Strip host domain from content is disabled
  4. Add test content and sync to Quant and make sure it shows up
  5. Add a remote video media field to a content type like basic page
  6. Create content of that type and add a youtube video to the remote video field
  7. Make sure the video shows up as expected in Drupal
  8. View on the Quant side and the video will not show up

Proposed resolution

Debug and fix. It may be just make sure the domain is stripped so that the /media/ombed URL will get synced.

Remaining tasks

  • Debug
  • Update code
  • Review and test
  • Commit :)

User interface changes

User will see remote videos in content properly.

API changes

Data model changes

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

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

Comments & Activities

Production build 0.71.5 2024