[Streamer] Audio

[Streamer] Audio

  
Forge Component
(2)
Published on 2016-12-15 by Rúben Gonçalves
2 votes
Published on 2016-12-15 by Rúben Gonçalves

Hi,

I am using this demo to download and play audio files(mp3). The problem I am having is that the playback stops every time the screen locks. How do I get the audio to keep playing even if the device locks?

Hi Grant,

Just discussed with a college, and if you aim to do that you need to use the cordova media plugin.

This plugin has a feature named playAudioWhenScreenIsLocked, that appears to do what you want.


Hope this helps you out.

Cheers,

RG

Hi Ruben,

I looked at it and I was hoping that your plugin would work for me. I guess I will have to learn some Javascript and try create the plugin myself.

Thanks

Grant

Grant, 

You have a the skeleton/plugin template for you to follow in the forge (don't forget to clone the module).

Share it then in the forge! :)

Cheers & good luck,

RG

Hi Ruben,

Thanks I will check it out.

Cheers,

Grant