标签: google-chrome webrtc
在调试我的WebRTC应用程序时偶然发现了以下错误,我无法弄清楚它们的含义:
Uncaught (in promise) Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS
和
Uncaught (in promise) Failed to set remote answer sdp: Called in wrong state: STATE_INIT
哪种状态应该是错的?
答案 0 :(得分:2)
我相信您收到此错误是因为您尝试将SDP答案设置为错误状态。看看this document。它应该为你澄清一些事情。状态图(取自该文件):