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

No sound alert #20

Open
keyanMalfoy opened this issue Jan 24, 2019 · 4 comments
Open

No sound alert #20

keyanMalfoy opened this issue Jan 24, 2019 · 4 comments

Comments

@keyanMalfoy
Copy link

我已经创建了声音提醒以及log, 一直有播放声音。但是今天我接受到了四个case, 只有三次声音提醒了··· 有一次没有提醒,但是log里面记录到audio标签是创建了出来的~~ audio标签创建出来但没有播放的原因是?
chrome的setting里面是允许播放的~~~

@jaywcjlove
Copy link
Owner

@Keyan-Wang 连续播放了?

@jaywcjlove
Copy link
Owner

@Keyan-Wang 好像连个间隔比较短,会停止掉之前的。

@keyanMalfoy
Copy link
Author

上午有四个case, 不是连续的, 用户说只听到了三次声音,最后一次没听到,中间间隔时间很长,最后一个监测到了audioElm, 没有声音,这和chrome的policy有关系么? 除了这次,其实偶尔也会有声音没有播放的事情发生~~

@jaywcjlove
Copy link
Owner

@Keyan-Wang 这个可能是跟浏览器兼容问题有关?配置提供多种格式的声音,你可以让你的用户告知浏览器版本测试一哈。

{
  // ...
  // Optional playback sound
  audio:{
    // You can use arrays to pass sound files in multiple formats.
    file: ['msg.mp4','msg.mp3','msg.wav']
    // The following is also work.
    // file: 'msg.mp4'
  },
}

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