- From: Jer Noble <jer.noble@apple.com>
- Date: Wed, 29 Jan 2014 10:19:21 -0800
- To: s p <sebpiq@gmail.com>
- Cc: "public-audio@w3.org" <public-audio@w3.org>
- Message-id: <507E0D91-31DD-47B9-82C4-F4BDF08563C6@apple.com>
On Jan 29, 2014, at 9:19 AM, s p <sebpiq@gmail.com> wrote:
> Hi!
>
> I'm desperately trying to have a simple oscillator running on a page with safari on IOS 7. I thought it should be supported, but after trying everything, I'm losing hope. It works on chrome, and pretty much everywhere else web audio is supported.
>
> In fact, I have tried many examples from the web with Safari, none of them works. Is there a catch with Safari on IOS?
This little oscillator test page seems to work on iOS: (Annoy your co-workers!)
I’ll look into your test case here, but your best course of action would be to file a bug on http://bugs.webkit.org and cc me.
-Jer
>
> Cheers,
>
> PS : Here is the code I am trying to run :
>
> <!DOCTYPE html>
> <html>
> <head>
> <title></title>
> <script src="js/jquery-2.0.3.min.js"></script>
> </head>
>
> <body style="background:#000; padding:0; margin:0;">
>
> <button id="play">PLAY</button>
>
> <script>
> var audioContext, osc
> $('#play').click(function() {
> audioContext = new (window.AudioContext || window.webkitAudioContext);
> osc = audioContext.createOscillator()
>
> osc.connect(audioContext.destination)
> if (osc.noteOn) osc.start = osc.noteOn
> osc.start(0)
> osc.frequency.value = 440
> $('body').css({'background-color': 'green'})
> })
> </script>
>
> </body>
>
> </html>
>
>
>
> --
> Sébastien Piquemal
>
> ----- @sebpiq
> ----- http://github.com/sebpiq
> ----- http://funktion.fm
Attachments
- text/html attachment: stored
- text/html attachment: oscillator.html
- text/html attachment: stored
Received on Wednesday, 29 January 2014 18:20:14 UTC