fvp icon indicating copy to clipboard operation
fvp copied to clipboard

[Subtitles] Add Ability to Change Text Size

Open JulienDev opened this issue 1 year ago • 1 comments

Hello,

I tried to figure out how to change the subtitle text size, but I didn't find any way to do it. I also checked in libmdk, but it seems not supported. Could you please let me know how this can be achieved?

Thanks

JulienDev avatar Aug 02 '24 07:08 JulienDev

yes, not supported yet

wang-bin avatar Aug 02 '24 12:08 wang-bin

upgrade dependencies to support this feature, subtitle style can be set in registerWith https://github.com/wang-bin/mdk-sdk/wiki/Player-APIs#subtitle-properties

wang-bin avatar Sep 10 '24 03:09 wang-bin

Hey @wang-bin, I can confirm it's working, however when I update the size while the video is playing, the text size doesn't change and I need to close and reopen the player. Is there a way to force the player to render subtitles with the updated configuration?

JulienDev avatar Nov 05 '24 15:11 JulienDev

Upgrade dependency when this build is completed, then new style will be applied in the next frame

wang-bin avatar Nov 05 '24 16:11 wang-bin

I confirm it's working 👑

JulienDev avatar Nov 12 '24 18:11 JulienDev