Closed Bug 334920 Opened 20 years ago Closed 19 years ago

SVG foreignObject <object> broken

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jay, Unassigned)

References

Details

Attachments

(7 files, 7 obsolete files)

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.2) Gecko/20060313 Camino/1.0.0+ Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.2) Gecko/20060313 Camino/1.0.0+ sound is recognised by the senses in humans and animals. sound is supported by most common user agents and devices. Reproducible: Always Please refer to bug https://bugzilla.mozilla.org/show_bug.cgi?id=92110 Allow simple audio format (wav, aiff) sound files to be played internally it is important that SVG is included in this upgrade Accessibility considerations indicate that there are significant advantages in providing sound for a very broad group of individuals. Many html sites, most games, flash and asv already do. SVG 1.1 does not include sound, however given that adobe has purchased macromedia, it is only reasonable to query the rationale for this decision. presumably some smaller devices do not include sound support this is unlikely to include mobiles.
Audio is not in SVG 1.1.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
is it the current process that enhancements are resolved as invalid? this might seem to directly conflict with the meaning of enhancement...
You need to go an talk to the guys making the SVG standard. Mozilla doesn't arbitrarily extend standards.
Depends on: 92110
A working example of sound playing in SVG using Safari Webkit is here: http://bugzilla.opendarwin.org/attachment.cgi?id=8239 There are two graphics and each produces a unique sound onmouseover this workaround relies on foreignObject
Attached image HTML 5 Audio - Opera9b (obsolete) —
Is Mozilla the only browser not to support sound?
Now that Opera, Safari-webkit and IE-ASV all support sound, is Mozilla the only browser that doesn't support sound?
(In reply to comment #4) > A working example of sound playing in SVG using Safari Webkit is here: > http://bugzilla.opendarwin.org/attachment.cgi?id=8239 This is just using <embed>, it has nothing to do with SVG. That should work in Mozilla already (assuming you have the relevant plugins involved). If it doesn't please file a bug on the plugin component.
Status: RESOLVED → VERIFIED
(In reply to comment #7) Hixie, embed works fine in HTML, the code in #4 relies on SVG element foreignObject which appears to be broken or disabled. I have tested embed support in OS X and win'98 in each case the html embed file plays a sound but the SVG file does not. One test for the html working is here: http://www.peepo.com The attachment supplied uses WHATWG Audio
#7 Hixie, what evidence is there that this is a plugin rather than foreignObject issue? we know the plugin works #8, but not when used with foreignObject #4. I wish to reopen this bug in the case that there is no other evidence. cheers
Summary: SVG only: play sounds → foreignObject broken: SVG only: play sounds
Status: VERIFIED → UNCONFIRMED
Resolution: INVALID → ---
Severity: enhancement → normal
Attached image should play sound (obsolete) —
Attachment #221793 - Attachment is obsolete: true
copies Aaron in on bug, thanks to his offline comments have produced a very much smaller minimal testcase, which works for Safari Webkit
Attachment #228810 - Attachment is obsolete: true
Changing bug summary to reflect widened scope of problem. neither embed nor object appear to be supported when using foreignObject within SVG. see mp3 and flash attachments.
Summary: foreignObject broken: SVG only: play sounds → SVG: foreignObject: html: embed/object broken
Flags: blocking1.9a1?
Attached file java class: hello world (obsolete) —
Attached file java class: hello world (obsolete) —
Attachment #228829 - Attachment is obsolete: true
Attached image java embed/object example (obsolete) —
http://www.peepo.co.uk/temp/java.svg this example demonstrates similar problem for java class embed/object https://bugzilla.mozilla.org/show_bug.cgi?id=274217 was the original bug attachments above don't work but this URI works in a fashion on Safari webkit.
Attachment #228830 - Attachment is obsolete: true
Attachment #228833 - Attachment is obsolete: true
Status: UNCONFIRMED → NEW
Ever confirmed: true
foreignObject is working on trunk nightly builds so this should be fixed. Specifically if you have the plugin installed you should be able to hear https://bugzilla.mozilla.org/attachment.cgi?id=228821&action=view
#19 using OS X http://www.peepo.co.uk/temp/splat0.mp3 plays a sound however the mp3 test case above which links to this file doesn't play the sound.
demonstrates that sound works in embed html
This is wfm with a five day old nightly on Win2k and Quicktime as plugin.
I get no sound and I have quicktime and the html test works. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060811 Minefield/3.0a1 ID:2006081111
comment 22 was regarding the foreignObject mp3 test attachment 228821 [details], so it seems to work under certain circumstances, but not others
re #22 have asked frank to confirm what works for him, it's not clear this isn't the html test :-) cheers
I hear a **** in Minefield version 3.0a1, Gecko/200608081, but i don't hear it in Firefox 1.5.0.6. Both on WinXP
firefox 1.5.x isn't expected to work
with a couple more win 2k or XP reports on: http://www.peepo.co.uk/temp/java.svg and https://bugzilla.mozilla.org/attachment.cgi?id=228813 this could resolve to an OS X issue cheers firefox 1.5.x isn't expected to work
Build identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/2006081204 Minefield/3.0a1 on WinXP also gives sound
http://tech.groups.yahoo.com/group/svg-developers/message/56788 a particularly clear message from Jon Ferraiolo on audio support: Hi Jonathan, You asked, so I will answer. My opinion on audio and video is that I hope the browser vendors see the multimedia light and implement the SMIL timing and animation modules. They have to implement most of it anyway for SVG 1.1, so why not have a bit of foresight and: * implement the few extra bits needed for future support for what is needed for SVG-t 1.2 * implement the timing and animation engines as separate modules from SVG so that it can be used on HTML also (similar to HTML+TIME in IE5.5) * support SVG-t 1.2's audio and video tags in conjuntion with SVG content * support audio and video content in conjunction with HTML's object tag The tricky part is inclusion of industry-standard codecs, some of which require paying licensing fees, which is hard for freely downloadable software. To get around this issue, the browser vendors should hook into existing audio/video player software (QuickTime, WMP, even maybe Flash) via the HTML object tag which they control from their built-in SMIL engine. I think this is an important issue for that part of the industry that wants to create standards-compliant content and not rely on proprietary formats and single-vendor runtimes. Multimedia is hitting the mainstream (driven in part by all of those young people uploading bad videos for the world to see). We need a standards-based approach to playing that content in conjunction with rich user interfaces. Jon Jon Ferraiolo Web Architect, Emerging Technologies -- I wrote: among other significant outstanding bugs that mozilla/firefox is being really slow to resolve is the issue of audio or sound. Aywk adobe had sound support from the start as does flash. in fact many authors use flash solely to provide audio on webpages. I just wondered whether you had considered this issue and whether you felt it had relevance.
Attached image object test for mp3
Irène pointed out that <object> alone should be sufficient, it works in html, but not when wrapped in foreignobject svg
Attached image object without embed (obsolete) —
Attached file object in html (obsolete) —
Attachment #252466 - Attachment is obsolete: true
Attachment #252467 - Attachment is obsolete: true
#35 & #36 should make this bug clear enough. my apologies, for the time it has taken to develop them. a similar bug is filed by me with amaya, webkit, opera and others, so please bear with me.... as I dance between standards compliance and current functionality using embed, innerHTML whatever, and cope with short-term memory loss.
Summary: SVG: foreignObject: html: embed/object broken → SVG foreignObject <object> broken
Attachment #253606 - Attachment mime type: image/svg-xml → application/svg-xml
Attachment #253606 - Attachment mime type: application/svg-xml → application/svg+xml
okay so the attachment doesn't work as such\ but that's a separate issue something to do with the way it's being served. try http://peepo.co.uk/temp/data.svg the kind people at webkit pointed out that src= is not part of the xhtml1.1 standard and data= should be used. mind you it's not working on webkit yet ~:"
Status: NEW → RESOLVED
Closed: 20 years ago19 years ago
Resolution: --- → FIXED
Flags: blocking1.9a1?
#39 re: linux mandriva 2007 'free' using ff nightly downloading the sound file opens "totem" automatically. but loading the SVG file http://peepo.co.uk/temp/data.svg does not. how to tell if this is a plugin issue?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: