Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google chrome Android 4.0平板电脑的Chrome beta 29中不存在Web音频API的AudioContext_Google Chrome_Html5 Audio_Webrtc_Webkitaudiocontext - Fatal编程技术网

Google chrome Android 4.0平板电脑的Chrome beta 29中不存在Web音频API的AudioContext

Google chrome Android 4.0平板电脑的Chrome beta 29中不存在Web音频API的AudioContext,google-chrome,html5-audio,webrtc,webkitaudiocontext,Google Chrome,Html5 Audio,Webrtc,Webkitaudiocontext,我使用web audio api的AudioContext,并在我的android 4.0平板电脑(三星P7510)上安装了chrome beta 29版本,但Javascript会抛出异常“AudioContext未定义”,但在chrome beta 29 PC版本上,工作正常。即使我在手机上测试,也没问题 context = new webkitAudioContext(); try context=newaudiocontext() 为了使用正确的语法,我通常会做几个测试 audioC

我使用web audio api的AudioContext,并在我的android 4.0平板电脑(三星P7510)上安装了chrome beta 29版本,但Javascript会抛出异常“AudioContext未定义”,但在chrome beta 29 PC版本上,工作正常。即使我在手机上测试,也没问题

context = new webkitAudioContext();

try context=newaudiocontext()

为了使用正确的语法,我通常会做几个测试

 audioContext = window.AudioContext ? new window.AudioContext() :
           window.webkitAudioContext ? new window.webkitAudioContext() :
           window.mozAudioContext ? new window.mozAudioContext() :
           window.oAudioContext ? new window.oAudioContext() :
           window.msAudioContext ? new window.msAudioContext() :
           undefined;