Fix TypeScript ref typings and lint errors
This commit is contained in:
@@ -46,12 +46,12 @@ export const loadHls = async (): Promise<any> => {
|
||||
// Try loading from npm package first
|
||||
const hlsModule = await import('hls.js')
|
||||
return hlsModule.default
|
||||
} catch (npmError) {
|
||||
} catch {
|
||||
try {
|
||||
// Fallback to CDN
|
||||
const Hls = await loadHlsFromCDN()
|
||||
return Hls
|
||||
} catch (cdnError) {
|
||||
} catch {
|
||||
throw new Error('Unable to load HLS.js library. HLS streaming is not available.')
|
||||
}
|
||||
}
|
||||
@@ -99,7 +99,7 @@ export const getHlsAudioTracks = (hls: any): AudioTrack[] => {
|
||||
})
|
||||
|
||||
return audioTracks
|
||||
} catch (error) {
|
||||
} catch {
|
||||
return []
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user