aoberoi / cordova-plugin-opentokjs

A Cordova plugin to enable use of OpenTok on the iOS, Android, and Browser platforms.
MIT License
21 stars 16 forks source link

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

Open SchemeSonic opened 8 years ago

SchemeSonic commented 8 years ago

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 ?

stagerap commented 7 years ago

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