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

error 插件的showError hook 不生效 #1677

Open
Z-web747 opened this issue Dec 16, 2024 · 1 comment
Open

error 插件的showError hook 不生效 #1677

Z-web747 opened this issue Dec 16, 2024 · 1 comment

Comments

@Z-web747
Copy link

您使用的西瓜播放器版本是多少? What version of xgplayer are you using?
^3.0.20

您使用的操作系统和浏览器分别是? What OS and browser are you using?

如何复现问题? How to reproduce the problem?

您期望的播放器正常行为是? What did you expect to happen?

player.getPlugin('error').useHooks('showError', (plugin, ...args) =>{
// TODO
/**

  • 如果返回false,则错误提示面板不做展示
  • 如果返回true, 则按照默认逻辑展示错误面板
  • */
    })

实际播放器的表现是? What actually happened?

player.getPlugin('error').useHooks('showError', (plugin, ...args) =>{
// TODO
/**

  • 如果返回false,则错误提示面板不做展示
  • 如果返回true, 则按照默认逻辑展示错误面板
  • */
    }) return false 不生效
    可填写您所在的公司和相关产品业务,方便我们提供更好的技术支持 You can write your company and product which uses xgplayer, for helping us provide better technical support.
@lculjt
Copy link

lculjt commented Dec 18, 2024

me too, I tried to use this hook in order to solve the video streaming lag problem, but it doesn't work

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

2 participants