Customize external subtitles font

This commit is contained in:
Rafostar
2020-11-24 17:54:53 +01:00
parent 3fcd612e6e
commit 9ad1a11452
5 changed files with 32 additions and 12 deletions

View File

@@ -89,7 +89,8 @@ class ClapperPlayerBase extends GstPlayer.Player
for(let key of settingsToSet)
this._onSettingsKeyChanged(settings, key);
//let flag = Gio.SettingsBindFlags.GET;
let flag = Gio.SettingsBindFlags.GET;
settings.bind('subtitle-font', this.pipeline, 'subtitle_font_desc', flag);
}
set_initial_config()
@@ -123,13 +124,6 @@ class ClapperPlayerBase extends GstPlayer.Player
debug(`could not change option: ${option}`);
}
/* FIXME: add in prefs and move to bind_settings() */
set_subtitle_font_desc(desc)
{
let pipeline = this.get_pipeline();
pipeline.subtitle_font_desc = desc;
}
set_all_plugins_ranks()
{
let data = [];