-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/0296 possibility to update video streaming capabilities #1434
Feature/0296 possibility to update video streaming capabilities #1434
Conversation
- Fix Button capabilities logging - Improve lifecycle management and version retrieving for RAI - Fix NPE for responses if SDLVersion is passed as null
- Fix Button capabilities logging - Improve lifecycle management and version retrieving for RAI - Fix NPE for responses if SDLVersion is passed as null
- Hardcoded display size to 2k
- Add video config fields - Fix bug with default bad scale
- Add video config fields - Fix bug with default bad scale
- Add service restart
- Implement video streaming POC for android
- Update onServiceEnded with proper handling
# Conflicts: # android/sdl_android/src/main/java/com/smartdevicelink/managers/video/VideoStreamManager.java
- Remove unused logs
- Remove dependency on start/stopVideoService - Move logic to VideoStreamManager
- Extend with callback to give third-party devs control on view resize process
- Implement new "Paused" state for state machine
- Implement new "Paused" state for state machine - Implement developer-provided info about resolution
- Updated according to latest specification
- Add new notification - Fix compilation error - Move mocks to make easier pending implementation
- Fix logic error with unused ranges provided by developer - Provide builder for SupportedStreamingRange - Add share prefs for saving ip on edit - Add button to kill app and all it's components
…s_update # Conflicts: # android/hello_sdl_android/src/main/java/com/sdl/hellosdlandroid/SdlService.java # android/sdl_android/src/main/java/com/smartdevicelink/encoder/VirtualDisplayEncoder.java # android/sdl_android/src/main/java/com/smartdevicelink/managers/SdlManager.java # android/sdl_android/src/main/java/com/smartdevicelink/streaming/video/SdlRemoteDisplay.java # base/src/main/java/com/smartdevicelink/proxy/SystemCapabilityManager.java
- Fix bugs after develop merge - Fix tests
- Fix Version - Rename according to proposal
- Fix wrong diagonal crash
- Add validation for inconsistent capabilities - Fix filtration algorithm
- Fix edge case when notification contains only scale parameter - Align resolutions according to QA needs
- Fix notifications flow - Fix "only scale in notification" wrong processing - Add caching of previous parameters
- Refactor filtering to methods
- Use methods to simplify code and decrease complexity
…streaming_capabilities # Conflicts: # android/sdl_android/src/main/java/com/smartdevicelink/proxy/SdlProxyBase.java
- Fix compilation errors on merge
Codecov Report
@@ Coverage Diff @@
## develop #1434 +/- ##
=============================================
- Coverage 54.30% 54.03% -0.28%
- Complexity 5261 5298 +37
=============================================
Files 549 555 +6
Lines 24215 24496 +281
Branches 3034 3086 +52
=============================================
+ Hits 13151 13237 +86
- Misses 9931 10110 +179
- Partials 1133 1149 +16
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @KostyaBoss can you resolve merge conflicts as well
android/sdl_android/src/main/java/com/smartdevicelink/managers/video/VideoStreamManager.java
Outdated
Show resolved
Hide resolved
android/sdl_android/src/main/java/com/smartdevicelink/managers/video/VideoStreamManager.java
Show resolved
Hide resolved
…streaming_capabilities # Conflicts: # android/sdl_android/src/androidTest/java/com/smartdevicelink/test/TestValues.java
@RHenigan I've processed the PR comments and merged the latest dev branch, could you please check if everything is fine? |
android/sdl_android/src/main/java/com/smartdevicelink/managers/video/VideoStreamManager.java
Outdated
Show resolved
Hide resolved
android/sdl_android/src/main/java/com/smartdevicelink/managers/video/VideoStreamManager.java
Outdated
Show resolved
Hide resolved
...android/src/main/java/com/smartdevicelink/managers/video/resolution/VideoStreamingRange.java
Outdated
Show resolved
Hide resolved
android/sdl_android/src/main/java/com/smartdevicelink/managers/video/VideoStreamManager.java
Outdated
Show resolved
Hide resolved
android/sdl_android/src/main/java/com/smartdevicelink/managers/lifecycle/LifecycleManager.java
Show resolved
Hide resolved
android/sdl_android/src/main/java/com/smartdevicelink/managers/lifecycle/LifecycleManager.java
Show resolved
Hide resolved
@RHenigan I've processed comments, please, review the PR. I've noticed there is an issue with the CI, could you please restart it? |
...android/src/main/java/com/smartdevicelink/managers/video/resolution/VideoStreamingRange.java
Outdated
Show resolved
Hide resolved
@RHenigan could you please check? I've applied the changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @KostyaBoss, there were a few items that came up while doing alignment testing with iOS
android/sdl_android/src/main/java/com/smartdevicelink/managers/video/VideoStreamManager.java
Outdated
Show resolved
Hide resolved
android/sdl_android/src/main/java/com/smartdevicelink/managers/video/VideoStreamManager.java
Outdated
Show resolved
Hide resolved
android/sdl_android/src/main/java/com/smartdevicelink/managers/video/VideoStreamManager.java
Outdated
Show resolved
Hide resolved
...android/src/main/java/com/smartdevicelink/managers/video/resolution/VideoStreamingRange.java
Show resolved
Hide resolved
android/sdl_android/src/main/java/com/smartdevicelink/managers/video/VideoStreamManager.java
Outdated
Show resolved
Hide resolved
android/sdl_android/src/main/java/com/smartdevicelink/managers/video/VideoStreamManager.java
Outdated
Show resolved
Hide resolved
...android/src/main/java/com/smartdevicelink/managers/video/resolution/VideoStreamingRange.java
Show resolved
Hide resolved
@RHenigan Hi! I've processed the comments, please review |
android/sdl_android/src/main/java/com/smartdevicelink/managers/video/VideoStreamManager.java
Outdated
Show resolved
Hide resolved
android/sdl_android/src/main/java/com/smartdevicelink/managers/video/VideoStreamManager.java
Outdated
Show resolved
Hide resolved
...android/src/main/java/com/smartdevicelink/managers/video/resolution/VideoStreamingRange.java
Outdated
Show resolved
Hide resolved
...android/src/main/java/com/smartdevicelink/managers/video/resolution/VideoStreamingRange.java
Show resolved
Hide resolved
...android/src/main/java/com/smartdevicelink/managers/video/resolution/VideoStreamingRange.java
Show resolved
Hide resolved
...android/src/main/java/com/smartdevicelink/managers/video/resolution/VideoStreamingRange.java
Show resolved
Hide resolved
android/sdl_android/src/main/java/com/smartdevicelink/managers/video/VideoStreamManager.java
Show resolved
Hide resolved
...ndroid/src/androidTest/java/com/smartdevicelink/managers/video/VideoStreamingRangeTests.java
Show resolved
Hide resolved
...android/src/main/java/com/smartdevicelink/managers/video/resolution/VideoStreamingRange.java
Outdated
Show resolved
Hide resolved
@RHenigan Hi! I've added missing tests and processed the comment. During the implementation, I've found additional edge cases, (inRangeMethods of ImageResolution could throw NPEs) and fixed them. Could you please check the latest commit and see, if the fix is suitable? |
@RHenigan I've checked the CI logs, and it seems it was unable to build the project. On the other hand, the lines, the CI is pointing to are not present in the PR and in the branch and the projects are building locally. Could you please check this and restart the CI? |
Hello @KostyaBoss I believe this will be resolved when develop is merged into this branch and any errors are resolved, one of the other features added ISdl in the SdlManager, this overrides startVideoService which is missing the parameter that was added. If you merge develop and correct any conflicts/errors this should fix the CI |
…streaming_capabilities
@RHenigan Thanks for the suggestion. I've tried this, but unfortunately, it didn't make a trick The CI says, that the project is not compilable, but It compiles locally. Additionally, it states that
but, in line 225 there is JavaDoc only Could you please check? |
Hello @KostyaBoss thank you for merging develop in, it looks like the CI is still failing because the SdlManager in the JavaSE and JavaEE projects needs to be updated as well |
@RHenigan Thanks for your help, it seems, now everything is fine, could you please check? |
Fixes #1410
This PR is [ready] for review.
Related PR's
Core
HMI
Risk
This PR makes [minor] API changes.
Testing Plan
Unit Tests
[Describe the unit tests and behaviors added in this PR]
Summary
CLA