mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #2135 from nyanmisaka/ac3-is-remuxing-only
Do not use AC3 for audio transcoding if AAC and MP3 are supported
This commit is contained in:
commit
76d2b7018c
2 changed files with 29 additions and 40 deletions
|
@ -7,6 +7,9 @@ import * as webSettings from '../scripts/settings/webSettings';
|
|||
import globalize from '../scripts/globalize';
|
||||
import profileBuilder from '../scripts/browserDeviceProfile';
|
||||
|
||||
const appName = 'Jellyfin Web';
|
||||
const appVersion = '10.7.0';
|
||||
|
||||
function getBaseProfileOptions(item) {
|
||||
const disableHlsVideoAudioCodecs = [];
|
||||
|
||||
|
@ -31,7 +34,7 @@ function getDeviceProfile(item, options = {}) {
|
|||
let profile;
|
||||
|
||||
if (window.NativeShell) {
|
||||
profile = window.NativeShell.AppHost.getDeviceProfile(profileBuilder);
|
||||
profile = window.NativeShell.AppHost.getDeviceProfile(profileBuilder, appVersion);
|
||||
} else {
|
||||
const builderOpts = getBaseProfileOptions(item);
|
||||
profile = profileBuilder(builderOpts);
|
||||
|
@ -316,8 +319,6 @@ function askForExit() {
|
|||
|
||||
let deviceId;
|
||||
let deviceName;
|
||||
const appName = 'Jellyfin Web';
|
||||
const appVersion = '10.7.0';
|
||||
|
||||
export const appHost = {
|
||||
getWindowState: function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue