Question

Je fais une application de station de radio en ligne. L'application fonctionne bien.
Ma radio ne reprend pas une fois l'appel terminé. Et je dois le redémarrer à nouveau.

Voici mon code:

    void MyAudioSessionInterruptionListener(void *inClientData, UInt32 inInterruptionState)
    {
        ShoutcastAudioStreamer *radio = (ShoutcastAudioStreamer*)inClientData;
        if (inInterruptionState == kAudioSessionBeginInterruption) {
            [radio stop];
            NSLog(@"kAudioSessionBeginInterruption");
        }
        else if (inInterruptionState == kAudioSessionEndInterruption) {
        //  [radio start]; // this doesn't work - radio is gone
;
        }
    }

Quelqu'un peut-il aider?

Pas de solution correcte

Autres conseils

Des questions similaires ont été trouvées, mais sans réponse aussi ...

N'obtenez pas le déclencheur audiolisnenerInterruptionEnd

https://stackoverflow.com/q/8819315/751932

Cela peut probablement vous aider.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top