diff --git a/AUTHORS b/AUTHORS index 74b1faef35..ced3d3c0b1 100644 --- a/AUTHORS +++ b/AUTHORS @@ -30,6 +30,7 @@ Colin Plumb Cyril Lashkevich CZ Theng Danail Kirov +Dave Cowart David Porter Dax Booysen Dennis Angelo diff --git a/sdk/objc/components/video_codec/UIDevice+H264Profile.mm b/sdk/objc/components/video_codec/UIDevice+H264Profile.mm index cbae79fad8..bfbdfa0ceb 100644 --- a/sdk/objc/components/video_codec/UIDevice+H264Profile.mm +++ b/sdk/objc/components/video_codec/UIDevice+H264Profile.mm @@ -24,6 +24,10 @@ struct SupportedH264Profile { 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 @@ constexpr SupportedH264Profile kH264MaxSupportedProfiles[] = { {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 a7f655ba7b..eb9a076647 100644 --- a/sdk/objc/helpers/UIDevice+RTCDevice.h +++ b/sdk/objc/helpers/UIDevice+RTCDevice.h @@ -40,6 +40,10 @@ typedef NS_ENUM(NSInteger, RTCDeviceType) { RTCDeviceTypeIPhone11, RTCDeviceTypeIPhone11Pro, RTCDeviceTypeIPhone11ProMax, + RTCDeviceTypeIPhone12Mini, + RTCDeviceTypeIPhone12, + RTCDeviceTypeIPhone12Pro, + RTCDeviceTypeIPhone12ProMax, RTCDeviceTypeIPodTouch1G, RTCDeviceTypeIPodTouch2G, RTCDeviceTypeIPodTouch3G, @@ -79,8 +83,12 @@ typedef NS_ENUM(NSInteger, RTCDeviceType) { 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 3210bdeee5..9b39b99b5c 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), };