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

Better codec profile for Safari with 10.10 features

This uses the new VP9 remuxing and audio remuxing features to reduce transcoding on Safari, also removed some problematic direct play profiles.

- Add opus profile for Safari
- Add VP9 remuxing profile for Safari
- Remove Vorbis profile on non-webm container for Safari
- Remove direct VP9 playback in mp4 container for iOS Safari
This commit is contained in:
gnattu 2024-08-04 13:55:05 +08:00
parent d770e40130
commit a386512def
3 changed files with 39 additions and 4 deletions

View file

@ -13,6 +13,7 @@ import {
destroyCastPlayer,
getCrossOriginValue,
enableHlsJsPlayer,
enableHlsJsPlayerForCodecs,
applySrc,
resetSrc,
playWithPromise,
@ -515,7 +516,7 @@ export class HtmlVideoPlayer {
elem.crossOrigin = crossOrigin;
}
if (enableHlsJsPlayer(options.mediaSource.RunTimeTicks, 'Video') && isHls(options.mediaSource)) {
if (enableHlsJsPlayerForCodecs(options.mediaSource, 'Video') && isHls(options.mediaSource)) {
return this.setSrcWithHlsJs(elem, options, val);
} else if (options.playMethod !== 'Transcode' && options.mediaSource.Container?.toUpperCase() === 'FLV') {
return this.setSrcWithFlvJs(elem, options, val);