Page MenuHomePhabricator

Embedded audio files should include a title
Open, Needs TriagePublic

Description

I recently used the embed code for an audio file with closed captions (via clicking the "🌎 Use this file" button; you can test yourself by pasting code like

<iframe src="https://commons.wikimedia.org/wiki/File:Maryana_Iskander_self-narrated_biography.ogg?embedplayer=yes" width="300" height="20" frameborder="0" loading="lazy" allow="autoplay; picture-in-picture" allowfullscreen></iframe>

into a code sandbox).

Even when larger heights than the default 20px are used, the file name is never put anywhere, so e.g. if you're embedding a song there's nowhere in the embed that gives the title of the song.

The design of the embed should be improved so that, depending on available space, a title (probably the file name by default, but ideally something customizable) is displayed somewhere.

First reported at this discussion on Commons alongside T404934 and T404935.

Event Timeline

Pppery subscribed.
This comment was removed by Pppery.
TheDJ subscribed.

This is an issue in the Commons Stockphoto gadget and should be solved there

@TheDJ Howso? What specifically should the gadget do differently? I interpreted this task as saying that the HTML produced by https://commons.wikimedia.org/wiki/File:Maryana_Iskander_self-narrated_biography.ogg?embedplayer=yes should include the file name somehwere, not anything to do with a local gadget.

It’s a lazyloaded iframe. I think the title should go on the iframe (as it goes on the wrapping link when used in the context of mediawiki) ?