Open Bug 1105230 Opened 9 years ago Updated 2 years ago

Support custom sound files for libnotify notifications

Categories

(Core :: Widget: Gtk, defect, P5)

All
Linux
defect

Tracking

()

People

(Reporter: mikedeboer, Unassigned)

References

(Depends on 1 open bug)

Details

Web Notifications may specify a custom sound file, like:

```js
new Notification("title", {
  mozbehavior: {
    soundFile: "chrome://url/to/soundFile.ogg"
  }
});
```

...and as such libnotify notifications will need to support this as well.
I wonder whether there is a reason to use platform support for soundFile.
I guess we want to use Gecko code for XP codec support.

Perhaps there might be a need for a platform-specific part for timing of the sounds with the notifications?
(In reply to Karl Tomlinson (:karlt) from comment #1)
> I wonder whether there is a reason to use platform support for soundFile.
> I guess we want to use Gecko code for XP codec support.
> 
> Perhaps there might be a need for a platform-specific part for timing of the
> sounds with the notifications?

That's a great idea, I think; all notification subsystems have support to _not_ play the (default) sound, so that'd be the option to use here and play the sound using Gecko code (straight in alert-service, for example).
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.