jaywcjlove / iNotify

:loudspeaker: JS achieve the browser title flashing, scrolling, voice prompts, Chrome/Safari/FireFox/IE notice. has no dependencies. It not interfere with any JavaScript libraries or frameworks. has a reasonable footprint 5.05kb (gzipped: 1.75kb)

Home Page:https://git.io/iNotify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No sound alert

keyanMalfoy opened this issue · comments

commented

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

@Keyan-Wang 连续播放了?

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

commented

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

@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'
  },
}