From MozillaWiki
< Labs‎ | Jetpack‎ | JEP
Jump to: navigation, search

JEP 26 - Music

  • Champion: Anant Narayanan <anant at mozilla dot com>
  • Status: Implementing
  • Type: API Track
  • Created: 10 September 2009
  • Reference Implementation: jetpack.future.import("music")
  • JEP Index


This module allows the developer to access the host media player (currently, iTunes on Mac; players supporting dbus on Linux; no support for Windows as of yet). The developer may query the media player for tracks, play or pause them, and perform other functions such as skip track and go to previous track.


The Music module is available under

To search for a track, album or artist, call: An array of IMusicTrack objects will be returned. Each object contains the artist, album and title properties.

You may pass a IMusicTrack object to in order to play that track. returns the track currently playing.

Other methods available are play(), pause(), stop(), gotoNextTrack(), and gotoPreviousTrack().


This jetpack will play your favorite track everytime Firefox starts.

let tracks ='thriller');[0]);