diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index c8270b4b6..a861777a6 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -876,8 +876,23 @@ static LinphoneCoreVTable linphonec_vtable = { linphone_core_enable_video(theLinphoneCore, FALSE, FALSE); } + // Disable H26 + { + PayloadType *pt=linphone_core_find_payload_type(theLinphoneCore,"h264",90000,-1); + if (pt) { + linphone_core_enable_payload_type(theLinphoneCore,pt,FALSE); + [LinphoneLogger logc:LinphoneLoggerWarning format:"h264/90000 disabled for Apple store"]; + } + } - + // Disable MPEG4 + { + PayloadType *pt=linphone_core_find_payload_type(theLinphoneCore,"mp4v-es",90000,-1); + if (pt) { + linphone_core_enable_payload_type(theLinphoneCore,pt,FALSE); + [LinphoneLogger logc:LinphoneLoggerWarning format:"mp4v-es/90000 disabled for Apple store"]; + } + } [LinphoneLogger logc:LinphoneLoggerWarning format:"Linphone [%s] started on [%s]" ,linphone_core_get_version() diff --git a/Classes/SettingsViewController.m b/Classes/SettingsViewController.m index 02c27d79b..c05f98832 100644 --- a/Classes/SettingsViewController.m +++ b/Classes/SettingsViewController.m @@ -587,6 +587,10 @@ static UICompositeViewDescription *compositeDescription = nil; [hiddenKeys addObject:@"wifi_only_preference"]; + // Disable H264 and MPEG4 + [hiddenKeys addObject:@"h264_preference"]; + [hiddenKeys addObject:@"mp4v-es_preference"]; + [hiddenKeys addObject:@"quit_button"]; // Hide for the moment [hiddenKeys addObject:@"about_button"]; // Hide for the moment