Closed Bug 269915 Opened 20 years ago Closed 17 years ago

No way to play audio in SVG on Mac

Categories

(Core :: SVG, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jay, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8a5) Gecko/20041103 Firefox/0.9.1+
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8a5) Gecko/20041103 Firefox/0.9.1+

is SMIL 1.0 or 2.0 supported?
http://w3.org/AudioVideo/#SMIL  mozilla nor firefox listed

son et lumiere: that is sound and light, not light and sound.
sound is critical to the use of the web by many people with disabilities.
it has the potential to enhance many web experiences.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
doesn't currently seem possible to play sounds

Expected Results:  
it should be possible, in html it is.
This is probably a dupe, but I'm not sure to which existing SMIL bug.  Jonathan,
which bug applies, or are you asking for something different?

bug 93321 - Native SMIL support (wontfixed)
bug 216462 - SVG SMIL Animation (for SVG-specific SMIL)
bug 231729 - XHTML+SMIL support

*** This bug has been marked as a duplicate of 93321 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
sorry Ian, have removed the SMIL aspect as this seems to be out of scope.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Summary: SMIL and sound → Sound
So er, what's the request, exactly?
people who are pre-literate like most of us enjoy and benefit from sound.
SVG is a good vehicle, because many also use symbols to communicate.

specific examples of how sound is used for this client group include:
http://www.peepo.co.uk/launch/index.svg uses adobe extension :-(
http://www.mencap.org.uk/Test/mnis/accessible/html/health/general_health.html flash
http://www.advocacyproject.org.uk/ flash

please note these are all sound on event, and just represent a few of the
hundreds of sites we link to.

would it be possible to use an extension?

until SVG1.2 is adopted: http://www.w3.org/TR/SVG12/media.html#audio-element

I do realise this is asking a lot, but mozilla/firefox HTML does already support
sound.
Once an audio API (declarative or imperative, as it may be) is specced out and
considered appropriate for Gecko to support (which apparently SMIL was not) then
I'm sure this will happen.

However, a vague request with no specification cannot be implemented, so I shall
mark this INVALID.


You may be interested in seeing the simple Sound API being proposed by WHATWG:

   http://whatwg.org/specs/web-apps/current-work/#sound

Your comments on this API would be most welcome:

   http://whatwg.org/mailing-list


You may also be interested in (and indeed are aware of) the SVG 1.2 proposal:

   http://www.w3.org/TR/SVG12/media.html#audio-element

Notwithstanding the concept that a vector graphics language should include
elements for synchronised audio, Gecko may (if SVG1.2 is deemed more appropriate
for Web browsers than SMIL) implement this once it a candidate recommendation.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → INVALID
ian,

it's a little known fact that the deaf are more disabled than the blind.
I've listed quite a number of bugs, but this is easily the most significant.

my concern is that SVG1.2 wont be fully supported by mozilla for some years.
Could you please explain further what it is that you feel hasn't been supplied.

mozilla already has a 'sound spec' and api as used in html (assuming my
terminology isn't wrong ;-)

SVG supports extensions, so why isn't it reasonable to use an extension that
relies on the html sound?

many of our users rely on sound, that is why flash is so popular with them.
many specialist websites don't use animation at all, just flash for sound.
without some indication that work on sound is going to be implemented in the
near future there is very little point in me continuing to create bug reports.

is there a workaround with foreignObject and flash? anything is worth considering.

cheers

ps I'm not really in a position to comment on the whatWG API
If the HTML sound API that is currently provided is satisfactory, then you can
just use that in an SVG context, that should work fine (if it doesn't, please
file a separate bug, with a testcase showing the exact problem).

Beyond that I really don't understand exactly what you want.
ian,

I don't understand what you mean by "you can just use [the HTML sound API] in an
SVG context"

I could use it in an html file, but for various reasons that isnt appropriate.

how would I use it in an SVG file?
jwatt suggests trying foreignObject... if you just include an html doc that only
plays the sound.... and just script across the FO if necessary?

giving this some consideration, as Jim and I already discussed similar
You can use any HTML elements you want in an XML context (such as an SVG
context) by using the XHTML namespace:

   <svg xmlns="http://www.w3.org/2000/svg">
    ...
    <script xmlns="http://www.w3.org/1999/xhtml">
     ...
    </script>
   ...

...or whatever elements you want to use.
ian, is your suggestion #11 theoretical, or practical?

in the meantime attachment tested and working on mac/firefox native but does not
work for me pc/mozilla native


Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Summary: Sound → Sound foreignObject embed src
Practical.
If there is a bug with a specific testcase, please file a new bug; morphing a
bug to cover a different issue than was originally filed causes confusion and
rarely results in the bug being fixed.

The original bug here was, as far as I can tell, "provide an API for sound that
can be used in SVG, like the HTML API can be used in HTML". There is no reason
who the HTML API can't be used from SVG, so I am marking this WONTFIX: there is
no reason to provide a new API here.

If you have a specific problem with using the existing API, please file a new bug.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → WONTFIX
sorry Ian,

thanks
http://peepo.co.uk/temp/fo-sound.svg
this file plays a sound onloading svg file

cant get scripting to work, have moved to seperate bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=270470

ian, I cant get your proposed method to work, would appreciate a further hint if
possible
Status: RESOLVED → UNCONFIRMED
Resolution: WONTFIX → ---
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → WORKSFORME
This isn't a help system, it's a bug database.

Sound support as far as I am concerned will come with the Web Apps proposal I
mentioned in comment 6; I merely pointed to the fact that you can use HTML's
sound support because you mentioned it earlier.
Flags: in-testsuite-
jwatt,

are you using os x?
because I checked once again tonight, this works in html, but not in the svg file attachement as above.

if not please re-opne bug

regards
jwatt, checked with latest mozilla trunk nightly this remains broken.

if this is working using a different branch on os x, please advise.

the svg attachment is known to work in safari
the html attachment works in minefield
Status: RESOLVED → UNCONFIRMED
Resolution: WORKSFORME → ---
Status: UNCONFIRMED → NEW
Ever confirmed: true
Please test using the testcase I've attached to bug 270422.

  https://bugzilla.mozilla.org/attachment.cgi?id=284963

If it doesn't work, please check that the page about:plugins has a handler for the audio/x-wav type.
Summary: Sound foreignObject embed src → No way to play audio in SVG on Mac
For some reason we ended up having a conversation about the Mac support on this bug's Windows counterpart (start bug 269915 comment 3). Anyway, the conclusion is that this works for peepo.
Status: NEW → RESOLVED
Closed: 20 years ago17 years ago
Resolution: --- → WORKSFORME
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: