Template talk:Listen

(Redirected from Module talk:Listen/doc)
Latest comment: 5 months ago by Nardog in topic conflict with <score> tags' audio players?

Recent changes and timedtext

edit

When media is given timedtext captions, the reader can no longer simultaneously scroll the article and listen to the media. I don't think this is an improvement. I'm not sure where this new change was made or how/if it can be modified. Any help? ili (talk) 14:15, 6 May 2022 (UTC)Reply

See phab:T246035. Nardog (talk) 14:35, 6 May 2022 (UTC)Reply

Length

edit

Now that the media player shows the length for sound files, this template showing it, too, is no longer useful for those files. Maybe User:Nardog can remove that feature again. It would still be useful for video files, but I suspect the code is, and rightly so, agnostic about the file type. I don't think the template is used for many video files, so maybe the functionality could be flipped: don't show the duration unless |length(n)=yes. -- Michael Bednarek (talk) 04:32, 19 June 2022 (UTC)Reply

The new player shows the duration for some videos too. It looks like it depends on the aspect ratio. We can make the length show only for videos. Should we? Nardog (talk) 17:49, 20 June 2022 (UTC)Reply
That's weird. // IMO it's best to use |length(n)=yes, i.e. don't show by default, but allow where needed. -- Michael Bednarek (talk) 02:41, 21 June 2022 (UTC)Reply
it depends on height. A video has to be at least 150px high for the duration label to show. —TheDJ (talkcontribs) 07:59, 22 June 2022 (UTC)Reply

Flex for side box

edit

I'll shortly be rolling out an adjustment for Module:Side box which uses flex styling and more or less responsive TemplateStyles (see Module:Side box/sandbox and Module:Side box/styles.css etc.) on the nearly-complete mission to TemplateStyles ambox. I would just naturally have updated the module here to account for that, so then I went to look at the sandbox here and saw a recent adjustment from 220px to a "restored" 233px width. My preferred implementation would be to narrow the audio element back down to accommodate the flex styling, so I must ask, why was that done there? Izno (talk) 20:01, 21 June 2022 (UTC)Reply

We picked 233px because that was the magic number of the shortest width that still showed a seek bar in the Kaltura player (see /Archive 3#Slider). Now that it's been replaced by VideoJS there's no reason to stick to it, so I don't understand why Michael Bednarek restored it in the sandbox either. Nardog (talk) 23:11, 21 June 2022 (UTC)Reply
I think we'd have to take it down to closer to 200px, though I haven't played around with it yet.
Can I sync the sandbox? There's a change or two different from the main besides the width of the bar, and it looks like this module will be a bit more work than anticipated given the styling it outputs. Izno (talk) 01:22, 22 June 2022 (UTC)Reply
Go ahead AFAIC. Make it whatever works/looks good. The only difference in the sandbox aside from the width is making the duration an opt-in as requested by Michael above. Nardog (talk) 01:49, 22 June 2022 (UTC)Reply
I apologize for for restoring 233px in the sandbox. It was a reflex reaction; the behaviour of the new player hasn't sunk in here yet. -- Michael Bednarek (talk) 02:48, 22 June 2022 (UTC)Reply
Please take a look at the testcases. There are some differences in appearance as this module now relies a bit more on the native side box styling. Please fuss with it in the variety of skins and accordingly resolutions on the test case page.
I'll push this live after I push the associated side box changes live and I get some agreement on the change. Izno (talk) 17:46, 26 June 2022 (UTC)Reply
Now live. I await 'teh borked'. Izno (talk) 20:39, 7 July 2022 (UTC)Reply

conflict with <score> tags' audio players?

edit

Use of the template anywhere on a page seems to result in breaking the audio players of <score> tags?

Example:

 

Assuming this talk page currently still has at least 1 usage instance of the Listen template, I'm getting a non-functional audio player for the <score> above that (when clicked to play) seems to try to play a null file (instead of the <score>'s content) and fails, and also simultaneously seems to put the page into a weird state that requires a browser page refresh to get out of.

I'm not sure if this is a bug with the template vs a bug in the implementation of <score>'s audio player feature. 50.47.241.61 (talk) 12:57, 17 May 2024 (UTC)Reply

Ok, further testing shows that it looks like the page having any file wikilink that invokes the audio player will repro this issue, so it's not specific to the template. It's looking more like a bug with <score>'s implementation. 50.47.241.61 (talk) 17:35, 17 May 2024 (UTC)Reply
Yes. See phab:T363630. Nardog (talk) 00:38, 18 May 2024 (UTC)Reply