hlsjs-playback icon indicating copy to clipboard operation
hlsjs-playback copied to clipboard

Error: Uncaught TypeError: Cannot read properties of undefined (reading 'call) Vite (FIX)

Open oliverphardman opened this issue 2 years ago • 0 comments

Using this module in a Vite project causes the above error.

To fix, provide this in your Clappr config:

new Clappr.player({
    ...
    playback: {
        hlsjsConfig: {
            enableWorker: false
        }
    }
})

See https://github.com/video-dev/hls.js/issues/5146

oliverphardman avatar Apr 02 '23 02:04 oliverphardman