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:
parent
c5d3b081cf
commit
8753f84335
4 changed files with 31 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue