summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xSmartDeviceLink/private/SDLCarWindow.h7
-rw-r--r--SmartDeviceLink/private/SDLCarWindow.m4
2 files changed, 11 insertions, 0 deletions
diff --git a/SmartDeviceLink/private/SDLCarWindow.h b/SmartDeviceLink/private/SDLCarWindow.h
index 45d2f0a62..5620d4ed9 100755
--- a/SmartDeviceLink/private/SDLCarWindow.h
+++ b/SmartDeviceLink/private/SDLCarWindow.h
@@ -9,6 +9,7 @@
@class SDLStreamingMediaConfiguration;
@class SDLStreamingVideoLifecycleManager;
+@class SDLVideoStreamingCapability;
NS_ASSUME_NONNULL_BEGIN
@@ -35,6 +36,12 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)syncFrame;
+/**
+ Apply the new video streaming capability to the underlying view controller
+ @param videoStreamingCapability - The video streaming capability to apply
+*/
+- (void)updateVideoStreamingCapability:(SDLVideoStreamingCapability *)videoStreamingCapability;
+
@end
NS_ASSUME_NONNULL_END
diff --git a/SmartDeviceLink/private/SDLCarWindow.m b/SmartDeviceLink/private/SDLCarWindow.m
index ffeb7e301..ce5bb704f 100644
--- a/SmartDeviceLink/private/SDLCarWindow.m
+++ b/SmartDeviceLink/private/SDLCarWindow.m
@@ -108,6 +108,10 @@ NS_ASSUME_NONNULL_BEGIN
}
}
+- (void)updateVideoStreamingCapability:(SDLVideoStreamingCapability *)videoStreamingCapability {
+ [self sdl_applyDisplayDimensionsToRootViewController:self.rootViewController];
+}
+
#pragma mark - SDLNavigationLockScreenManager Notifications
- (void)sdl_willPresentLockScreenViewController:(NSNotification *)notification {
self.lockScreenPresenting = YES;