Loading ...
Sorry, an error occurred while loading the content.

Re: [svg-developers] Audio in SVG

Expand Messages
  • Raks A
    Thanks Doug, Is there no way to play audio in SVG Tiny 1.1 instead of 1.2 ? I know SVG Tiny 1.2 has the audio tag but isn t there any way to play audio in SVG
    Message 1 of 8 , Aug 30, 2010
    View Source
    • 0 Attachment
      Thanks Doug,

      Is there no way to play audio in SVG Tiny 1.1 instead of 1.2 ?
      I know SVG Tiny 1.2 has the audio tag but isn't there any way to play audio
      in SVG Tiny 1.1

      - Raks

      On Mon, Aug 23, 2010 at 10:00 PM, Doug Schepers <doug@...> wrote:

      >
      >
      > Hi, folks-
      >
      > Juca, you silly Inkscape developer, SVG Tiny 1.2 is for mobiles, and it
      > has <audio> and <video> elements.
      >
      > Raks, you may be able to use a data URI as the href attribute value of
      > the <audio> element in SVG Tiny 1.2; it depends on the implementation.
      > While SVG doesn't explicitly mention it, it is perfectly valid; data
      > URIs are spelled out in RFC-2397.
      >
      > Here's an example of it [1], using an HTML <audio> element in an SVG,
      > but the principle is the same... just use the data URI in the SVG
      > <audio> element instead (don't forget to use the SVG syntax instead of
      > the HTML syntax, in your case.
      >
      > [1] http://schepers.cc/svg/multimedia/audio-datauri.svg
      >
      > Regards-
      > -Doug
      >
      > Felipe Sanches wrote (on 8/23/10 10:44 AM):
      >
      > > oh...
      > > I believe that the only way to do it in a standards compliant way is
      > using
      > > html5 audio.
      > >
      > > Non-standards-compliant ways include using dirty-Flash :-P
      > >
      > > On Mon, Aug 23, 2010 at 11:31 AM, Raks A<rakssvg@...<rakssvg%40gmail.com>>
      > wrote:
      > >
      > >>
      > >>
      > >> Thanks but I do not have the option of using HTML5 as I want to do this
      > in
      > >> mobiles which do not support HTML5
      > >>
      > >> On Mon, Aug 23, 2010 at 7:26 PM, Felipe Sanches<
      > felipe.sanches@... <felipe.sanches%40gmail.com><felipe.sanches%
      > 40gmail.com>
      > >> >wrote:
      > >>
      > >>
      > >> > you can checkout this directory from my svn:
      > >> >
      > >> >
      > >>
      > http://code.google.com/p/felipesanches/source/browse/#svn/trunk/SVG/minigames/TuxVsMSNbug
      > >> >
      > >> > it contains a demo of using SVG with base64 encoded audio created
      > using
      > >> > html5 audio tag
      > >> >
      > >> > Happy Hacking,
      > >> > Felipe "Juca" Sanches
      > >> >
      > >> > On Mon, Aug 23, 2010 at 10:51 AM, Raks A<rakssvg@...<rakssvg%40gmail.com>
      > <rakssvg%40gmail.com>>
      > >> wrote:
      > >> >
      > >> > >
      > >> > >
      > >> > > Hi,
      > >> > >
      > >> > > Is there a way I can embed the sound effects into a SVG file without
      > a
      > >> > http
      > >> > > link
      > >> > > something we can do for an image like
      > >> > > <image xlink:href="data:image/png;base64,/9j/4A.....
      > >> > >
      > >> > > Here the bytes for the image are put inside the svg file itself
      > >> > >
      > >> > > This way i can have small sound effects as the animation flows
      > without
      > >> > the
      > >> > > browser requring to go to the server again
      > >> > >
      > >> > > - Raks
      >
      >
      >
      ,


      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.