summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicoleYarroch <nicole@livio.io>2021-03-19 11:10:13 -0400
committerNicoleYarroch <nicole@livio.io>2021-03-19 11:10:13 -0400
commitf8911e4cd36223e72b4442f8d1992055248e5245 (patch)
treedad06b2762521cffaf11cbc71028b07df8b62c03
parent718ae576b664dfc28322c5ce737a5eaf18b76381 (diff)
downloadsdl_ios-bugfix/issue_1944_video_resumption_broken_switching_nav_apps.tar.gz
Signed-off-by: NicoleYarroch <nicole@livio.io>
-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;