Problem/Motivation

Able Player 4.8.0 is available. It introduces a new poster attribute that we will need to add to the templates and potentially create storage for if a suitable field does not already exist.

From the release notes: Add support for an audio poster image defined by data-poster for the image URL and data-poster-alt for the alternative text.

Proposed resolution

Add a data-poster attribute and data-poster-alt attribute to the audio twig template file. The audio file page, the one where you add media of type audio, may need a field added as well for the poster image.

Issue fork ableplayer-3580370

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

themusician created an issue. See original summary.

carlygerard made their first commit to this issue’s fork.

carlygerard’s picture

Status: Active » Needs review

Data-poster attribute is now added to AblePlayerAudioFormatter to load a poster image for an audio file. Image is marked decorative (alt="") by default. If meaningful alt text is needed for poster images, this will be addressed separately since this will require more work or moving to using the media library for managing images.

themusician’s picture

Status: Needs review » Reviewed & tested by the community

Works on my local copy. I think this is a good approach.

carlygerard’s picture

Status: Reviewed & tested by the community » Fixed

Merged into 3.x branch.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.