build fixes - type errors, missing icons, tauri externals, unused imports

This commit is contained in:
2026-04-03 08:48:28 +03:00
parent b43aef0f73
commit a8349c3f18
11 changed files with 51 additions and 39 deletions
+5 -5
View File
@@ -58,14 +58,14 @@ function readLiveStats(): LiveStats {
}
}
async function checkHwDecode(stream: { codec?: string | null; width?: number | null; height?: number | null; bitrate?: number | null } | null): Promise<HwDecodeState> {
async function checkHwDecode(stream: { Codec?: string | null; Width?: number | null; Height?: number | null; BitRate?: number | null } | null): Promise<HwDecodeState> {
if (!stream || typeof (navigator as any).mediaCapabilities?.decodingInfo !== 'function') {
return { supported: null, hwAccelerated: null }
}
const codec = (stream.codec || stream.Codec || '').toLowerCase()
const w = stream.width ?? stream.Width ?? 1920
const h = stream.height ?? stream.Height ?? 1080
const br = stream.bitrate ?? stream.BitRate ?? 8000000
const codec = (stream.Codec || '').toLowerCase()
const w = stream.Width ?? 1920
const h = stream.Height ?? 1080
const br = stream.BitRate ?? 8000000
// Map common Jellyfin codec names to MIME codec strings
const mimeCodec =
codec === 'h264' ? 'avc1.640033'