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

Merge pull request #5625 from FintasticMan/add_prefer_transcode_video

Add setting for preferred video codec
This commit is contained in:
Bill Thornton 2024-07-15 16:14:51 -04:00 committed by GitHub
commit e0be16b272
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 41 additions and 0 deletions

View file

@ -132,6 +132,18 @@ class AppSettings {
return toBoolean(this.get('limitSupportedVideoResolution'), false);
}
/**
* Get or set preferred transcode video codec.
* @param {string|undefined} val - Preferred transcode video codec or undefined.
* @return {string} Preferred transcode video codec.
*/
preferredTranscodeVideoCodec(val) {
if (val !== undefined) {
return this.set('preferredTranscodeVideoCodec', val);
}
return this.get('preferredTranscodeVideoCodec') || '';
}
/**
* Get or set preferred transcode audio codec in video playback.
* @param {string|undefined} val - Preferred transcode audio codec or undefined.