mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 12:38:09 +00:00
Disable and hide H264 and MPEG4
This commit is contained in:
parent
997eadd998
commit
7fcd50b577
2 changed files with 20 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue