build fixes - type errors, missing icons, tauri externals, unused imports
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useMemo } from 'react'
|
||||
import { useLibraryGenreDistribution, useLibraryByTmdbId } from '../../hooks/use-jellyfin'
|
||||
import { useTmdbDiscoverMovies, useTmdbTopRatedMovies } from '../../hooks/use-tmdb'
|
||||
import { useTmdbDiscoverMovies } from '../../hooks/use-tmdb'
|
||||
import { usePreferencesStore } from '../../stores/preferences-store'
|
||||
import { mapTmdbToJf } from '../../lib/tmdb-mapping'
|
||||
import { tmdbMovieGenreId } from '../../lib/tmdb-genres'
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user