Add `outlineWidth` to `Cue`
Fixes #1834, by adding an extra field to Cue to inform the painter about the outline width of the subtitle.
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
This is not ready for review yet, due to the confusing painting in updateWebView that I am unsure how to update. @icbaker could you clarify how to add Cue specific outlines when convertCaptionStyleToCssTextShadow is only called once per list of cues. I dont see a way to make it cue specific in a clean way.
@icbaker I believe I added everything needed for text outline using a span. However I an unable to test the webview text, so I added what I think will work.
@icbaker any update about that PR?
However I an unable to test the webview text, so I added what I think will work.
Why is this? You should be able to enable it in any app using PlayerView (including our demo):
playerView.getSubtitleView().setViewType(SubtitleView.VIEW_TYPE_WEB);