media-kit / media-kit

A cross-platform video player & audio player for Flutter & Dart.
https://github.com/media-kit/media-kit
MIT License
893 stars 126 forks source link

excuse me! I want to know a question about the use of subtitles #801

Closed user1121114685 closed 2 weeks ago

user1121114685 commented 2 weeks ago

excuse me! I would like to know a question about the use of subtitles?

When I enabled libass, I could not move the upper and lower positions of the subtitles and set the font size by configuring the subtitle properties. The official mpv documentation mentioned that the subtitles could be moved using pos-sub 10. But I don't know how to implement this in media-kit.

Sorry to disturb everyone. If anyone knows or wants to discuss it, please reply to me.

abdelaziz-mahdy commented 2 weeks ago

i think that should help, https://github.com/media-kit/media-kit?tab=readme-ov-file#customize-subtitles no need to change it from mpv it self

alexmercerind commented 2 weeks ago

Hi,

The only way to customize libass font rendering is to use the setProperty API. No support for that will be provided.

user1121114685 commented 2 weeks ago

thx all.