Closed (fixed)
Project:
AudioField
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Aug 2021 at 15:04 UTC
Updated:
24 Jun 2026 at 08:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
betoaveigaUploading the patch to allow alter JS settings for the JPlayer.
Comment #3
daniel.moberly commentedThis patch does not apply against dev. Can you reroll?
Comment #4
betoaveigaSure, Daniel, I will add it as a reminder for later.
Comment #5
betoaveigaRerolling for latest 8.x-1.x.
Comment #6
daniel.moberly commentedThis patch currently breaks all other audiofield types (wavesurfer, etc.) using the constructor
ArgumentCountError: Too few arguments to function Drupal\audiofield\AudioFieldPluginBase::__construct(), 7 passed in /var/www/html/base/web/modules/custom/audiofield/src/Plugin/AudioPlayer/WavesurferAudioPlayer.php on line 44 and exactly 8 expected in Drupal\audiofield\AudioFieldPluginBase->__construct() (line 67 of modules/custom/audiofield/src/AudioFieldPluginBase.php).
Comment #7
betoaveigaOkay, thanks, Daniel. It seems I need to overwrite the constructor JPlayerAudioPlayer only.
I will add a reminder to make that later.
Comment #8
betoaveigaAdding a patch for 8.x-1.9
I will check later for the dev version.
Comment #9
afschRe-rolling patch 9 for the last updates in audiofield module.
Comment #11
astonvictor commentedComment #14
astonvictor commentedthanks for the report.
I added an alter for all plugins -
hook_audiofield_player_settings_alter(array &$settings, array $context)merged to the dev version