AgoraIO / API-Examples-Web

MIT License
221 stars 199 forks source link

Upgrade agora-rtc-sdk-ng #42

Closed yaojingguo closed 2 years ago

yaojingguo commented 2 years ago

Plan B SDP is not supported in Chrome M97. Make ReactDemo use the same version of agora-rtc-sdk-ng as Demo.

The console error:

15:06:54.909 index.js:1 15:06:54:909 Agora-SDK [ERROR]: [client-060f4] publish error NotSupportedError: Failed to construct 'RTCPeerConnection': Plan B SDP semantics is a legacy version of the Session Description Protocol that has severe compatibility issues on modern browsers and is no longer supported. See https://www.chromestatus.com/feature/5823036655665152 for more details, including the possibility of registering for a Deprecation Trial in order to extend the Plan B deprecation deadline for a limited amount of time.
console.<computed> @ index.js:1
overrideMethod @ react_devtools_backend.js:4061
value @ AgoraRTC_N-production.js:5
value @ AgoraRTC_N-production.js:5
(anonymous) @ AgoraRTC_N-production.js:5
l @ AgoraRTC_N-production.js:5
u._invoke @ AgoraRTC_N-production.js:5
e.<computed> @ AgoraRTC_N-production.js:5
l @ AgoraRTC_N-production.js:5
t @ AgoraRTC_N-production.js:5
(anonymous) @ AgoraRTC_N-production.js:5
Promise.then (async)
t @ AgoraRTC_N-production.js:5
(anonymous) @ AgoraRTC_N-production.js:5
Promise.then (async)
t @ AgoraRTC_N-production.js:5
(anonymous) @ AgoraRTC_N-production.js:5
e @ AgoraRTC_N-production.js:5
I._invoke @ AgoraRTC_N-production.js:5
e.<computed> @ AgoraRTC_N-production.js:5
a.async @ AgoraRTC_N-production.js:5
value @ AgoraRTC_N-production.js:5
join @ useAgora.tsx:36
await in join (async)
onClick @ Call.tsx:33
callCallback @ react-dom.development.js:188
invokeGuardedCallbackDev @ react-dom.development.js:237
invokeGuardedCallback @ react-dom.development.js:292
invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js:306
executeDispatch @ react-dom.development.js:389
executeDispatchesInOrder @ react-dom.development.js:414
executeDispatchesAndRelease @ react-dom.development.js:3278
executeDispatchesAndReleaseTopLevel @ react-dom.development.js:3287
forEachAccumulated @ react-dom.development.js:3259
runEventsInBatch @ react-dom.development.js:3304
runExtractedPluginEventsInBatch @ react-dom.development.js:3514
handleTopLevel @ react-dom.development.js:3558
batchedEventUpdates$1 @ react-dom.development.js:21871
batchedEventUpdates @ react-dom.development.js:795
dispatchEventForLegacyPluginEventSystem @ react-dom.development.js:3568
attemptToDispatchEvent @ react-dom.development.js:4267
dispatchEvent @ react-dom.development.js:4189
unstable_runWithPriority @ scheduler.development.js:653
runWithPriority$1 @ react-dom.development.js:11039
discreteUpdates$1 @ react-dom.development.js:21887
discreteUpdates @ react-dom.development.js:806
dispatchDiscreteEvent @ react-dom.development.js:4168
15:06:54.920 AgoraRTC_N-production.js:5 Uncaught (in promise) DOMException: Failed to construct 'RTCPeerConnection': Plan B SDP semantics is a legacy version of the Session Description Protocol that has severe compatibility issues on modern browsers and is no longer supported. See https://www.chromestatus.com/feature/5823036655665152 for more details, including the possibility of registering for a Deprecation Trial in order to extend the Plan B deprecation deadline for a limited amount of time.
    at t.value (http://localhost:3000/static/js/0.chunk.js:12805:19)
    at t (http://localhost:3000/static/js/0.chunk.js:12674:211)
    at new t (http://localhost:3000/static/js/0.chunk.js:12822:42)
    at i.value (http://localhost:3000/static/js/0.chunk.js:15123:19)
    at i.r (http://localhost:3000/static/js/0.chunk.js:13040:243)
    at new i (http://localhost:3000/static/js/0.chunk.js:14532:47)
    at a.<anonymous> (http://localhost:3000/static/js/0.chunk.js:18598:41)
    at l (http://localhost:3000/static/js/0.chunk.js:5168:20)
    at Generator.u._invoke (http://localhost:3000/static/js/0.chunk.js:5149:21)
    at Generator.e.<computed> [as next] (http://localhost:3000/static/js/0.chunk.js:5205:25)
    at l (http://localhost:3000/static/js/0.chunk.js:5168:20)
    at t (http://localhost:3000/static/js/0.chunk.js:5217:25)
    at http://localhost:3000/static/js/0.chunk.js:5234:16
    at new Promise (<anonymous>)
    at e (http://localhost:3000/static/js/0.chunk.js:5215:20)
    at I._invoke (http://localhost:3000/static/js/0.chunk.js:5238:41)
    at I.e.<computed> [as next] (http://localhost:3000/static/js/0.chunk.js:5205:25)
    at Object.a.async (http://localhost:3000/static/js/0.chunk.js:5321:49)
    at a.value (http://localhost:3000/static/js/0.chunk.js:18566:19)
    at a.<anonymous> (http://localhost:3000/static/js/0.chunk.js:17613:49)
    at l (http://localhost:3000/static/js/0.chunk.js:5168:20)
    at Generator.u._invoke (http://localhost:3000/static/js/0.chunk.js:5149:21)
    at Generator.e.<computed> [as next] (http://localhost:3000/static/js/0.chunk.js:5205:25)
    at l (http://localhost:3000/static/js/0.chunk.js:5168:20)
    at t (http://localhost:3000/static/js/0.chunk.js:5217:25)
    at http://localhost:3000/static/js/0.chunk.js:5223:21