Skip to content

Commit

Permalink
Video streaming stopped as soon as app enters background
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoleYarroch committed Feb 26, 2018
1 parent db012e5 commit 509c927
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SmartDeviceLink/SDLStreamingMediaLifecycleManager.m
Expand Up @@ -291,7 +291,9 @@ - (void)didEnterStateAppInactive {

[self sdl_sendBackgroundFrames];
[self.touchManager cancelPendingTouches];
self.restartVideoStream = YES;

[self sdl_stopAudioSession];
[self sdl_stopVideoSession];
}

// Per Apple's guidelines: https://developer.apple.com/library/content/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/StrategiesforHandlingAppStateTransitions/StrategiesforHandlingAppStateTransitions.html
Expand Down

0 comments on commit 509c927

Please sign in to comment.