mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #5906 from gnattu/burn-subtitle-transcoding
This commit is contained in:
commit
52d4919df4
6 changed files with 88 additions and 15 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