shaka-player-embedded icon indicating copy to clipboard operation
shaka-player-embedded copied to clipboard

Option to reposition the subtitles

Open sebicoo opened this issue 4 years ago • 1 comments

We have an issue with the position of the subtitles, we want to offer to our users the option to do an aspect-fill in landscape mode, but for iphones like iPhone X, XS, XR, 11 this option would push the subtitles off-screen. We have this issue only with dash content - subtitle is aligned to the bottom of the screen. Other types of content have the subtitle rendered higher. To achieve this zoom, we use constraints similar to those in the sample_xcode_project. Is there an option to set the height? If not, is there a way to set a default height for rendering the subtitles before building the SDK?

HLS: vod_subtitle_angelone_hls

DASH: vod_subtitle_angelone_dash

sebicoo avatar Jun 11 '20 10:06 sebicoo

If you want to change the video fill mode, you should use setVideoGravity on ShakaPlayerView. Changing the constraints on the view will not change the aspect ratio, the video will always maintain ratio and black bars will be inserted to achieve this. To change this, you need to change the video gravity.

As for the height, there is no such option. I think it would be better for us to just move the captions above to match the native HLS instead of requiring the app to configure it.

TheModMaker avatar Jun 22 '20 20:06 TheModMaker