Closed
Bug 279011
Opened 20 years ago
Closed 12 years ago
nsISound errors when trying to play wav/au file
Categories
(SeaMonkey :: UI Design, defect)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: iannbugzilla, Assigned: jag+mozilla)
Details
User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.8a5) Gecko/20041208
Build Identifier: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.8a5) Gecko/20041208
Trying to play a wav or au file on a Solaris 8 box just generates the following
error message in the JS console:
Error: uncaught exception: [Exception... "Component returned failure code:
0x80004005 (NS_ERROR_FAILURE) [nsISound.play]" nsresult: "0x80004005
(NS_ERROR_FAILURE)" location: "JS frame ::
chrome://communicator/content/pref/pref-download.js :: PreviewSound :: line 64"
data: no]
Reproducible: Always
Steps to Reproduce:
1.Go to Edit, Preferences and select Downloads page
2.Click on browse and find either a wav or au file and select it
3.Click on preview
Actual Results:
Error message as above
Expected Results:
Plays the selected sound file as the OS can do using it's built in tools.
The code in 1.8a5 is something along the lines of:
gSound = Components.classes["@mozilla.org/sound;1"].createInstance(Component
s.interfaces.nsISound);
var ioService = Components.classes["@mozilla.org/network/io-service;1"]
.getService(Components.interfaces.nsIIOService);
var url = ioService.newURI(soundURL, null, null);
gSound.play(url)
Comment 2•20 years ago
|
||
nsSounds on Unix uses esound. Sounds like you don't have that on your Solaris box?
Comment 3•17 years ago
|
||
Can you reproduce with SeaMonkey v1.1.9 ?
Version: unspecified → SeaMonkey 1.0 Branch
Comment 4•12 years ago
|
||
Do we still use esound?
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•