How to stream audio file with opentok?
问题 In opentok, with OT.initPublisher, you only can pass a deviceId to the audioSource. Does someone know a method to stream an audio file ? For example, I have done this: navigator.getUserMedia({audio: true, video: false}, function(stream) { var context = new AudioContext(); var microphone = context.createMediaStreamSource(stream); var backgroundMusic = context.createMediaElementSource(document.getElementById("song")); var mixedOutput = context.createMediaStreamDestination(); microphone.connect