首页 > 移动平台 > 详细

为APP添加AirPlay设备选择按钮

时间:2015-06-29 12:58:58      阅读:173      评论:0      收藏:0      [点我收藏+]

 

以下代码可以在自定义的播放页添加AirPlay设备选择按钮

MPVolumeView *volumeView = [ [MPVolumeView alloc] init] ;
[volumeView setShowsVolumeSlider:NO];
[volumeView sizeToFit];
[self.view addSubview:volumeView];

The picker is visible only when there is an AirPlay output device available.

 

相关介绍见官方文档:https://developer.apple.com/library/ios/documentation/AudioVideo/Conceptual/AirPlayGuide/EnrichYourAppforAirPlay/EnrichYourAppforAirPlay.html#//apple_ref/doc/uid/TP40011045-CH6-SW1

为APP添加AirPlay设备选择按钮

原文:http://www.cnblogs.com/moyazi/p/4607133.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!