场景:通过浏览器调摄像头麦克风传输流
我刚开始以为调摄像头麦克风api是 库里面的。
Call another peer by calling peer.call
with the peer ID of the destination peer. When a peer calls you, the call
event is emitted.
Unlike data connections, when receiving a call
event, the call must be answered or no connection is established.
通过呼叫对等体呼叫另一个对等体。 使用目的对等体的对等体ID调用。 当一个对等方调用您时,会触发调用事件。
与数据连接不同,当接收呼叫事件时,呼叫必须被应答,否则不建立连接。
给我整迷了,JS 调摄像头 api 更换了
getUserMedia 传的是个对象,audio,video,video可以控制宽高
=-=,浏览器只能一次调用摄像头,我以为我代码写错了,目前只能看到别人摄像头的流,或者我把我的流给别人,我再优化一下,部署到服务器到时候两个设备测试一下。。