videojs / video.js

Video.js - open source HTML5 video player
https://videojs.com
Other
38.1k stars 7.45k forks source link

ReactNative #4310

Closed steverob closed 6 years ago

steverob commented 7 years ago

Description

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';
gkatsev commented 7 years ago

Looks like the issue is similar to https://github.com/videojs/vtt.js/issues/13, which has been fixed and awaiting release.

gkatsev commented 6 years ago

videojs/vtt.js#13 has been fixed.