Iframe for Soundcloud is very narrow by default

Created on 11 March 2022, over 2 years ago
Updated 15 August 2023, over 1 year ago

Problem/Motivation

Out of the box, if you add a remote audio item from Soundcloud, the iframe showing it is 100px wide.

This isn't exactly a bug, because everything works as expected, but it looks odd, and it is may not be immediately obvious how to fix it.

This can be addressed by the following steps:

1. go to /admin/structure/media/manage/remote_audio/display
2. click the cog to edit the oEmbed settings
3. select a maximum width e.g. 800px

Strangely, the Spotify iframe looks fine -

Steps to reproduce

1. enable the module
2. add a Soundcloud item, e.g. https://soundcloud.com/dj-jo-public/jo-public-logical-obsession-09-dec-2...

Proposed resolution

tbc - possibly just documentation?

πŸ“Œ Task
Status

Active

Version

1.0

Component

User interface

Created by

πŸ‡¬πŸ‡§United Kingdom malcomio

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States Chris Matthews

    @malcomio, this should be able to be solved by either:

    1) having the module expose a config option for minimum SoundCloud embed width, and then apply that width to SoundCloud embeds only

    OR

    2) having the module always set the max_width option on displays for remote_audio, which is the easier of the two fixes, and would work just as well.

    I'm not sure when a fix can get in a stable release so in the meantime your suggested workaround is best.

Production build 0.71.5 2024