收藏
回答

小程序有办法获取声音的频率吗?

问题模块
管理后台

H5的这些接口有办法调用吗?


window.AudioContext = window.AudioContext || window.webkitAudioContext || window.mozAudioContext || window.msAudioContext;

        window.requestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame;

        window.cancelAnimationFrame = window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || window.msCancelAnimationFrame;

        try {

            this.audioContext = new AudioContext();

        } catch (e) {

            this._updateInfo('!Your browser does not support AudioContext', false);

            console.log(e);

        }


最后一次编辑于  2017-05-24
回答关注问题邀请回答
收藏