videojs / videojs-contrib-hls

HLS library for video.js
http://videojs.github.io/videojs-contrib-hls/
Other
2.84k stars 793 forks source link

VM223994:1 Uncaught Error: TypeError: Cannot read property 'open' of undefined #1300

Closed pinglikethinking closed 6 years ago

pinglikethinking commented 6 years ago

how to resolve this?

"video.js": "^6.2.8", "videojs-contrib-hls": "^5.12.0", "videojs-flash": "^2.0.1",

pinglikethinking commented 6 years ago

I have solved this. just delete original video-js.swf and import a new video-js.swf ,put it into static , and use it by Object.assign({ flash: {hls: { withCredentials: false }, swf: '/static/video-js.swf'}}, this.options)

source style is this,when play hls

videojs.options.sources=[{
            withCredentials: false,
            src: links,
            type: 'application/x-mpegURL'
          }]
vercha commented 6 years ago

hello , I encountered same question. where to put the object.assign() code?Thanks very much!

cadalt commented 6 years ago

i am also getting this error, but only on windows 7 ie 11

gesinger commented 6 years ago

If anyone is still encountering this issue, would someone be able to create a reduced test case using our starter template on JSBin? Thank you.

gesinger commented 6 years ago

Closing. If anyone is still having issues with the latest release of videojs-contrib-hls, please let us know (and provide a reduced test case if possible). Thank you.