Problem/Motivation
The autoMute=<0|1> query parameter is not respected.
Steps to reproduce
- Go to /admin/config/media/twentythree-widget
- Check "Enable query string parameters"
- Check "Disable/enable mute (autoMute=<0|1>)"
- Create a new media entity embedding a TwentyThree video with autoMute=1 as query parameter
- Create a new node with the video.
Proposed resolution
The problem is caused by the order of the two arrays merged at line 123 in TwentyThree.php. Changing
array_merge($query_parameters, $embed_code['#query']);
to
array_merge($embed_code['#query'], $query_parameters);
solves the problem.
Comments
Comment #3
beltofteComment #4
beltofte