Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not work when using require() with webpack #8

Open
hexray-newbee opened this issue Dec 14, 2017 · 1 comment · May be fixed by #9
Open

do not work when using require() with webpack #8

hexray-newbee opened this issue Dec 14, 2017 · 1 comment · May be fixed by #9

Comments

@hexray-newbee
Copy link
Contributor

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

hexray-newbee added a commit to hexray-newbee/videojs-flvjs that referenced this issue Dec 14, 2017
@hexray-newbee hexray-newbee linked a pull request Dec 14, 2017 that will close this issue
@jdmoody
Copy link

jdmoody commented Mar 26, 2018

@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')
  })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants