summaryrefslogtreecommitdiff
path: root/SmartDeviceLink
diff options
context:
space:
mode:
authorJustin Gluck <justin.gluck@livio.io>2019-09-25 15:35:38 -0400
committerJustin Gluck <justin.gluck@livio.io>2019-09-25 15:35:38 -0400
commite444d578896e8060f5cdcf063d0163120c562a77 (patch)
tree9b5d4fa1c423c7088df2bf71d81257e8635c11a7 /SmartDeviceLink
parentb962a21d9d2e6901a8461c00dc2773a422904cf4 (diff)
downloadsdl_ios-e444d578896e8060f5cdcf063d0163120c562a77.tar.gz
adding check for 4.5
Diffstat (limited to 'SmartDeviceLink')
-rw-r--r--SmartDeviceLink/SDLStreamingVideoLifecycleManager.m8
1 files changed, 6 insertions, 2 deletions
diff --git a/SmartDeviceLink/SDLStreamingVideoLifecycleManager.m b/SmartDeviceLink/SDLStreamingVideoLifecycleManager.m
index 96139b93e..3296829c1 100644
--- a/SmartDeviceLink/SDLStreamingVideoLifecycleManager.m
+++ b/SmartDeviceLink/SDLStreamingVideoLifecycleManager.m
@@ -44,6 +44,7 @@
#import "SDLVehicleType.h"
#import "SDLVideoEncoderDelegate.h"
#import "SDLVideoStreamingCapability.h"
+#import "SDLVersion.h"
static NSUInteger const FramesToSendOnBackground = 30;
@@ -563,9 +564,12 @@ typedef void(^SDLVideoCapabilityResponseHandler)(SDLVideoStreamingCapability *_N
SDLLogV(@"Determining whether streaming is supported");
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated"
- _streamingSupported = registerResponse.hmiCapabilities.videoStreaming ? registerResponse.hmiCapabilities.videoStreaming.boolValue : registerResponse.displayCapabilities.graphicSupported.boolValue;
+ if ([SDLGlobals.sharedGlobals.rpcVersion isGreaterThanOrEqualToVersion:[[SDLVersion alloc] initWithMajor:4 minor:5 patch:0]]) {
+ _streamingSupported = registerResponse.hmiCapabilities.videoStreaming ? registerResponse.hmiCapabilities.videoStreaming.boolValue : registerResponse.displayCapabilities.graphicSupported.boolValue;
+ } else {
+ _streamingSupported = YES;
+ }
#pragma clang diagnostic pop
-
if (!self.isStreamingSupported) {
SDLLogE(@"Graphics are not supported on this head unit. We are are assuming screen size is also unavailable and exiting.");
return;