cordova-plugin-opentokjs
cordova-plugin-opentokjs copied to clipboard
TypeError: undefined is not a constructor (evaluating 'new global.AudioContext()')
Hello everyone,
Currently I am not able to publish video or audio stream on iOS(v 8.2). When I call the method session.publish it gives following error:
TypeError: undefined is not a constructor (evaluating 'new global.AudioContext()') audioContext opentok.js:19676
Below is line 19676 : "context = context || new global.AudioContext();"
So I investigate the opentok.js line:19676 and following "global.AudioContext" returns undefined:
Instead of global.AudioContext, global.webkitAudioContext is available in my project.
How can I solve the issue, do you have any idea ?
I also have this problem. it cannot publish my stream because of 1500 error and OT.exception :: title: Connection Failed (1013) msg: OT.Publisher PeerConnection Error: undefined is not a constructor (evaluating 'new AudioContext()')