Update Apple device list Added new apple devices to corresponding enumeration. Added H264 profile level information. Previous update was done as part of: https://webrtc-review.googlesource.com/c/src/+/158744 Device machine names obtained from: https://gist.github.com/adamawolf/3048717 Change-Id: Ibe71ec525679d34494b579f6da851c2b45b0cd86 Bug: None Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/202743 Commit-Queue: Kári Helgason <kthelgason@webrtc.org> Reviewed-by: Kári Helgason <kthelgason@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33119}
diff --git a/AUTHORS b/AUTHORS index 74b1fae..ced3d3c 100644 --- a/AUTHORS +++ b/AUTHORS
@@ -30,6 +30,7 @@ Cyril Lashkevich <notorca@gmail.com> CZ Theng <cz.theng@gmail.com> Danail Kirov <dkirovbroadsoft@gmail.com> +Dave Cowart <davecowart@gmail.com> David Porter <david@porter.me> Dax Booysen <dax@younow.com> Dennis Angelo <dennis.angelo@gmail.com>
diff --git a/sdk/objc/components/video_codec/UIDevice+H264Profile.mm b/sdk/objc/components/video_codec/UIDevice+H264Profile.mm index cbae79f..bfbdfa0 100644 --- a/sdk/objc/components/video_codec/UIDevice+H264Profile.mm +++ b/sdk/objc/components/video_codec/UIDevice+H264Profile.mm
@@ -24,6 +24,10 @@ constexpr SupportedH264Profile kH264MaxSupportedProfiles[] = { // iPhones with at least iOS 9 + {RTCDeviceTypeIPhone12ProMax, {kProfileHigh, kLevel5_2}}, // https://support.apple.com/kb/SP832 + {RTCDeviceTypeIPhone12Pro, {kProfileHigh, kLevel5_2}}, // https://support.apple.com/kb/SP831 + {RTCDeviceTypeIPhone12, {kProfileHigh, kLevel5_2}}, // https://support.apple.com/kb/SP830 + {RTCDeviceTypeIPhone12Mini, {kProfileHigh, kLevel5_2}}, // https://support.apple.com/kb/SP829 {RTCDeviceTypeIPhone11ProMax, {kProfileHigh, kLevel5_2}}, // https://support.apple.com/kb/SP806 {RTCDeviceTypeIPhone11Pro, {kProfileHigh, kLevel5_2}}, // https://support.apple.com/kb/SP805 {RTCDeviceTypeIPhone11, {kProfileHigh, kLevel5_2}}, // https://support.apple.com/kb/SP804 @@ -57,6 +61,10 @@ {RTCDeviceTypeIPodTouch5G, {kProfileMain, kLevel3_1}}, // https://support.apple.com/kb/SP657 // iPads with at least iOS 9 + {RTCDeviceTypeIPadAir4Gen, {kProfileHigh, kLevel4_1}}, // https://support.apple.com/kb/SP828 + {RTCDeviceTypeIPad8, {kProfileHigh, kLevel4_1}}, // https://support.apple.com/kb/SP822 + {RTCDeviceTypeIPadPro4Gen12Inch, {kProfileHigh, kLevel4_1}}, // https://support.apple.com/kb/SP815 + {RTCDeviceTypeIPadPro4Gen11Inch, {kProfileHigh, kLevel4_1}}, // https://support.apple.com/kb/SP814 {RTCDeviceTypeIPadAir3Gen, {kProfileHigh, kLevel4_1}}, // https://support.apple.com/kb/SP787 {RTCDeviceTypeIPadMini5Gen, {kProfileHigh, kLevel4_1}}, // https://support.apple.com/kb/SP788 {RTCDeviceTypeIPadPro3Gen12Inch,
diff --git a/sdk/objc/helpers/UIDevice+RTCDevice.h b/sdk/objc/helpers/UIDevice+RTCDevice.h index a7f655b..eb9a076 100644 --- a/sdk/objc/helpers/UIDevice+RTCDevice.h +++ b/sdk/objc/helpers/UIDevice+RTCDevice.h
@@ -40,6 +40,10 @@ RTCDeviceTypeIPhone11, RTCDeviceTypeIPhone11Pro, RTCDeviceTypeIPhone11ProMax, + RTCDeviceTypeIPhone12Mini, + RTCDeviceTypeIPhone12, + RTCDeviceTypeIPhone12Pro, + RTCDeviceTypeIPhone12ProMax, RTCDeviceTypeIPodTouch1G, RTCDeviceTypeIPodTouch2G, RTCDeviceTypeIPodTouch3G, @@ -79,8 +83,12 @@ RTCDeviceTypeIPad7Gen10Inch, RTCDeviceTypeIPadPro3Gen11Inch, RTCDeviceTypeIPadPro3Gen12Inch, + RTCDeviceTypeIPadPro4Gen11Inch, + RTCDeviceTypeIPadPro4Gen12Inch, RTCDeviceTypeIPadMini5Gen, RTCDeviceTypeIPadAir3Gen, + RTCDeviceTypeIPad8, + RTCDeviceTypeIPadAir4Gen, RTCDeviceTypeSimulatori386, RTCDeviceTypeSimulatorx86_64, };
diff --git a/sdk/objc/helpers/UIDevice+RTCDevice.mm b/sdk/objc/helpers/UIDevice+RTCDevice.mm index 3210bde..9b39b99 100644 --- a/sdk/objc/helpers/UIDevice+RTCDevice.mm +++ b/sdk/objc/helpers/UIDevice+RTCDevice.mm
@@ -52,6 +52,10 @@ @"iPhone12,1" : @(RTCDeviceTypeIPhone11), @"iPhone12,3" : @(RTCDeviceTypeIPhone11Pro), @"iPhone12,5" : @(RTCDeviceTypeIPhone11ProMax), + @"iPhone13,1" : @(RTCDeviceTypeIPhone12Mini), + @"iPhone13,2" : @(RTCDeviceTypeIPhone12), + @"iPhone13,3" : @(RTCDeviceTypeIPhone12Pro), + @"iPhone13,4" : @(RTCDeviceTypeIPhone12ProMax), @"iPod1,1" : @(RTCDeviceTypeIPodTouch1G), @"iPod2,1" : @(RTCDeviceTypeIPodTouch2G), @"iPod3,1" : @(RTCDeviceTypeIPodTouch3G), @@ -108,10 +112,18 @@ @"iPad8,6" : @(RTCDeviceTypeIPadPro3Gen12Inch), @"iPad8,7" : @(RTCDeviceTypeIPadPro3Gen12Inch), @"iPad8,8" : @(RTCDeviceTypeIPadPro3Gen12Inch), + @"iPad8,9" : @(RTCDeviceTypeIPadPro4Gen11Inch), + @"iPad8,10" : @(RTCDeviceTypeIPadPro4Gen11Inch), + @"iPad8,11" : @(RTCDeviceTypeIPadPro4Gen12Inch), + @"iPad8,12" : @(RTCDeviceTypeIPadPro4Gen12Inch), @"iPad11,1" : @(RTCDeviceTypeIPadMini5Gen), @"iPad11,2" : @(RTCDeviceTypeIPadMini5Gen), @"iPad11,3" : @(RTCDeviceTypeIPadAir3Gen), @"iPad11,4" : @(RTCDeviceTypeIPadAir3Gen), + @"iPad11,6" : @(RTCDeviceTypeIPad8), + @"iPad11,7" : @(RTCDeviceTypeIPad8), + @"iPad13,1" : @(RTCDeviceTypeIPadAir4Gen), + @"iPad12,2" : @(RTCDeviceTypeIPadAir4Gen), @"i386" : @(RTCDeviceTypeSimulatori386), @"x86_64" : @(RTCDeviceTypeSimulatorx86_64), };