diff options
author | NicoleYarroch <nicole@livio.io> | 2021-03-19 11:10:13 -0400 |
---|---|---|
committer | NicoleYarroch <nicole@livio.io> | 2021-03-19 11:10:13 -0400 |
commit | f8911e4cd36223e72b4442f8d1992055248e5245 (patch) | |
tree | dad06b2762521cffaf11cbc71028b07df8b62c03 | |
parent | 718ae576b664dfc28322c5ce737a5eaf18b76381 (diff) | |
download | sdl_ios-bugfix/issue_1944_video_resumption_broken_switching_nav_apps.tar.gz |
Reverted CarWindowbugfix/issue_1944_video_resumption_broken_switching_nav_apps
Signed-off-by: NicoleYarroch <nicole@livio.io>
-rwxr-xr-x | SmartDeviceLink/private/SDLCarWindow.h | 7 | ||||
-rw-r--r-- | SmartDeviceLink/private/SDLCarWindow.m | 4 |
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; |