I'm using video.js and the videjs-hls-control with ReactVR (ReactNative underneath).
I am getting this error -
Uncaught TypeError: Cannot set property 'create' of undefined
at vttregion-extended.js:29
at vttregion-extended.js:27
at loadModuleImplementation (require.js:171)
at guardedLoadModule (require.js:123)
at _require (require.js:107)
at browser-index.js:24
at loadModuleImplementation (require.js:171)
at guardedLoadModule (require.js:116)
at _require (require.js:107)
at Html5.addWebVttScript_ (tech.js:652)
Here's how I am requiring videojs -
import videojs from 'video.js';
import * as HLS from 'videojs-contrib-hls';
Description
I'm using video.js and the videjs-hls-control with ReactVR (ReactNative underneath).
I am getting this error -
Here's how I am requiring videojs -