summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKujtim Shala <kshala@ford.com>2018-06-04 16:22:02 +0200
committerGitHub <noreply@github.com>2018-06-04 16:22:02 +0200
commita3de9c4e1251d6e3aa1f40386223b0748e4db654 (patch)
tree9845139ae7800e36a171c8ff1d15849a3f973364
parent791944b75314d25ff787d59c7c9d5c0c92f95e24 (diff)
downloadsdl_ios-a3de9c4e1251d6e3aa1f40386223b0748e4db654.tar.gz
Post notification if the video is suspended
-rw-r--r--SmartDeviceLink/SDLStreamingMediaLifecycleManager.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLStreamingMediaLifecycleManager.m b/SmartDeviceLink/SDLStreamingMediaLifecycleManager.m
index ef9cbd007..f8e4ebe4f 100644
--- a/SmartDeviceLink/SDLStreamingMediaLifecycleManager.m
+++ b/SmartDeviceLink/SDLStreamingMediaLifecycleManager.m
@@ -443,7 +443,9 @@ typedef void(^SDLVideoCapabilityResponseHandler)(SDLVideoStreamingCapability *_N
}
- (void)didEnterStateVideoStreamSuspended {
+ SDLLogD(@"Video stream suspended");
+ [[NSNotificationCenter defaultCenter] postNotificationName:SDLVideoStreamSuspendedNotification object:nil];
}
- (void)didEnterStateVideoStreamShuttingDown {