videojs-flvjs icon indicating copy to clipboard operation
videojs-flvjs copied to clipboard

do not work when using require() with webpack

Open hexray-newbee opened this issue 7 years ago • 1 comments

VIDEOJS: ERROR: The "flvjs" tech is undefined. Skipped browser support check for that tech.

hexray-newbee avatar Dec 14 '17 06:12 hexray-newbee

@hxl-dy, I was able to get around this issue by setting global videojs and flvjs properties in Webpack using ProvidePlugin:

new webpack.ProvidePlugin({
    'window.videojs': path.resolve('node_modules/video.js/dist/video'),
    'window.flvjs': path.resolve('node_modules/flv.js/dist/flv.js')
  })

jdmoody avatar Mar 26 '18 22:03 jdmoody