Closed (fixed)
Project:
Able Player
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 Mar 2026 at 19:58 UTC
Updated:
19 Jun 2026 at 17:45 UTC
Jump to comment: Most recent
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.
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.
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
Comment #3
carlygerardData-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.
Comment #5
themusician commentedWorks on my local copy. I think this is a good approach.
Comment #6
carlygerardMerged into 3.x branch.