Last modified: 2013-05-03 14:43:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T20852, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18852 - Support inline player for MIDI files
Support inline player for MIDI files
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
TimedMediaHandler (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Michael Dale
:
: 18922 (view as bug list)
Depends on:
Blocks: multimedia
  Show dependency treegraph
 
Reported: 2009-05-20 11:40 UTC by 百楽兎
Modified: 2013-05-03 14:43 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description 百楽兎 2009-05-20 11:40:53 UTC
Could you consider supporting the play of Midi files?
Comment 1 百楽兎 2009-05-23 01:20:41 UTC
Could any developers give an reply? Please.
Comment 2 Brion Vibber 2009-05-26 20:51:10 UTC
Moving this out of OggHandler extension to 'extension requests' generally.

I'm not sure how fully or consistently inline midi players are supported on modern browsers; if common and consistent, a MidiHandler class could probably be tossed into core pretty easily. If not, it might require jumping through some hoops to provide a player, which would be kinda uggy.
Comment 3 Brion Vibber 2009-05-26 20:52:04 UTC
*** Bug 18922 has been marked as a duplicate of this bug. ***
Comment 4 alex.farlie 2011-11-06 16:06:04 UTC
On Commons and other Mediawiki Wikis,  there are uploads of MIDI files,

However, to play these 'in-browser' currently requires a non-free plugin (such as Quicktime)

By providing an 'inline' player for Midi (possibly based on Java) this dependence on a non-free plugin would be reduced.

One possible solution, but this would involve some work, is for the server side to do a one-shot rendering of MIDI files into a format like OGG (using something like FluidSynth and a suitable 'free' sample set).

A second solution would be to have a specific inline MIDI plugin.

The third solution is the current one, whereby the MIDI file is offered for 
download to an external player.
Comment 5 Mark A. Hershberger 2013-05-01 01:16:00 UTC
There is now a MIDI player available in TMH (see Bug 43388).  Maybe it could be used for all the MIDI files on commons?
Comment 6 Andre Klapper 2013-05-02 12:42:08 UTC
Tentatively moving to TMH, though not sure if TMH itself needs further code changes, or if this falls into a server configuration category.

Jan / Michael: Do you know?
Comment 7 spage 2013-05-03 01:07:27 UTC
FWIW the Score extension invokes /usr/bin/timidity (the TiMidity++ MIDI converter) in Score.body.php's generateOgg() to convert MIDI files generated by GNU Lilypond into .ogg files. It seems plausible to do just this part of Score's processing for other MIDI files.

A different approach is to read, process, and play MIDI files directly in sufficiently powerful recent browsers, see http://mudcu.be/midi-js/
Comment 8 Mark A. Hershberger 2013-05-03 14:05:41 UTC
spage, thank you for clarifying this.  I hadn't looked closely at Score and only saw that the player was JS.  I didn't look at the source and only saw that Bug 43388 called for MIDI and assumed that, as a result, TMH was using MIDI.

But, yes, midi.js was the other tool I looked at for this.  From my tests (and information on the website), it doesn't work as well in recent Firefox as it does in Chrome.  Filing a bug with Mozilla.
Comment 9 Mark A. Hershberger 2013-05-03 14:43:49 UTC
For the curious, my Mozilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=868425

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links