Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

State of play/pause button in control center

$
0
0

Application type: mobile Titanium SDK: 3.2.1.201402041146 Platform & version: iOS 7.1 Device: iOS simulator Host Operating System: OSX

Hi all! We trying to create a music player using Ti.Media.createSound() and find a problem. When we start playing audio state of play/puase button in control center don't change. We can't test it on real devise(coz we don't have certificate).

Doues it only simulator problem? If not how can we solve that?

Tnx for any help!

Ti.Media.setAudioSessionMode(Titanium.Media.AUDIO_SESSION_MODE_AMBIENT);
        audioPlayer = Ti.Media.createSound({
            url : Titanium.Filesystem.applicationDataDirectory + '1.mp3',
            allowBackground : true
        });
        audioPlayer.play();

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>