Skip to content

Commit 4081f83

Browse files
committed
Add behavior that video streaming will start back up if the app went form an HMI state that was not streamable to one that is.
1 parent 3260eac commit 4081f83

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

android/sdl_android/src/main/java/com/smartdevicelink/managers/video/VideoStreamManager.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ public void onNotified(RPCNotification notification) {
202202
if (hasStarted && (isHMIStateVideoStreamCapable(prevOnHMIStatus)) && (!isHMIStateVideoStreamCapable(currentOnHMIStatus))) {
203203
stopVideoStream();
204204
}
205+
if (withPendingRestart && hasStarted && (!isHMIStateVideoStreamCapable(prevOnHMIStatus)) && (isHMIStateVideoStreamCapable(currentOnHMIStatus))) {
206+
VideoStreamManager manager = VideoStreamManager.this;
207+
manager.internalInterface.startVideoService(manager.getLastCachedStreamingParameters(), manager.isEncrypted, withPendingRestart);
208+
}
205209
}
206210
}
207211
};

0 commit comments

Comments
 (0)