https://npmjs.org/package/webrtc.io-client说:
Usage
rtc.createStream({"video": true, "audio":true}, function(stream){ // get local stream for manipulation } rtc.connect('ws://yourserveraddress:8001', optionalRoom); //
then a bunch of callbacks are available
You can set the STUN server by calling rtc.SERVER = "STUN stun.l.google.com:19302" and set your server. The default STUN server used by the library is one from google.
我也可以为我的商业应用程序使用相同的 STUN 服务器吗?
最佳答案
你是否可以?
是的。
你应该?
不。
未经同意使用任何第三方是危险的,并且可能会让您在 future 被烧毁。
一些历史:
谷歌此前曾发出after the fact API restrictions/price changes这让很多人的商业模式 splinter 了。
关于webrtc - 我们可以将 google stun 服务器(nodejs webrtc.io-client 的默认设置)用于商业应用程序吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14797780/