Skip to content

Instantly share code, notes, and snippets.

View junlas's full-sized avatar

junlas junlas

  • YaoYao
  • Austria
View GitHub Profile
@junlas
junlas / AudioGoup.js
Last active March 19, 2020 02:01
彻底解决在微信环境下自动播放声音
export default class AudioGroup {
_imgUrl = null;
_mp3Url = null;
_autoPlay = false;
/**@type {Function} */
_onPlayCompleteCallback = null;
/**@type {boolean} */
_isUseDomAudio;
spriteFrame;