Re: [b2g] Need simple help with audio

2013-12-11 Thread Jonas Sicking
On Dec 10, 2013 1:32 AM, "Vivien Nicolas" wrote: > > > > On 10/12/2013 10:21, Bob Thulfram wrote: >> >> On Monday, December 9, 2013 6:49:07 PM UTC-8, Bob Thulfram wrote: >> >> Also, I thought that onXXX wasn't supported, but it seems to work. I prefer event handlers. >> > > onxxx (or inline JS) is

Re: [b2g] Need simple help with audio

2013-12-10 Thread Bob Thulfram
On Monday, December 9, 2013 6:49:07 PM UTC-8, Bob Thulfram wrote: > Or maybe audio isn't simple anymore. All I want to do is play an audio file. > > > > Here's my code: > > > > > > > > > > > > > > Audio Test > > > > > > > > > > // Load

Re: [b2g] Need simple help with audio

2013-12-10 Thread Dominic Kuo
dy? Does it hurt? No, like an img or video tag you don't need to append the it to the DOM tree if you just want to play the sound. - Dominic - Original Message - From: "Bob Thulfram" To: dev-b2g@lists.mozilla.org Sent: Tuesday, December 10, 2013 5:21:29 PM Subject: Re:

Re: [b2g] Need simple help with audio

2013-12-10 Thread Bob Thulfram
On Monday, December 9, 2013 6:49:07 PM UTC-8, Bob Thulfram wrote: > Or maybe audio isn't simple anymore. All I want to do is play an audio file. > > > > Here's my code: > > > > > > > > > > > > > > Audio Test > > > > > > > > > > // Load

Re: [b2g] Need simple help with audio

2013-12-10 Thread Bob Thulfram
On Monday, December 9, 2013 6:49:07 PM UTC-8, Bob Thulfram wrote: > Or maybe audio isn't simple anymore. All I want to do is play an audio file. > > > > Here's my code: > > > > > > > > > > > > > > Audio Test > > > > > > > > > > // Load

Re: [b2g] Need simple help with audio

2013-12-10 Thread Vivien Nicolas
On 10/12/2013 10:21, Bob Thulfram wrote: On Monday, December 9, 2013 6:49:07 PM UTC-8, Bob Thulfram wrote: Also, I thought that onXXX wasn't supported, but it seems to work. I prefer event handlers. onxxx (or inline JS) is not supported for privileged/certified application due to the CSP

Re: [b2g] Need simple help with audio

2013-12-10 Thread Bob Thulfram
On Monday, December 9, 2013 6:49:07 PM UTC-8, Bob Thulfram wrote: > Or maybe audio isn't simple anymore. All I want to do is play an audio file. > > > > Here's my code: > > > > > > > > > > > > > > Audio Test > > > > > > > > > > // Load

Re: [b2g] Need simple help with audio

2013-12-10 Thread Dominic Kuo
it runs on the real device, so if you are still developing, you can use ogg files first then replace them after you got your app work. - Dominic - Original Message - From: "Bob Thulfram" To: dev-b2g@lists.mozilla.org Sent: Tuesday, December 10, 2013 10:49:07 AM Subject: [b2g] Ne

Re: [b2g] Need simple help with audio

2013-12-10 Thread Bob Thulfram
On Monday, December 9, 2013 6:49:07 PM UTC-8, Bob Thulfram wrote: > Or maybe audio isn't simple anymore. All I want to do is play an audio file. > > > > Here's my code: > > > > > > > > > > > > > > Audio Test > > > > > > > > > > // Load

Re: [b2g] Need simple help with audio

2013-12-10 Thread Jason Weathersby
myAudio = new Audio("song.wav"); myAudio.oncanplaythrough = processMyAudio; - Original Message - From: "Bob Thulfram" To: dev-b2g@lists.mozilla.org Sent: Monday, December 9, 2013 11:49:39 PM Subject: Re: [b2g] Need simple help with audio On Monday, Decembe

Re: [b2g] Need simple help with audio

2013-12-09 Thread Bob Thulfram
On Monday, December 9, 2013 6:49:07 PM UTC-8, Bob Thulfram wrote: > Or maybe audio isn't simple anymore. All I want to do is play an audio file. > > > > Here's my code: > > > > > > > > > > > > > > Audio Test > > > > > > > > > > // Load

[b2g] Need simple help with audio

2013-12-09 Thread Bob Thulfram
Or maybe audio isn't simple anymore. All I want to do is play an audio file. Here's my code: Audio Test // Load the page. window.addEventListener("load", runFirst, false); // Runs when the page is loaded. fun