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

Publisher.onStreamAvailableError webkitAudioContext.createMediaStreamSource must be an instance of MediaStream #25

Open iisdan opened 6 years ago

iisdan commented 6 years ago

ERROR: OT.Publisher.onStreamAvailableError OT_MEDIA_ERR_ABORTED: Argument 1 ('mediaStream') to webkitAudioContext.createMediaStreamSource must be an instance of MediaStream 2017-12-06 17:17:52.977213-0500 HelloOpenTokJS[806:355176] ERROR: OT.exception :: title: Unable to Publish (1500) msg: GetUserMedia 2017-12-06 17:17:52.977170-0500 HelloOpenTokJS[806:355223] PluginMediaStreamTrack#setListener() [kind:audio, id:AE561E58-A2A1-419C-8667-E10370C0D087] 2017-12-06 17:17:52.977350-0500 HelloOpenTokJS[806:355223] PluginMediaStreamTrack#setListener() [kind:video, id:BFA8544B-2A52-4BBA-B81C-8C0BDE0A7EA3] 2017-12-06 17:17:52.977367-0500 HelloOpenTokJS[806:355223] PluginMediaStream#setListener() 2017-12-06 17:17:52.982728-0500 HelloOpenTokJS[806:355176] WARN: Unhandled rejection TypeError: Argument 1 ('mediaStream') to webkitAudioContext.createMediaStreamSource must be an instance of MediaStream 2017-12-06 17:17:54.042466-0500 HelloOpenTokJS[806:355176] SessionInfo Response: [object Object] 2017-12-06 17:17:54.042505-0500 HelloOpenTokJS[806:355176] SessionInfo parsed: [object Object]

primashah commented 6 years ago

I am having exact same error on IOS 11. App crashes whenever a stream is available on publisher side.

coolvasanth commented 6 years ago

@primashah can you please assist me with the exact steps that you have used to make it work on iOS. I'm very much confused with official documentation so.