cordova-plugin-opentokjs icon indicating copy to clipboard operation
cordova-plugin-opentokjs copied to clipboard

TypeError: undefined is not a constructor (evaluating 'new global.AudioContext()')

Open SchemeSonic opened this issue 8 years ago • 1 comments

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 ?

SchemeSonic avatar Jun 16 '16 14:06 SchemeSonic

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()') screenshot 2017-05-26 10 22 31 screenshot 2017-05-26 10 22 39

stagerap avatar May 26 '17 17:05 stagerap