Disable and hide H264 and MPEG4

This commit is contained in:
Yann Diorcet 2012-12-20 12:46:14 +01:00
parent 997eadd998
commit 7fcd50b577
2 changed files with 20 additions and 1 deletions

View file

@ -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()

View file

@ -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