1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Added client setting to enable experimental Pgs subtitle renderer.

This commit is contained in:
David Schulte 2024-07-10 21:48:54 +02:00
parent c5d3b081cf
commit 8753f84335
4 changed files with 31 additions and 1 deletions

View file

@ -1424,6 +1424,7 @@ export default function (options) {
// External vtt or burn in
profile.SubtitleProfiles = [];
const subtitleBurninSetting = appSettings.get('subtitleburnin');
const subtitleRenderPgsSetting = appSettings.get('subtitlerenderpgs') === 'true';
if (subtitleBurninSetting !== 'all') {
if (supportsTextTracks()) {
profile.SubtitleProfiles.push({
@ -1442,7 +1443,7 @@ export default function (options) {
});
}
if (supportsCanvas2D() && options.enablePgsRender !== false && !options.isRetry
if (supportsCanvas2D() && options.enablePgsRender !== false && !options.isRetry && subtitleRenderPgsSetting
&& subtitleBurninSetting !== 'allcomplexformats' && subtitleBurninSetting !== 'onlyimageformats') {
profile.SubtitleProfiles.push({
Format: 'pgssub',