mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix lint
This commit is contained in:
parent
a386512def
commit
0e985c2ffe
3 changed files with 6 additions and 9 deletions
|
@ -33,9 +33,9 @@ export function enableHlsJsPlayerForCodecs(mediaSource, mediaType) {
|
||||||
// Force using HLS.js because desktop Safari's native HLS player does not play VP9 over HLS
|
// Force using HLS.js because desktop Safari's native HLS player does not play VP9 over HLS
|
||||||
// browser.osx will return true on iPad, cannot use
|
// browser.osx will return true on iPad, cannot use
|
||||||
if (!browser.iOS && browser.safari && mediaSource.MediaStreams.some(x => x.Codec === 'vp9')) {
|
if (!browser.iOS && browser.safari && mediaSource.MediaStreams.some(x => x.Codec === 'vp9')) {
|
||||||
return true
|
return true;
|
||||||
}
|
}
|
||||||
return enableHlsJsPlayer(mediaSource.RunTimeTicks, mediaType)
|
return enableHlsJsPlayer(mediaSource.RunTimeTicks, mediaType);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function enableHlsJsPlayer(runTimeTicks, mediaType) {
|
export function enableHlsJsPlayer(runTimeTicks, mediaType) {
|
||||||
|
|
|
@ -12,7 +12,6 @@ import {
|
||||||
destroyFlvPlayer,
|
destroyFlvPlayer,
|
||||||
destroyCastPlayer,
|
destroyCastPlayer,
|
||||||
getCrossOriginValue,
|
getCrossOriginValue,
|
||||||
enableHlsJsPlayer,
|
|
||||||
enableHlsJsPlayerForCodecs,
|
enableHlsJsPlayerForCodecs,
|
||||||
applySrc,
|
applySrc,
|
||||||
resetSrc,
|
resetSrc,
|
||||||
|
|
|
@ -584,12 +584,10 @@ export default function (options) {
|
||||||
hlsInFmp4VideoAudioCodecs.push('opus');
|
hlsInFmp4VideoAudioCodecs.push('opus');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (browser.safari) {
|
if (safariSupportsOpus) {
|
||||||
if (safariSupportsOpus) {
|
videoAudioCodecs.push('opus');
|
||||||
videoAudioCodecs.push('opus');
|
webmAudioCodecs.push('opus');
|
||||||
webmAudioCodecs.push('opus');
|
hlsInFmp4VideoAudioCodecs.push('opus');
|
||||||
hlsInFmp4VideoAudioCodecs.push('opus');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// FLAC audio in video plays with a delay on Tizen
|
// FLAC audio in video plays with a delay on Tizen
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue