2016-11-08 67 views

回答

0

您可以將CXProviderConfiguration類屬性「supportsVideo」設置爲NO,如下所示。

CXProviderConfiguration *configuration = [[CXProviderConfiguration alloc]initWithLocalizedName:@"app name"]; 
configuration.supportsVideo = NO; 

它將禁用視頻功能。

更新: 設置CXCallUpdate財產 「hasVideo」 爲NO。並刪除remoteHandle也。 注意:如果您刪除remoteHandle屬性,則無法從最近日誌回撥。

+0

不,如果我將「supportsVideo」設置爲NO,它就會變成「FaceTime」按鈕,並且仍然可以點擊。 – foolishBoy

+0

檢查所有使用CXProviderConfiguration對象的地方。您還必須在reportIncomingCallWithContact方法中設置supportsVideo。刪除INStartVideoCallIntent如果您在info.plist中設置。 –

0

必須在CXProviderConfiguration中將supportsVideo屬性設置爲NO。 和非設置supportedHandleTypes。

+0

它只是成爲「FaceTime」按鈕,仍然可以點擊。 – foolishBoy

+0

您必須保留supportedHandleTypes屬性才能禁用Facetime按鈕。 –

+0

如何? supportedHandleTypes僅支持CXHandleTypeGeneric,CXHandleTypePhoneNumber,CXHandleTypeEmailAddres。 – foolishBoy

相關問題