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

怎么隐藏这类报错,使用LoggingControl没效果 #379

Open
donglinkai opened this issue Sep 20, 2018 · 4 comments
Open

怎么隐藏这类报错,使用LoggingControl没效果 #379

donglinkai opened this issue Sep 20, 2018 · 4 comments

Comments

@donglinkai
Copy link

donglinkai commented Sep 20, 2018

接口不稳定原因,时好时坏,整个控制台这类请求报错特别多
`
[IOController] > Loader error, code = -1, msg = Failed to fetch
[TransmuxingController] > IOException: type = Exception, code = -1, msg = Failed to fetch

ERROR Error: Uncaught (in promise): Error: Uncaught, unspecified "error" event. (NetworkError)
Error: Uncaught, unspecified "error" event. (NetworkError)
`

难道是我的使用方式不对?
flvjs.LoggingControl.enableError = false;

@xqq
Copy link
Contributor

xqq commented Sep 20, 2018

监听 FlvPlayer 实例的 PlayerEvents.ERROR 事件回调就不会有
Error: Uncaught, unspecified "error" event. (NetworkError)
的提示了。

Failed to fetch 的提示在 flvjs.LoggingControl.enableError = false 之后不会再有

@zeybar
Copy link

zeybar commented Jan 16, 2019

FlvPlayer 实例的PlayerEvents.ERROR事件 其实就是字符串 error 。具体代码

flvPlayer.on('error', (err) => {
  if (err === 'NetworkError')  {
    console.log('资源请求出错');
  }
});

@LiuMin02
Copy link

使用这个插件,浏览器可以播放但是控制台又报not Found和跨域的错,怎么回事啊?求解。。。

@XiaotaoTTTtian
Copy link

为什么会出现这个报错呢

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