-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Added support for setting a custom CarWindow screen resolution #923
Added support for setting a custom CarWindow screen resolution #923
Conversation
- Preferred resolution is now set, even if video capabilities is not supported by Core - Preferred resolution is now set when the `videoAckPayload` does not return a width or height - Exposed the `SDLStreamingMediaManagerDataSource` files
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.
Just a few small changes
} // else we are using the screen size we got from the RAIR earlier | ||
} else { | ||
// If a preferred resolution was set, use the first option to set the screen size | ||
if (self.preferredResolutions.count > 0) { |
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.
can we combine the else above and this if?
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.
Fixed
} else { | ||
// If a preferred resolution was set, use the first option to set the screen size | ||
if (self.preferredResolutions.count > 0) { | ||
SDLImageResolution *preferredResolution = self.preferredResolutions[0]; |
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.
self.preferredResolutions.firstObject
is a tiny change, but I personally like to use it.
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.
Fixed
Fixes #908
This PR is ready for review.
Risk
This PR makes no API changes.
Testing Plan
Test cases added to the
SDLStreamingMediaLifecycleManagerSpec
.Summary
GetSystemCapability
is not supported by Core.videoAckPayload
does not return values for width and height.SDLStreamingMediaManagerDataSource
file is now public.Changelog
Breaking Changes
None
Tasks Remaining:
CLA