我想做一个视频平台。我正在试验WebRTC,将 nodejs 作为服务器运行。现在的问题是我在 Ubuntu 中的Chrome 21运行正常,完全没有错误,但在Chrome 23(在 Windows 中)中,我在客户端出现错误。
这是我的代码
if(typeof webkitPeerConnection === 'function')
pc = new webkitPeerConnection("NONE", onSignalingMessage);
else
pc = new webkitDeprecatedPeerConnection("NONE", onSignalingMessage);
错误发生在尝试使用函数 webkitDeprecatedPeerConnection。它说 webkitDeprecatedPeerConnection 是一个未定义的函数,这意味着它不存在。
此外,PeerConnection标志已启用。
Linux Ubuntu 12 (32 bits)
Windows 7 Ultimate (64 bits)
PS:对不起,我的英语,我的母语是西班牙语。