mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add option to always burn in subtitles if transcoding is triggered
This commit is contained in:
parent
ef6d9c7241
commit
e48321a2c4
4 changed files with 35 additions and 2 deletions
|
@ -156,6 +156,19 @@ class AppSettings {
|
|||
return this.get('preferredTranscodeVideoAudioCodec') || '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get or set 'Always burn in subtitle when transcoding' state.
|
||||
* @param {boolean|undefined} val - Flag to enable 'Always burn in subtitle when transcoding' or undefined.
|
||||
* @return {boolean} 'Always burn in subtitle when transcoding' state.
|
||||
*/
|
||||
alwaysBurnInSubtitleWhenTranscoding(val) {
|
||||
if (val !== undefined) {
|
||||
return this.set('alwaysBurnInSubtitleWhenTranscoding', val.toString());
|
||||
}
|
||||
|
||||
return toBoolean(this.get('alwaysBurnInSubtitleWhenTranscoding'), false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get or set 'Enable DTS' state.
|
||||
* @param {boolean|undefined} val - Flag to enable 'Enable DTS' or undefined.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue