I was able to get the media stream that OpenTok attaches to video
element but looks like OpenTok creates audioContext.createMediaStreamSource
from initial mediaStream received from PeerConnection and I get the adjusted one, not the initial.
This causes a problem due to Audio Autoplay Policy that Chrome enables soon and that is on iOS Safari already. If we call session.subscriber()
not inside onClick
handler (users's gesture) then AudioContext
instance is put into suspended
state so there is no audio.
I want to disable OpenTok's audioContext
, create my own audioContext
and manage audio as I want but currently I can't find a way to do it.