Hi Kumar,
Sorry. You are totally right! Only the audio-channel-content permission is needed.
Thanks for the correction.

Em 25-03-2013 15:15, Kumar McMillan escreveu:

On Mar 25, 2013, at 1:05 PM, Edu Cremon <[email protected] <mailto:[email protected]>> wrote:


Em 25-03-2013 14:56, Kumar McMillan escreveu:
On Mar 25, 2013, at 12:43 PM, Edu Cremon<[email protected]>  wrote:

Hi Everybody,
By observing the logcat, I figured out that my app was receiving a "NO SETTINGS 
PERMISSION FOR" error/exception.
I wrote the manifest.webapp again from scratch and now everything is good!

Kumar,
The app must be packaged. The expected behavior (background audio) is not 
allowed to host apps.
ah, good to know. Which exact permission did you have to add to your packaged 
app to get it working? I don't see one here specifically for background 
audiohttps://developer.mozilla.org/en-US/docs/Apps/App_permissions  Or did it 
simply start working because your app was packaged?


The app must be packaged and you must add the right permission ( "audio-channel-content" ) in the manifest.webapp, like this:

"permissions": {
     "settings":{ "access": "readonly" },
     "deprecated-hwvideo":{},
*"audio-channel-content":{}*
   }

It's almost the same we found in the manifest file from Music app.

My hosted app was missing the audio-channel-content permission so I added it to the manifest, re-installed, and background audio was working. Per the matrix that permission seems to be available to hosted apps https://developer.mozilla.org/en-US/docs/Apps/App_permissions



Regards,
-Eduardo




Regards,
-Eduardo


Em 25-03-2013 14:09, Kumar McMillan escreveu:
On Mar 23, 2013, at 9:49 PM, Edu Cremon<[email protected]>  wrote:

Hi,

I'm trying to play streamed audio, but the audio goes muted as soon as the app 
goes to background.

The webApp is packaged/certified (actually, it's a test_app)and the permission 
"audio-channel-content" was set in manifest,

Follows the relevant part of the source-code:

    stream.removeAttribute('src');
    stream.load();
    stream.mozAudioChannelType = 'content';
    stream.src = liveStreamURL;
    stream.load();
    stream.play();

Am I doing something wrong?
Good question. I am seeing the same behavior. I checked b2g-ps in an adb shell 
and my app is still running when the audio stops playing so it seems 
deliberate. I don't know enough about audio to say why it's like that.

BTW, I was experimenting with a hosted app, no extra permissions. A live stream 
worked just the same way.

Thanks in advance.

Regards,
-Eduardo

_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps



_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps

Reply via email to