AirPlay button on custom view

后端 未结 3 995
太阳男子
太阳男子 2020-12-13 16:25

4.3 finally :) I am searching right now how to add air play button to custom view. I have MPMoviePlayer that load movie. I disabled standard controls and added overlay view

3条回答
  •  眼角桃花
    2020-12-13 17:01

    If you want just the AirPlay button without the volume slider follow the instructions in Jilouc's answer and then set the following properties on the myVolumeView:

    [myVolumeView setShowsVolumeSlider:NO];
    [myVolumeView setShowsRouteButton:YES];
    

    That will hide the volume slider but keep the route button.

提交回复
热议问题