mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add fMP4 playback support (HEVC, AV1) in HLS.js
Tested codecs: video: h264, hevc, av1 (av1 in firefox require 1.5.0) audio: mp3, aac, ac3, eac3 (flac and opus require 1.5.0) Tested browsers: Chrome, Firefox, Edge Chromium, Safari and their mobile versions Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
parent
1f8a8e7d4a
commit
baf1b55a0c
6 changed files with 132 additions and 24 deletions
|
@ -16,10 +16,13 @@ function getBaseProfileOptions(item) {
|
|||
if (browser.edge) {
|
||||
disableHlsVideoAudioCodecs.push('mp3');
|
||||
}
|
||||
|
||||
disableHlsVideoAudioCodecs.push('ac3');
|
||||
disableHlsVideoAudioCodecs.push('eac3');
|
||||
disableHlsVideoAudioCodecs.push('opus');
|
||||
if (!browser.edgeChromium) {
|
||||
disableHlsVideoAudioCodecs.push('ac3');
|
||||
disableHlsVideoAudioCodecs.push('eac3');
|
||||
}
|
||||
if (!(browser.chrome || browser.edgeChromium || browser.firefox)) {
|
||||
disableHlsVideoAudioCodecs.push('opus');
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue