Results 1 to 7 of 7

Thread: HowTo: embedded midi in firefox

  1. #1
    Join Date
    Oct 2005
    Location
    Netherlands
    Beans
    98
    Distro
    Ubuntu 13.10 Saucy Salamander

    Smile HowTo: playing embedded midi in firefox

    Info
    Midi files aren't working in firefox without a special plugin and ofcourse a midi software 'renderer'.
    The plugin doesn't cooperate very nice with Acrobat Reader in firefox, but using xpdf in firefox solves this problem.

    Installation
    Open up a terminal and execute
    Code:
    sudo apt-get install timidity mozplugger
    Answer yes to all questions and the installation will be complete.

    Restart firefox (don't forget to close all instances) and voila, embedded midi files should now play.

    if pdf's arent displaying anymore in your browser because of this, you can solve it by doing the following:
    Code:
    sudo apt-get install xpdf
    Code:
    sudo gedit /etc/mozpluggerrc
    Put an # before the line with acroread in it, as shown below.
    Code:
    text/x-pdf: pdf: PDF file
    #      repeat swallow(documentShell) fill: acroread -geometry +9000+9000 +useFrontEndProgram "$file"
            repeat noisy swallow(Xpdf) fill: xpdf -g +9000+9000 "$file"
            repeat noisy swallow(gv) fill: gv --safer --quiet --antialias -geometry +9000+9000 "$file"
    Last edited by Peturrr; August 6th, 2006 at 11:35 AM.

  2. #2
    Join Date
    Feb 2006
    Beans
    1,086
    Distro
    Ubuntu Gnome

    Re: HowTo: embedded midi in firefox

    Thanks. The only thing is why does mozplugger not work with acroread?

    Edit: Nevermind. I figured out how to make acroread work with mozplugger.
    See
    http://www.ubuntuforums.org/showthread.php?t=186701
    Last edited by glennric; August 14th, 2006 at 03:35 PM.

  3. #3
    Join Date
    Apr 2005
    Beans
    55

    Re: HowTo: embedded midi in firefox

    I am using Feisty and this istallation hint will not work. :/ Firefox complains that it did not find an applicable plugin for audio/midi.

    Are there any other prerequisites apart from these two packages? (Freepats for example is needed for timidity.)

  4. #4
    Join Date
    Jun 2006
    Location
    Sydney
    Beans
    487

    Re: HowTo: embedded midi in firefox

    I think you would need freepats and timidity both. This worked fine for me in Feisty btw, and in Gutsy, except that I never mess around with Acroread since mozpluger makes good use of other lighter pdf tools as well. Also in gutsy I have to hit play on pages that show a play pause and stop thing where they played automaticaly before and in another Linux.

  5. #5
    Join Date
    Nov 2007
    Location
    Crotone, Italy
    Beans
    3
    Distro
    Ubuntu Development Release

    Re: HowTo: embedded midi in firefox

    Quote Originally Posted by drx View Post
    I am using Feisty and this istallation hint will not work. :/ Firefox complains that it did not find an applicable plugin for audio/midi.

    Are there any other prerequisites apart from these two packages? (Freepats for example is needed for timidity.)
    You need to delete /home/[USERNAME]/.mozilla/pluginreg.dat and restart firefox. This is because a bug require mozplugger to be the last plugin loaded (and it will be if you delete that plugin file).

  6. #6
    Join Date
    Dec 2007
    Beans
    2

    Re: HowTo: embedded midi in firefox

    I can't find pluginreg.dat to delete it. I've look in a few places. Can somebody tell me its correct location? I'm using ubuntu 7.10

  7. #7
    Join Date
    Sep 2006
    Beans
    17

    Re: HowTo: embedded midi in firefox

    There is a mozilla folder in your Home folder, but you cannot see it until you turn on 'show hidden files' in the 'view' menu.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •