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

this.el_.vjs_getProperty is not a function弹窗关闭时,一直报错 #244

Closed
Trap-only opened this issue Jan 15, 2019 · 13 comments
Closed

Comments

@Trap-only
Copy link

  1. 弹窗关闭时,一直报错
    2.当前版本为^5.0.2
  2. video.cjs.js?0e26:440 VIDEOJS: ERROR: TypeError: this.el_.vjs_getProperty is not a function
    at Flash.currentTime (videojs-flash.js?e2e1:543)
    at get$1 (video.cjs.js?0e26:9281)
    at Player.techGet_ (video.cjs.js?0e26:21528)
    at Player.currentTime (video.cjs.js?0e26:21737)
    at SeekBar.getCurrentTime_ (video.cjs.js?0e26:12608)
    at SeekBar.getPercent (video.cjs.js?0e26:12635)
    at SeekBar.update (video.cjs.js?0e26:11932)
    at SeekBar.update (video.cjs.js?0e26:12590)
    at bound (video.cjs.js?0e26:2344)
    at SeekBar.throttled (video.cjs.js?0e26:2377)
    看之前的issues,说是在3.0版本fix这个问题,但是现在出现了,麻烦大家告知一下如何解决谢谢
@Trap-only
Copy link
Author

"videojs-flash": "^2.1.2",
"vue-video-player": "^5.0.2"

@SXZXD
Copy link

SXZXD commented Jan 16, 2019

跟你遇到了一样得错误,关闭模态,player没有销毁,就报这个错

@SXZXD
Copy link

SXZXD commented Jan 16, 2019

解决方法:模态关闭是调用销毁:videoPlayer.dispose(),模态打开时初始化:videoPlayer.initialize()

@Trap-only
Copy link
Author

@SXZXD 太感谢了,解决了我的燃眉之急

@SXZXD
Copy link

SXZXD commented Jan 17, 2019

不客气!

@lwjxj
Copy link

lwjxj commented Sep 9, 2020

我也遇到了这个问题,能贴下具体代码吗?非常感谢!

@lwjxj
Copy link

lwjxj commented Sep 9, 2020

@SXZXD

@SXZXD
Copy link

SXZXD commented Sep 9, 2020

我也遇到了这个问题,能贴下具体代码吗?非常感谢!

image

监听你model框的变化,分别调用元组件的方法就好了

@lwjxj
Copy link

lwjxj commented Sep 9, 2020 via email

@SXZXD
Copy link

SXZXD commented Sep 9, 2020 via email

@lwjxj
Copy link

lwjxj commented Sep 9, 2020 via email

@jetjo
Copy link

jetjo commented Nov 2, 2020

解决了我的问题!!!感谢!!!🥳

@surmon-china
Copy link
Owner

The original vue-video-player package is no longer maintained, please upgrade to @videojs-player/vue.

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

No branches or pull requests

5 participants