Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

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

Open
SchemeSonic opened this issue Jun 16, 2016 · 1 comment

Comments

@SchemeSonic
Copy link

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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants