webkitAudioContext createMediaElementSource on iOS Safari not working
问题 I want to do a live sound analysis on the iPhone. Therefor I use the webkitAudioContext Analyser. var ctx = new (window.AudioContext || window.webkitAudioContext); var audioGoodmorning = new Audio('assets/sounds/greeting.m4a'); var audioSrc = ctx.createMediaElementSource(audioGoodmorning); var analyser = ctx.createAnalyser(); analyser.fftSize = 32; audioSrc.connect(analyser); audioSrc.connect(ctx.destination); var frequencyData = new Uint8Array(analyser.fftSize); analyser.getByteFrequencyData