1

I have a AudioPlayer playing music from an url.

var streamer = Ti.Media.createAudioPlayer({
    url : '8..'
});

and then I have fixed so that I can play music in background for iOS. But the problem is that I can´t access the system buttons, for example if you lock your iPhone and press the home button twice you will get a backward, pause/play and forward button and if your iPhone is unlocked and you press the home button twice and swipe the bottom bar to the right you have system controls.

I saw a comment in a thread at appcelerators q/a: Check the comment from Dustin Hume http://developer.appcelerator.com/question/47291/background-audio-in-14

I did all those steps and was able to run my AudioPlater but I were not be able to use the remote buttons. I have checked the API documentation and it does not say anything about this. Anyone have a clue?

4

2 に答える 2

0

このモジュールを使用してこの問題を解決しました: https://github.com/hoyo/TiRemoteControl

于 2013-08-15T14:08:35.707 に答える