mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix alac playback on firefox and chrome
This commit is contained in:
parent
3bde8f1b65
commit
fef15ceb99
1 changed files with 12 additions and 2 deletions
|
@ -538,17 +538,27 @@ import browser from './browser';
|
||||||
Type: 'Audio'
|
Type: 'Audio'
|
||||||
});
|
});
|
||||||
|
|
||||||
if (audioFormat === 'webma') {
|
// https://www.webmproject.org/about/faq/
|
||||||
|
if (audioFormat === 'opus' || audioFormat === 'webma') {
|
||||||
profile.DirectPlayProfiles.push({
|
profile.DirectPlayProfiles.push({
|
||||||
Container: 'webm',
|
Container: 'webm',
|
||||||
|
AudioCodec: audioFormat,
|
||||||
Type: 'Audio'
|
Type: 'Audio'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// aac also appears in the m4a and m4b container
|
// aac also appears in the m4a and m4b container
|
||||||
|
// m4a/alac only works when using safari
|
||||||
if (audioFormat === 'aac' || audioFormat === 'alac') {
|
if (audioFormat === 'aac' || audioFormat === 'alac') {
|
||||||
profile.DirectPlayProfiles.push({
|
profile.DirectPlayProfiles.push({
|
||||||
Container: 'm4a,m4b',
|
Container: 'm4a',
|
||||||
|
AudioCodec: audioFormat,
|
||||||
|
Type: 'Audio'
|
||||||
|
});
|
||||||
|
|
||||||
|
profile.DirectPlayProfiles.push({
|
||||||
|
Container: 'm4b',
|
||||||
|
AudioCodec: audioFormat,
|
||||||
Type: 'Audio'
|
Type: 'Audio'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue