Is there any notification for detecting AirPlay in Objective-C?

前端 未结 5 2121
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-02 11:33

I am using MPVolumeView for showing Airplay icon and it works fine.

But I need to show an animation when Airplay network comes, and hide that animation when airplay net

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-02 12:06

    6 years later. I think Sankar Siva did not ask for detecting, but for activating an airplay route.

    I've upped @Alf because he placed me on the right direction, but he is not answering to the question.

    MPVolumeViewWirelessRoutesAvailableDidChangeNotification fires when MPVolumeView detects a new route.

    On the other hand, MPVolumeViewWirelessRouteActiveDidChangeNotification fires when a new route is taken, eg: when you select your Apple TV for example.

    No need of private API.

提交回复
热议问题