mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-26 17:46:26 +03:00
7faee6318a
In mobile fullscreen mode, the captions font size was relatively big, and the captions overflowing out of video window got hidden. This was because: 1. In full screen mode the font size was set 4.4% of window height. Changing it to min(4.4% window height, 4.4% window width) should work for both portrait and landscape screen. 2. css 'white-space:pre' hides the overflown texts. Should be 'pre-line'. Closes #2051. Tested with: Demo app, Angel One, Pixel2 in chrome simulator. 1. Load the video, turn on captions, enter full screen mode. 2. Rotate the screen to see the captions in both landscape and portrait mode. Before: The captions font is large, and the screen hides overflown captions. Now: The captions font is normal, and if the captions are long, it is shown in a few lines. Change-Id: I5c8c3aa900ee3623955b735f93647f1ca54e9a66