AudioContext.createMediaElementSource broken in iOS 17

I have a website that makes heavy use of the web audio API, the site appears to be broken for all users who have upgraded to iOS 17 (I have verified it no longer works for 17.0.3 and does work for 16.3.1 It also works fine in macOS Safari and all other common desktop browsers that I have tested). I've created a simple test case page here to illustrate the problem: https://oldtime.radio/audio_test.html - clicking 'Play' downloads and plays audio in older iOS but nothing is played for iOS 17. There are no errors in the console so not much to go on. Is this a known bug. Code reproduced below in case folks don't want to click through to an unknown website:

    const btn = document.getElementById('btn');

    btn.addEventListener('click', function() {
        const audio = new Audio();

        audio.crossOrigin = "anonymous";
        const AudioContext = window.AudioContext || window.webkitAudioContext,
            audioCtx = new AudioContext(),
            audioSrc = audioCtx.createMediaElementSource(audio);

        audioSrc.connect(audioCtx.destination);

        audio.addEventListener('canplaythrough', () => {
            audio.play();
        });

        audio.src = 'https://archive.org/download/Old_Radio_Adverts_01/OldRadio_Adv--1957_Chevrolet.mp3';
        audio.load();
    });

Replies

Looks like this is working again in 17.1.0