Hi Jonas,
Thanks. You and Kumar are right.

https://developer.mozilla.org/en-US/docs/Apps/App_permissions

My apologies for my mistake.

Regards,
-Eduardo


Em 25-03-2013 17:35, Jonas Sicking escreveu:

That's not correct. Hosted apps should be able to use the "content" channel exactly the same way as packaged apps.

However in both cases do you need to enumerate audio-channel-content (iirc) in the permissions list in the app manifest.

/ Jonas

On Mar 25, 2013 10:43 AM, "Edu Cremon" <[email protected] <mailto:[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.

    Regards,
    -Eduardo


    Em 25-03-2013 14 <tel:25-03-2013%2014>:09, Kumar McMillan escreveu:

        On Mar 23, 2013, at 9:49 PM, Edu Cremon <[email protected]
        <mailto:[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]
            <mailto:[email protected]>
            https://lists.mozilla.org/listinfo/dev-webapps


    _______________________________________________
    dev-webapps mailing list
    [email protected] <mailto:[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