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

使用hls的时候报错 'EventTarget' of undefined #127

Closed
struts2012 opened this issue Dec 22, 2017 · 10 comments
Closed

使用hls的时候报错 'EventTarget' of undefined #127

struts2012 opened this issue Dec 22, 2017 · 10 comments
Labels

Comments

@struts2012
Copy link

struts2012 commented Dec 22, 2017

error: videojs-contrib-hls.js Uncaught TypeError: Cannot read property 'EventTarget' of undefined
vue-video-player: 4.0.6
videojs: 6.4.0
videojs-contrib-hls: 5.12.2

@surmon-china
Copy link
Owner

最新版本 v5.0.0 解决此问题。需要删除 node_modules,重新安装。

@surmon-china
Copy link
Owner

已发布,记得删除 node_modules 重新安装。

@sunxiang0918
Copy link

还是不行... 还是在报: Uncaught TypeError: Cannot read property 'EventTarget' of undefined

@shangTou
Copy link

shangTou commented Jun 1, 2018

@sunxiang0918 试试这样引入 import 'videojs-contrib-hls';

@xumiaojun
Copy link

TypeError: Cannot read property 'EventTarget' of undefined,只要引入import "videojs-contrib-hls/dist/videojs-contrib-hls" 就报错!

@niwho
Copy link

niwho commented Sep 10, 2018

解决,如@shangTou所述

@LuciferHuang
Copy link

这个问题又出现了

@wangweigit3077
Copy link

不行啊 还是有问题

@caoruiy
Copy link

caoruiy commented Jul 17, 2020

目前尝试了 import "videojs-contrib-hls/dist/videojs-contrib-hls" import "videojs-contrib-hlsnode_modules删除重装,均报错。

"videojs-contrib-hls": "5.14.1",
"vue-video-player": "^5.0.2",

回退 vue-video-player 到版本 4.0.6。可以使用,不会报错。

import 'videojs-contrib-hls/dist/videojs-contrib-hls'

@xlfdyzcs
Copy link

目前尝试了 import "videojs-contrib-hls/dist/videojs-contrib-hls" import "videojs-contrib-hlsnode_modules删除重装,均报错。

"videojs-contrib-hls": "5.14.1",
"vue-video-player": "^5.0.2",

回退 vue-video-player 到版本 4.0.6。可以使用,不会报错。

import 'videojs-contrib-hls/dist/videojs-contrib-hls'

有用

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

No branches or pull requests

10 participants