WebRTC Play Audio Input as Microphone
I want to play my audio file as microphone input (without sending my live voice but my audio file) to the WebRTC connected user. Can anybody tell me how could it be done? I have done some following tries in the JS code, like: 1. base64 Audio <script> var base64string = "T2dnUwACAAAAAAA.."; var snd = new Audio("data:audio/wav;base64," + base64string); snd.play(); var Sound = (function () { var df = document.createDocumentFragment(); return function Sound(src) { var snd = new Audio(src); df.appendChild(snd); snd.addEventListener('ended', function () {df.removeChild(snd);}); snd.play(); return