Community Wishlist Survey 2022/Multimedia and Commons/Audio links that play on click
Appearance
Audio links that play on click
- Problem: For referencing audio files inline, such as pronunciation demonstrations, wikis have relied on linking to the raw file using
[[Media:...]]
, via templates like {{audio}}. But not all browsers support playing the linked file (which can be Ogg Vorbis, WAV, FLAC, WebM, Opus, or MIDI), causing them to download the file instead of playing it, even though audio files are now automatically transcoded into Ogg and MP3 specifically so that browsers can play them. And even when the browser supports it, this is not user-friendly as it suddenly sends them to a different page with nothing but a player on it. - Proposed solution: Create a parser extension tag like
<audio file="Example.ogg">Link</audio>
which fetches the derivative URLs and then converts to e.g.<a href="/wiki/File:Example.ogg" title="Example.ogg" data-audiolink="[{"src":"//upload.wikimedia.org/wikipedia/commons/c/c8/Example.ogg","type":"audio/ogg"},{"src":"//upload.wikimedia.org/wikipedia/commons/transcoded/c/c8/Example.ogg/Example.ogg.mp3","type":"audio/mpeg"}]">Link</a>
and attach a handler that converts the JSON data to an HTMLAudioElement and plays it to the link's click event. - Who would benefit: Readers
- More comments:
- Phabricator tickets: T229169
- Proposer: Nardog (talk) 07:37, 21 January 2022 (UTC)
Discussion
- I think we should focus on releasing video.js instead, which may resolve the 'can't play arbitrary file types' problem. --Izno (talk) 23:41, 28 January 2022 (UTC)
- @Izno: It won't as long as
[[Media:...]]
is used, which leaves the playback entirely up to the browser. Nardog (talk) 08:30, 29 January 2022 (UTC)- TheDJ maybe should be interested then. Izno (talk) 18:08, 29 January 2022 (UTC)
- I am, but I first want to see videojs out the door and used by everyone. —TheDJ (talk • contribs) 17:30, 7 February 2022 (UTC)
- TheDJ maybe should be interested then. Izno (talk) 18:08, 29 January 2022 (UTC)
- @Izno: It won't as long as
Voting
- Support * Pppery * it has begun 18:50, 28 January 2022 (UTC)
- Support --Nachtbold (talk) 19:12, 28 January 2022 (UTC)
- Support Chiristmas Patterson (talk) 00:41, 29 January 2022 (UTC)
- Support Audio pronunciations are used widely by readers, and we want them to play without going to a separate page. {{u|Sdkb}} talk 00:47, 29 January 2022 (UTC)
- Support Ottawajin (talk) 04:00, 29 January 2022 (UTC)
- Support Šedý (talk) 10:51, 29 January 2022 (UTC)
- Support THainaut (talk) 11:04, 29 January 2022 (UTC)
- Support Shuipzv3 (talk) 11:17, 29 January 2022 (UTC)
- Support Dexxor (talk) 14:24, 29 January 2022 (UTC)
- Support Aca (talk) 14:41, 29 January 2022 (UTC)
- Support Better media player is badly needed. --SSneg (talk) 20:52, 29 January 2022 (UTC)
- Support → «« Man77 »» [de] 13:37, 30 January 2022 (UTC)
- Support HynekJanac (talk) 17:32, 30 January 2022 (UTC)
- Support Nw520 (talk) 22:33, 30 January 2022 (UTC)
- Support Libcub (talk) 23:01, 30 January 2022 (UTC)
- Support JPxG (talk) 00:54, 31 January 2022 (UTC)
- Support Ariadacapo (talk) 10:18, 31 January 2022 (UTC)
- Support Bluerasberry (talk) 17:24, 31 January 2022 (UTC)
- Support -- Ahecht (TALK
PAGE) 18:35, 31 January 2022 (UTC) - Support Thingofme (talk) 10:07, 1 February 2022 (UTC)
- Support Daniel Case (talk) 23:27, 1 February 2022 (UTC)
- Support Nosferattus (talk) 02:42, 2 February 2022 (UTC)
- Support Right now such a basic feature of allowing users to play a simple and short audio, are cumbersome and different in each language. The interface should be a simple button. Serg!o (talk) 11:13, 2 February 2022 (UTC)
- Support Uanfala (talk) 21:35, 2 February 2022 (UTC)
- Support — Bilorv (talk) 20:35, 4 February 2022 (UTC)
- Support Lutzto (talk) 17:35, 5 February 2022 (UTC)
- Support kocio ✉ 01:12, 6 February 2022 (UTC)
- Support--Vulp❯❯❯here! 07:37, 6 February 2022 (UTC)
- Support Ayumu Ozaki (talk) 08:40, 6 February 2022 (UTC)
- Support —— Eric Liu(Talk) 09:36, 6 February 2022 (UTC)
- Support Ciencia Al Poder (talk) 11:00, 6 February 2022 (UTC)
- Support Quedel (talk) 19:22, 6 February 2022 (UTC)
- Support paul2520 (talk) 16:42, 7 February 2022 (UTC)
- Support —TheDJ (talk • contribs) 17:29, 7 February 2022 (UTC)
- Support ~Cybularny Speak? 21:15, 7 February 2022 (UTC)
- Support — DaxServer (t · c) 20:21, 8 February 2022 (UTC)
- Support · · · Peter (Southwood) (talk): 13:34, 9 February 2022 (UTC)
- Support Meiræ 22:00, 10 February 2022 (UTC)
- Support Gaurav (talk) 07:11, 11 February 2022 (UTC)