fix remaining build errors
This commit is contained in:
@@ -345,7 +345,7 @@ export default function PlayerPage() {
|
||||
const fromQueue = searchParams.get('resume') === 'true'
|
||||
if (showResumePromptPref && !fromQueue && pos > threshold) {
|
||||
setResumePromptOpen(true)
|
||||
resumePromptShownRef.current = item.Id
|
||||
resumePromptShownRef.current = item.Id ?? null
|
||||
}
|
||||
}, [item?.Id, searchParams, showResumePromptPref])
|
||||
|
||||
@@ -986,7 +986,8 @@ export default function PlayerPage() {
|
||||
if (resolvedSource?.SupportsDirectPlay) {
|
||||
const el = (playerRef.current as { el?: HTMLElement } | null)?.el
|
||||
const video = el?.querySelector('video') as HTMLVideoElement | null
|
||||
const native = video.audioTracks as { length: number; [i: number]: { enabled: boolean } } | undefined
|
||||
if (!video) return
|
||||
const native = video.audioTracks as { length: number; [i: number]: { enabled: boolean; language?: string } } | undefined
|
||||
if (native && native.length > 1) {
|
||||
const target = audioTracks.find(t => t.Index === jfIndex)
|
||||
const targetLang = (target?.Language || '').toLowerCase()
|
||||
|
||||
Reference in New Issue
Block a user