Simple react app that uses video.js with the hls plugin. This project uses nwb for the build method. In order for the videojs-contrib-hls plugin to play nice with webpack, the webworkify module is swapped out for webworkify-webpack-dropin module. (i.e, nwb uses webpack under the hood).
Swapping out webworkify for webworkify-webpack-dropin does not work using nwb. See:
Main issue: videojs/videojs-contrib-hls#600
Related comments: videojs/videojs-contrib-hls#600 (comment) videojs/videojs-contrib-hls#600 (comment) videojs/videojs-contrib-hls#600 (comment) videojs/videojs-contrib-hls#600 (comment) videojs/videojs-contrib-hls#600 (comment)
- npm install
- ./node_modules/nwb/lib/bin/nwb.js serve
- open up browser and view http://localhost:3000/