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
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
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:
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
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
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
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
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
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
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
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
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
12 matches
Mail list logo