2

Fixed

Captions not resized when going full screen if aspect of screen and movie are the same

description

When the aspect of the video and the aspect of the screen are the same then captions are not resized and moved when going full screen.

To reproduce:
Set resolution on computer to 1920x1080
Launch a SMFPlayer with a small size (560x315 - same aspect as above)
Start a stream with SUBT-TTML subtitles and a video aspect of which matches the screen (1,77777)
Wait for first subtitle to show
Go full screen
Notice that subtltles are still shown on the same position and size is the same as on the small screen.

Technical note:
The SMFPlayer.ConfigureCaptionPresenterSize sets the size of the CaptionsPresenterElement depending on aspect of video and screen. If these ar e the same ratio then size isn't touched. However this does not detect that the screen has resized if the apects are the same. So when aspect of the two elements are the same then :

CaptionsPresenterElement.Width = MediaPresenterElement.ActualWidth;
CaptionsPresenterElement.Height = MediaPresenterElement.ActualHeight;

This causes the sizeChanged event to happen and thereby the resize and repositioning of the captions/subtitles.

I have attached modified SMFPlayer.cs from version 2.6.

comments

timgreenfield wrote Jan 17 at 9:17 PM

Thanks for reporting this! This will be fixed in the next update.

tchristensen wrote Jan 16 at 2:52 PM

Btw by 1,7777 I refer to 16:9 aspect ratio.