[Webkit-unassigned] [Bug 230902] REGRESSION(Safari 15 - iOS15): [WebRTC] MediaStreamTack audio volume too low

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 19 23:55:36 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=230902

--- Comment #24 from neo <neo.jung at minischool.co.kr> ---

> 
> Yup. But I need to use media element tag to play. However,
> createMediaElementSource on ios safari hadn't worked for long time

hi
we no need to use createMediaElementSource for playing audio file.
how about use decodeAudioData.


window.onload = function(){
    var context = new AudioContext() || new webkitAudioContext(),
        request = new XMLHttpRequest();

    request.open("GET", "audio_file.mp3", true);
    request.responseType = "arraybuffer";
    request.onload = function(){
        context.decodeAudioData(request.response, onDecoded);
    }

    function onDecoded(buffer){
        var bufferSource = context.createBufferSource();
        bufferSource.buffer = buffer;
        bufferSource.connect(context.destination);
        bufferSource.start();
    }

    request.send();
};

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211020/fea3c182/attachment-0001.htm>


More information about the webkit-unassigned mailing list