Some users would like to control the playback speed. It may be sensible to play it slower on the third or forth consecutive play, but even then it could present an unwanted experience. See discussion at T326902.
A compromise is to introduce a new JavaScript hook that allows scripts and gadgets to mutate the Audio object.
Acceptance criteria
- Add a new hook called ext.Phonos.play that is fired just before playback.
- Update the documentation accordingly.
QA notes
You can put this in Special:MyPage/common.js to test slower playback:
mw.hook( 'ext.Phonos.audio' ).add( function ( audio ) { audio.playbackRate = 0.5; } );