I'm trying to build a Preact component which takes care of rendering the Live streaming and can be used within couple of our web application. However when I add this component in the host web app, I'm getting the below error.
2:47:29:806 Agora-SDK [ERROR]: [client-b1f55] subscribe user 2444849064 error TypeError: b is not a function at Mk.eval (AgoraRTC_N-production.js?8c5e:23) at new Promise (<anonymous>) at Mk.setOfferSDP (AgoraRTC_N-production.js?8c5e:23) at eval (AgoraRTC_N-production.js?8c5e:23) log @ AgoraRTC_N-production.js?8c5e:23 error @ AgoraRTC_N-production.js?8c5e:23 eval @ AgoraRTC_N-production.js?8c5e:23 eval @ AgoraRTC_N-production.js?8c5e:23 Promise.then (async) eval @ AgoraRTC_N-production.js?8c5e:23 Promise.then (async) eval @ AgoraRTC_N-production.js?8c5e:23 subscribe @ AgoraRTC_N-production.js?8c5e:23 eval @ index.tsx?deb7:64 emit @ AgoraRTC_N-production.js?8c5e:23 _this123._handleAddAudioOrVideoStream @ AgoraRTC_N-production.js?8c5e:23 eval @ AgoraRTC_N-production.js?8c5e:23 emit @ AgoraRTC_N-production.js?8c5e:23 _this39.onWebsocketMessage @ AgoraRTC_N-production.js?8c5e:23 emit @ AgoraRTC_N-production.js?8c5e:23 _this37.websocket.onmessage @ AgoraRTC_N-production.js?8c5e:23 AgoraRTC_N-production.js?8c5e:23 Uncaught (in promise) TypeError: b is not a function at Mk.eval (AgoraRTC_N-production.js?8c5e:23) at new Promise (<anonymous>) at Mk.setOfferSDP (AgoraRTC_N-production.js?8c5e:23) at eval (AgoraRTC_N-production.js?8c5e:23)
SDK Logs
You should call enableLogUpload to enable log upload to Agora's Log Server.
Clone https://github.com/nmakod/playground_1.git and follow the readme to set up the host app. Please make sure both preact-lib and playground are in the same root folder.
Describe the bug
I'm trying to build a Preact component which takes care of rendering the Live streaming and can be used within couple of our web application. However when I add this component in the host web app, I'm getting the below error.
2:47:29:806 Agora-SDK [ERROR]: [client-b1f55] subscribe user 2444849064 error TypeError: b is not a function at Mk.eval (AgoraRTC_N-production.js?8c5e:23) at new Promise (<anonymous>) at Mk.setOfferSDP (AgoraRTC_N-production.js?8c5e:23) at eval (AgoraRTC_N-production.js?8c5e:23) log @ AgoraRTC_N-production.js?8c5e:23 error @ AgoraRTC_N-production.js?8c5e:23 eval @ AgoraRTC_N-production.js?8c5e:23 eval @ AgoraRTC_N-production.js?8c5e:23 Promise.then (async) eval @ AgoraRTC_N-production.js?8c5e:23 Promise.then (async) eval @ AgoraRTC_N-production.js?8c5e:23 subscribe @ AgoraRTC_N-production.js?8c5e:23 eval @ index.tsx?deb7:64 emit @ AgoraRTC_N-production.js?8c5e:23 _this123._handleAddAudioOrVideoStream @ AgoraRTC_N-production.js?8c5e:23 eval @ AgoraRTC_N-production.js?8c5e:23 emit @ AgoraRTC_N-production.js?8c5e:23 _this39.onWebsocketMessage @ AgoraRTC_N-production.js?8c5e:23 emit @ AgoraRTC_N-production.js?8c5e:23 _this37.websocket.onmessage @ AgoraRTC_N-production.js?8c5e:23 AgoraRTC_N-production.js?8c5e:23 Uncaught (in promise) TypeError: b is not a function at Mk.eval (AgoraRTC_N-production.js?8c5e:23) at new Promise (<anonymous>) at Mk.setOfferSDP (AgoraRTC_N-production.js?8c5e:23) at eval (AgoraRTC_N-production.js?8c5e:23)
SDK Logs
Channel:
UID:
Platform and Browser:
Mac, Chrome
SDK Version: 4.5.0
To Reproduce
Steps to reproduce the behavior:
Additional context
Add any other context about the problem here.