Xamarin.ios monotouch支持AirPlay吗?

Xamarin.ios monotouch支持AirPlay吗?,xamarin.ios,mpmovieplayercontroller,Xamarin.ios,Mpmovieplayercontroller,是否可以使用MPMoviePlayerController将AirPlay添加到流式视频中?我在文档中找不到它,MonoTouch 3.2.5发行说明也没有提到任何内容。要在Objective-C中启用Airplay,只需在MPMoviePlayerController上设置AllowAirPlay属性 myMPMoviePlayerController.allowsAirPlay = YES; 虽然这是objective c语法,但我认为您也可以对mono执行同样的操作,因为它只是设置了一个

是否可以使用MPMoviePlayerController将AirPlay添加到流式视频中?我在文档中找不到它,MonoTouch 3.2.5发行说明也没有提到任何内容。

要在Objective-C中启用Airplay,只需在MPMoviePlayerController上设置AllowAirPlay属性

myMPMoviePlayerController.allowsAirPlay = YES;

虽然这是objective c语法,但我认为您也可以对mono执行同样的操作,因为它只是设置了一个库属性?

是的,MonoTouch支持AirPlay,您需要安装支持iOS 4.3 API的MonoTouch 4。

好,但MonoTouch 4是alpha,因此我猜正确答案是从2011年起。4.1“还没有”,这太糟糕了,但可以理解。MonoTouch 4正在测试阶段,即将发布。这是个好消息!我刚才引用了monotouch.net的话,他们在周一提到了4.0Alpha的发布(我想那是一个早已过去的周一)。Monotouch团队真是太棒了。在编译时,Monotouch返回一个错误,属性Monotouch.MediaPlayer.MPMoviePlayerController.AllowsAirPlay是只读的!这是一个bug,并在4.0.1中修复,很快就会出现。