Fixed video not resuming when switching between navigation apps #1947
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #1944
Risk
This PR makes no API changes.
Testing Plan
Unit Tests
Core Tests
[List of tests performed against Core and behaviors verified]
Core version / branch / commit hash / module tested against:
HMI name / version / branch / commit hash / module tested against:
Summary
If a navigation app is streaming video and it receives a notification that it's
hmiLevel
has changed toLIMITED
(i.e. another navigation app has become active), an end video service message is sent to the module and video stops streaming. When thehmiLevel
changes back toFULL
, then a start video service request is sent to core and video streaming resumes once the module hasACK
d the request.When SDL-0296 (Feature/ possibility to update video streaming capabilities) was implemented, instead of sending a
GetSystemCapability
request forVIDEO_STREAMING
every time the start service message is sent, theGetSystemCapability
request is now only sent once and all subsequent requests use the cached value. This slight timing changed broke video streaming resumption when switching between navigation apps on SYNC 3.0. Video streams to the module but the screen is black. Adding a slight delay between getting theOnHMIStatus
notification and starting the video stream fixed the issue.Change Log
Bug Fixes
SDLVideoStreamManagerStateReady
when the video start serviceACK
s. Previously it could transition to theSDLVideoStreamManagerStateSuspended
state, which was unnecessary as the logic of checking for the suspended state is already handled in theSDLVideoStreamManagerStateReady
state.Tasks Remaining:
CLA